# Pkg.update exclusion list

**URL:** <https://discourse.julialang.org/t/pkg-update-exclusion-list/107497>\
**Category:** Package Management\
**Created:** [December 12, 2023, 1:04pm UTC](https://discourse.julialang.org/t/pkg-update-exclusion-list/107497 "2023-12-12T13:04:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adannenberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adannenberg/32/7869_2.png) [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Post date:** [December 12, 2023, 1:04pm UTC](https://discourse.julialang.org/t/pkg-update-exclusion-list/107497/1 "2023-12-12T13:04:39Z")

</div>

Is it possible to tell the package manager to update all packages _except_ those in user-supplied list? I didn’t see that ‘blacklist’ functionality in the docs.

Here’s the very common use case for which this would be helpful: Let’s say package XX has a bug which matters to me and I need to use a deprecated version until the bug is fixed. I’d still like to keep all the other packages up to date. So it would be great if the package manager allowed a syntax like  
`Pkg.update(-XX)`

Can someone tell me how to do this, if this functionality is already there and I’ve missed it in the documentation? If not, where is the list of requested new features to which I can add this suggestion?

---

<div class="post-metadata">

**Author:** ![lgoettgens](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lgoettgens/32/203968_2.png) [@lgoettgens](https://discourse.julialang.org/u/lgoettgens)\
**Post date:** [December 12, 2023, 1:22pm UTC](https://discourse.julialang.org/t/pkg-update-exclusion-list/107497/2 "2023-12-12T13:22:29Z")

</div>

You can just pin the package XX to its deprecate version. Then the package manager will not touch it when updating. Another solution would be to put a `XX = "=x.y.z"` compat bound for the package XX to your Project.toml.

---

<div class="post-metadata">

**Author:** ![adannenberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adannenberg/32/7869_2.png) [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Post date:** [December 12, 2023, 1:30pm UTC](https://discourse.julialang.org/t/pkg-update-exclusion-list/107497/3 "2023-12-12T13:30:51Z")

</div>

Perfect. Pin is exactly what I was looking for and works perfectly. Thanks for your help.
