# Get url of a package

**URL:** <https://discourse.julialang.org/t/get-url-of-a-package/58544>\
**Category:** New to Julia\
**Tags:** question, package, pkg\
**Created:** [April 4, 2021, 4:30am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544 "2021-04-04T04:30:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtsushiSakai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/atsushisakai/32/6559_2.png) [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Post date:** [April 4, 2021, 4:30am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/1 "2021-04-04T04:30:13Z")

</div>

In this thread, [Get url of package](https://discourse.julialang.org/t/get-url-of-package/4212), the way of getting url of a package is provided.  
However, the way cannot be used for Julia 1.x because of package manager change.  
Is there a good way to get url of a package for Julia 1.x?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 4, 2021, 5:55am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/2 "2021-04-04T05:55:21Z")

</div>

I don’t think that this is exposed by the [Registry API](https://pkgdocs.julialang.org/dev/api/#Registry-API-Reference), but perhaps you can parse the relevant `Package.toml` file in the registry.

But why do you need this?

---

<div class="post-metadata">

**Author:** ![AtsushiSakai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/atsushisakai/32/6559_2.png) [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Post date:** [April 4, 2021, 7:33am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/3 "2021-04-04T07:33:58Z")

</div>

Thank you.

> But why do you need this?

I want to access the package repo from REPL sometimes. Maybe not only me: [More hyperlinks · Issue #5509 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/5509)

---

<div class="post-metadata">

**Author:** ![Allan\_Baker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/allan_baker/32/42645_2.png) [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Post date:** [November 14, 2021, 3:52pm UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/4 "2021-11-14T15:52:16Z")

</div>

Need to get the origin of the package for License compliance book-keeping. Anyone have an idea on how to easily pull the repo’s URL from the package info?

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [November 14, 2021, 5:47pm UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/5 "2021-11-14T17:47:10Z")

</div>

Do you need it to be done in the REPL? It probably would be easier to do via JuliaHub

[https://juliahub.com/ui/Packages](https://juliahub.com/ui/Packages)

---

<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:** [November 14, 2021, 6:30pm UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/6 "2021-11-14T18:30:20Z")

</div>

You can get the license and more information about a package with [`PackageAnalyzer.jl`](https://github.com/JuliaEcosystem/PackageAnalyzer.jl), but the entry point is looking up the registry. It’s a TOML file and there is a TOML parser in Julia, that’s all what you need.

---

<div class="post-metadata">

**Author:** ![Allan\_Baker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/allan_baker/32/42645_2.png) [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Post date:** [November 16, 2021, 2:00am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544/7 "2021-11-16T02:00:18Z")

</div>

Ok. I got it to work. Thank you.
