# Is there a way to prevent Julia from updating the registries almost every time?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150>\
**Category:** Package Management\
**Tags:** git, update\
**Created:** [July 6, 2021, 2:31pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150 "2021-07-06T14:31:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [July 6, 2021, 2:53pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150/2 "2021-07-06T14:53:40Z")

</div>

You can add something like this to `.julia/config/startup.jl`:

```julia
using Pkg: Pkg
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
# and other stuff, deleted...

```

Type `] up` to update both the registry and packages, just `] add` will work from the existing copy of the registry.

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150)._
