# How to check what other packages an installed package uses?

**URL:** <https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950>\
**Category:** General Usage\
**Tags:** package, pkg\
**Created:** [April 15, 2024, 8:26am UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950 "2024-04-15T08:26:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikos\_Gianniotis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikos_gianniotis/32/11487_2.png) [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Post date:** [April 15, 2024, 8:26am UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950/1 "2024-04-15T08:26:52Z")

</div>

I have installed package X in my Julia environment. How can I check what other packages package X is using and what their versions are?

I believe that, in previous versions of Julia, I could use something like e.g. `Pkg.dependencies("Optim")` to check what package `Optim.jl` is using, but that doesn’t seem to work any longer (I use Julia 1.10).

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [April 16, 2024, 10:23am UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950/2 "2024-04-16T10:23:04Z")

</div>

You may try this:

```julia
using PkgDependency
PkgDependency.tree("Optim") 

```

---

<div class="post-metadata">

**Author:** ![matnbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matnbo/32/220166_2.png) [@matnbo](https://discourse.julialang.org/u/matnbo)\
**Post date:** [April 16, 2024, 12:58pm UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950/3 "2024-04-16T12:58:18Z")

</div>

you can go to [JuliaHub packages page](https://juliahub.com/ui/Packages), you find package X, and on the right down of the page you can see sections Dependencies and Dependents.

---

<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:** [April 16, 2024, 1:01pm UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950/4 "2024-04-16T13:01:18Z")

</div>

The status command in manifest-mode, i.e. `pkg> status -m Optim`, should work, but has been bugged for a while, see [Pkg.jl#1989](https://github.com/JuliaLang/Pkg.jl/issues/1989).

---

<div class="post-metadata">

**Author:** ![Nikos\_Gianniotis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikos_gianniotis/32/11487_2.png) [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Post date:** [April 16, 2024, 7:58pm UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950/6 "2024-04-16T19:58:24Z")

</div>

@matnbo Nice one. Didn’t occur to me as a solution.  
@oheil This is a little gem  
@fredrikekre Unfortunately, this seems to give me only the version of tha package and no dependencies (I am in Julia 1.10.1).
