# Package dependency question

**URL:** <https://discourse.julialang.org/t/package-dependency-question/55809>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 22, 2021, 11:47pm UTC](https://discourse.julialang.org/t/package-dependency-question/55809 "2021-02-22T23:47:36Z")\
**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:** [February 22, 2021, 11:47pm UTC](https://discourse.julialang.org/t/package-dependency-question/55809/1 "2021-02-22T23:47:36Z")

</div>

Let’s say that I installed package A that depends on package B. After a while, package A no longer depends on package B. All the other packages also do not depend on package B. Will package B be uninstalled automatically if I run gc in the package manager?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [February 23, 2021, 12:11am UTC](https://discourse.julialang.org/t/package-dependency-question/55809/2 "2021-02-23T00:11:10Z")

</div>

The package will be removed from your manifest already when you `Pkg.rm` the last package requesting `B`. `Pkg.gc` will eventually remove also the directory of the package itself if it isn’t present in any active manifest
