# How to install the newest version of a package?

**URL:** <https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110>\
**Category:** General Usage\
**Tags:** question, package, pkg\
**Created:** [August 12, 2024, 9:13pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110 "2024-08-12T21:13:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [August 12, 2024, 9:41pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/5 "2024-08-12T21:41:48Z")

</div>

Do you have the env variable [`JULIA_PKG_PRESERVE_TIERED_INSTALLED`](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_PKG_PRESERVE_TIERED_INSTALLED) set? Otherwise the default _should_ be to install the latest version, assuming it doesn’t conflict with another package, and assuming the registry is up-to-date (and the registry will by default update on the first pkg operation of the julia session, or when `update` is called).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110)._
