# LightGraph tutorial

**URL:** <https://discourse.julialang.org/t/lightgraph-tutorial/31070>\
**Category:** General Usage\
**Created:** [November 14, 2019, 1:07am UTC](https://discourse.julialang.org/t/lightgraph-tutorial/31070 "2019-11-14T01:07:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [November 14, 2019, 10:18am UTC](https://discourse.julialang.org/t/lightgraph-tutorial/31070/4 "2019-11-14T10:18:23Z")

</div>

This is unlikely to be the proper way to do it but it should give you the corresponding list of packages:

```julia
using Pkg.TOML: parsefile
registry = parsefile(joinpath(first(DEPOT_PATH), "registries", "General", "Registry.toml"))
pkgs = [package["name"] for package in values(registry["packages"])]

```

As already mentioned this is only the first step and there are more things that have changed with the package manager. However, all necessary information to build the package DAG is available in the same directory and can be obtained using `parsefile` on the appropriate TOML files in there. An earlier discussion may also be helpful to get further: [Replacement for Pkg.dependents() in 1.0?](https://discourse.julialang.org/t/replacement-for-pkg-dependents-in-1-0/24131)

---

_[View the full topic](https://discourse.julialang.org/t/lightgraph-tutorial/31070)._
