# Package dependency uninstallation

**URL:** <https://discourse.julialang.org/t/package-dependency-uninstallation/45788>\
**Category:** General Usage\
**Tags:** package\
**Created:** [August 30, 2020, 1:34pm UTC](https://discourse.julialang.org/t/package-dependency-uninstallation/45788 "2020-08-30T13:34:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [August 30, 2020, 1:34pm UTC](https://discourse.julialang.org/t/package-dependency-uninstallation/45788/1 "2020-08-30T13:34:26Z")

</div>

Let’s say package A depends on B when first installed. After a while, a new version of A no longer depends on B. If I update A, will Julia automatically uninstall B if it is not a dependency for any other packages?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 30, 2020, 1:48pm UTC](https://discourse.julialang.org/t/package-dependency-uninstallation/45788/2 "2020-08-30T13:48:54Z")

</div>

Yes.

But if by “uninstall” you mean “delete from disk”, then you need to garbage collect and delete unused packages with `Pkg.gc()`.
