# How to activate a package in a script?

**URL:** <https://discourse.julialang.org/t/how-to-activate-a-package-in-a-script/28185>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [August 29, 2019, 10:29pm UTC](https://discourse.julialang.org/t/how-to-activate-a-package-in-a-script/28185 "2019-08-29T22:29:22Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 31, 2019, 3:11pm UTC](https://discourse.julialang.org/t/how-to-activate-a-package-in-a-script/28185/19 "2019-08-31T15:11:18Z")

</div>

> [@hendri54](#):
>
> There, the package is unregistered and simply using `add` on the remote would not ensure that the latest uploaded code is compiled.

Why not?

> [@hendri54](#):
>
> And `update` would ignore the unregistered dependency.

No, if you have added by URL as David suggested Pkg will update it to latest master, otherwise it is a bug.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-activate-a-package-in-a-script/28185)._
