# Updating environments

**URL:** <https://discourse.julialang.org/t/updating-environments/28274>\
**Category:** General Usage\
**Tags:** package-manager\
**Created:** [September 2, 2019, 1:06am UTC](https://discourse.julialang.org/t/updating-environments/28274 "2019-09-02T01:06:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [September 2, 2019, 11:25am UTC](https://discourse.julialang.org/t/updating-environments/28274/2 "2019-09-02T11:25:23Z")

</div>

As I understand it, the answer is `Pkg.rm` followed by `Pkg.add` (see [How to activate a package in a script? - #19 by fredrikekre](https://discourse.julialang.org/t/how-to-activate-a-package-in-a-script/28185/19)).

However, I find it easier to roll my own package registry. Then I just need to make a blank environment on the remote and issue `Pkg.add(A)`.

---

_[View the full topic](https://discourse.julialang.org/t/updating-environments/28274)._
