# Pkg gc behavior: looking across versions?

**URL:** <https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335>\
**Category:** General Usage\
**Created:** [August 13, 2018, 2:09am UTC](https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335 "2018-08-13T02:09:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/randyzwitch/32/15955_2.png) [@randyzwitch](https://discourse.julialang.org/u/randyzwitch)\
**Post date:** [August 13, 2018, 2:09am UTC](https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335/1 "2018-08-13T02:09:15Z")

</div>

This seems undesirable to me:

```julia
(v0.7) pkg> gc
    Active manifests at:
        `/Users/randyzwitch/.julia/environments/v1.0/Manifest.toml`
        `/Users/randyzwitch/.julia/environments/v0.7/Manifest.toml`
   Deleted 0 package installations 

```

Although gc may run automatically and delete things as needed, if I’m running in 0.7 I don’t think I want even the idea that possible action might be taken in the 1.0 environment. Am I overreacting?

---

<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 13, 2018, 5:48am UTC](https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335/2 "2018-08-13T05:48:59Z")

</div>

But it didn’t delete anything that you used in the 1.0 environment? What is your concern?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 13, 2018, 7:30am UTC](https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335/3 "2018-08-13T07:30:23Z")

</div>

> [@randyzwitch](#):
>
> if I’m running in 0.7 I don’t think I want even the idea that possible action might be taken in the 1.0 environment

The whole point of the `gc` is that it removes packages that are _not_ in _any_ environment.

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/randyzwitch/32/15955_2.png) [@randyzwitch](https://discourse.julialang.org/u/randyzwitch)\
**Post date:** [August 13, 2018, 12:14pm UTC](https://discourse.julialang.org/t/pkg-gc-behavior-looking-across-versions/13335/4 "2018-08-13T12:14:00Z")

</div>

Kristoffer answered that I misunderstood what the purpose is of the function, but the original question is one of ‘why is one version of Julia looking into another version?’

In this one case, it makes sense
