# Dry run of adding a package

**URL:** <https://discourse.julialang.org/t/dry-run-of-adding-a-package/97783>\
**Category:** Package Management\
**Created:** [April 22, 2023, 10:32am UTC](https://discourse.julialang.org/t/dry-run-of-adding-a-package/97783 "2023-04-22T10:32:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [April 22, 2023, 10:32am UTC](https://discourse.julialang.org/t/dry-run-of-adding-a-package/97783/1 "2023-04-22T10:32:44Z")

</div>

It happens occassinally to me that after adding a registerered package to a given already populated environment, I observe downgrade of several already installed packages. Depending on how much I need or want the new package, I either accept this situation or remove the new package (and forget about it) and issue an update command to return the environment to the original state.

But I was wondering if there is a more efficient workflow. For example, is it possible to do some sort of dry run of the package adding procedure?

Adding a package to a brand new and empty environment where it does not disturb anything is not an option because I can only find some use for the package within a given and already populated environment.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [April 22, 2023, 1:34pm UTC](https://discourse.julialang.org/t/dry-run-of-adding-a-package/97783/2 "2023-04-22T13:34:54Z")

</div>

> [@zdenek\_hurak](#):
>
> For example, is it possible to do some sort of dry run of the package adding procedure?

The `dry-run` option was removed, if I remember right. But there’s an `undo` function, which might help. On Pkg.jl there are various discussions about workflow, you might find some useful insights there…
