# Package Manager: Erratic behavior?

**URL:** <https://discourse.julialang.org/t/package-manager-erratic-behavior/46340>\
**Category:** General Usage\
**Tags:** question, package-manager\
**Created:** [September 9, 2020, 4:56pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340 "2020-09-09T16:56:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaspardelanuit](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gaspardelanuit](https://discourse.julialang.org/u/gaspardelanuit)\
**Post date:** [September 9, 2020, 4:56pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340/1 "2020-09-09T16:56:52Z")

</div>

After installing the ShiftedArrays package I have observed that a bunch of the packages I have installed were downgraded (while some were upgraded).

Most egregiously was plots which reverted to 0.28.4 from 1.6.3

I am a little confused given that ShiftedArrays has no [dependencies](https://github.com/JuliaArrays/ShiftedArrays.jl/blob/master/Project.toml)

 ![Screen Shot 2020-09-09 at 11.49.56](https://global.discourse-cdn.com/julialang/original/3X/8/0/80625505a8b375b7258c7431efadc832d1605c0a.png)

Is there something I could do?  
Uninstalling ShiftedArrays does not solve the problem and Plots is stuck at 0.28.4 now.

Only thing left to do was `rm -rf ~/.julia` but I hope there is a better way.

Edit: related to [this](https://github.com/JuliaRegistries/General/pull/11114) or [this](https://discourse.julialang.org/t/adding-caps-upper-bounded-compat-entries-to-all-packages-in-the-general-registry/46244)?

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [September 9, 2020, 5:40pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340/2 "2020-09-09T17:40:22Z")

</div>

Yes, this can be confusing, you could rather do:

```julia
(@v1.6) pkg> add --preserve=all package

(@v1.6) pkg> ? add # to see other options

(@v1.6) pkg> add Plots@1.6.3 # a possible fix or partial fix, to revert to the version you had

```

I would want an option allowing at most updating other packages, while I suppose the idea is your package should still work with some of its dependencies downgraded…

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [September 9, 2020, 5:45pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340/3 "2020-09-09T17:45:47Z")

</div>

Can you post the output of `Pkg.status()`?

Then, as suggested above, can you do

```julia
] add Plots@1.6.3

```

And post the output?

---

<div class="post-metadata">

**Author:** ![gaspardelanuit](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gaspardelanuit](https://discourse.julialang.org/u/gaspardelanuit)\
**Post date:** [September 10, 2020, 5:12pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340/4 "2020-09-10T17:12:04Z")

</div>

I will make sure next time I reproduce the bug. I had to go with the `rm -r ~/.julia` route this time.

Thanks

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [September 10, 2020, 7:26pm UTC](https://discourse.julialang.org/t/package-manager-erratic-behavior/46340/5 "2020-09-10T19:26:10Z")

</div>

> [@gaspardelanuit](#):
>
> Edit: related to [this](https://github.com/JuliaRegistries/General/pull/11114) or [this](https://discourse.julialang.org/t/adding-caps-upper-bounded-compat-entries-to-all-packages-in-the-general-registry/46244)?

Maybe also worth looking at [this](https://github.com/JuliaLang/Pkg.jl/issues/1949)
