# How to disable automatic precompilation of packages in Julia 1.6

**URL:** <https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053>\
**Category:** Package Management\
**Created:** [March 13, 2021, 1:34am UTC](https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053 "2021-03-13T01:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [March 13, 2021, 1:34am UTC](https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053/1 "2021-03-13T01:34:59Z")

</div>

How can I prevent automatic precompilation after adding a package in Julia 1.6?

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [March 13, 2021, 2:00am UTC](https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053/2 "2021-03-13T02:00:22Z")

</div>

To disable automatic precompilation in Julia 1.6 and later, set

```julia
ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0

```

Source: [12. API Reference · Pkg.jl](https://julialang.github.io/Pkg.jl/dev/api/#Pkg.precompile)

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [June 6, 2024, 1:58pm UTC](https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053/3 "2024-06-06T13:58:44Z")

</div>

I’m trying to avoid precompilation of `Plots` when generating the documentation of a package. I only need Plots to trigger the loading of an extension such that the doc strings of the extension get loaded and shown in the docs.

I’ve tried adding `ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0` to the top of the `make.jl` file, but that didn’t do the trick. Then I used it in the section where I’m running `using LiveServer; servedocs()`, and still got everything precompiling.

Any idea on how to disable precompilation in that context? If specifically for a specific package even better.
