# Package dependency lists

**URL:** https://discourse.julialang.org/t/package-dependency-lists/2262
**Category:** Community
**Tags:** package
**Created:** [February 23, 2017, 11:56pm UTC](https://discourse.julialang.org/t/package-dependency-lists/2262 "2017-02-23T23:56:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jpfairbanks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpfairbanks/32/4500_2.png) [@jpfairbanks](https://discourse.julialang.org/u/jpfairbanks)
#### Post date: [February 23, 2017, 11:56pm UTC](https://discourse.julialang.org/t/package-dependency-lists/2262/1 "2017-02-23T23:56:39Z")

</div>

I am working on the website for LightGraphs, and I would like to embed a list of packages that use LightGraphs as a dependency. This post from @IanNZ [http://iaindunning.com/blog/pkg-deps.html](http://iaindunning.com/blog/pkg-deps.html) looks like a good example.

Is there a way to collect that information automatically?

I guess I could pull this out from the github API  
[https://github.com/JuliaLang/METADATA.jl/search?utf8=✓&q=LightGraphs](https://github.com/JuliaLang/METADATA.jl/search?utf8=%E2%9C%93&q=LightGraphs). Does anyone already have this in a database somewhere?

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [February 24, 2017, 1:52am UTC](https://discourse.julialang.org/t/package-dependency-lists/2262/2 "2017-02-24T01:52:37Z")

</div>

If you checkout the branch `packagedb` in the [Query.jl](https://github.com/davidanthoff/Query.jl) package, you can use the following code:

```julia
using Query

@from p in pkgdb() begin
    @where any(q->q.name=="LightGraphs", last(p.versions).requires)
    @select p.name
    @collect
end

```

---

<div class="post-metadata">

### Author: ![jpfairbanks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpfairbanks/32/4500_2.png) [@jpfairbanks](https://discourse.julialang.org/u/jpfairbanks)
#### Post date: [February 24, 2017, 2:51am UTC](https://discourse.julialang.org/t/package-dependency-lists/2262/3 "2017-02-24T02:51:28Z")

</div>

Thanks! Query.jl is awesome 👍
