# Juliaup really is magic

**URL:** <https://discourse.julialang.org/t/juliaup-really-is-magic/121073>\
**Category:** New to Julia\
**Tags:** juliaup\
**Created:** [October 9, 2024, 12:17am UTC](https://discourse.julialang.org/t/juliaup-really-is-magic/121073 "2024-10-09T00:17:21Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 10, 2024, 11:54am UTC](https://discourse.julialang.org/t/juliaup-really-is-magic/121073/21 "2024-10-10T11:54:08Z")

</div>

Yes. Eg I have something like

```julia
# install packages if not present
let deps = Set(map(x -> x.name, values(Pkg.dependencies())))
    for name in ["Revise", "EmacsVterm"] # customize here
        if name ∉ deps
            @info "installing package" name
            try
                Pkg.add(name)
            catch
                @warn "could not install package" name
            end
        end
    end
end

```

but it relies on experimental/unexported API, so maybe there is a better solution.

---

<div class="post-metadata">

**Author:** ![tecosaur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tecosaur/32/23206_2.png) [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Post date:** [October 10, 2024, 11:57am UTC](https://discourse.julialang.org/t/juliaup-really-is-magic/121073/22 "2024-10-10T11:57:43Z")

</div>

That can also install into a non-global environment, which I why I use `ensureglobalpkg` from [Setup.jl/src/pkgutils.jl at master - tec/Setup.jl - Code by TEC](https://code.tecosaur.net/tec/Setup.jl/src/branch/master/src/pkgutils.jl)

[Previous page](https://discourse.julialang.org/t/juliaup-really-is-magic/121073.md?page=1)
