# Checkout previous version of a package

**URL:** <https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898>\
**Category:** General Usage\
**Tags:** package\
**Created:** [February 4, 2017, 2:58am UTC](https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898 "2017-02-04T02:58:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boolewinkle](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@boolewinkle](https://discourse.julialang.org/u/boolewinkle)\
**Post date:** [February 4, 2017, 2:58am UTC](https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898/1 "2017-02-04T02:58:53Z")

</div>

Hello,

I suspect that something small is broken in the latest version (0.8.1) of a package. I want to try running with the previous version of the package to see if this is so.

I cloned the package repo, and there is a tag “v0.8.0” of the version I want to try.  
I tried this:

> Pkg.rm(“Knet”)  
> Pkg.checkout(“Knet”,“0.8.0”)  
> Also tried  
> Pkg.checkout(“Knet”,“v0.8.0”)

Both attempt gave the same error,

> ERROR: GitError(Code:ERROR, Class:Merge, There is no tracking information for the current branch.)  
> in #123 at ./libgit2/libgit2.jl:414 [inlined]  
> in with(::Base.LibGit2.##123#128{Base.LibGit2.GitRepo}, ::Void) at ./libgit2/types.jl:638  
> in (::Base.LibGit2.##119#124{String,String,Bool,Base.LibGit2.MergeOptions,Base.LibGit2.CheckoutOptions,Base.LibGit2.GitRepo})(::Base.LibGit2.GitReference) at ./libgit2/libgit2.jl:412  
> …

Beginner here

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 4, 2017, 5:32am UTC](https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898/2 "2017-02-04T05:32:42Z")

</div>

See [this issue](https://github.com/JuliaLang/julia/issues/17146). If you have git locally installed you can do:

```julia
julia> cd( Pkg.dir("Knet") )

shell> git checkout v0.8.0

```

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 4, 2017, 5:56am UTC](https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898/3 "2017-02-04T05:56:58Z")

</div>

You’re looking for `Pkg.pin`

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [February 4, 2017, 6:25pm UTC](https://discourse.julialang.org/t/checkout-previous-version-of-a-package/1898/4 "2017-02-04T18:25:26Z")

</div>

> [@boolewinkle](#):
>
> “v0.8.0”

Also, versions are written `v"0.8.0"`
