# Converting existing Package from old Pkg to new Pkg

**URL:** <https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743>\
**Category:** New to Julia\
**Tags:** pkg\
**Created:** [April 7, 2021, 10:23am UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743 "2021-04-07T10:23:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [April 7, 2021, 10:23am UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743/1 "2021-04-07T10:23:25Z")

</div>

Hello everyone,

I couldn’t find an up to date answer to this question.  
I have this very old package generated under julia 0.6.  
How can I update to Pkg3 without loosing git history and without changing the name?

Many thanks in advance,  
Olivier

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [April 7, 2021, 10:43am UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743/2 "2021-04-07T10:43:11Z")

</div>

These things are orthogonal. You just make a commit, which adds `Project.toml` and updates code to a julia 1.0+ version and you’re good to go. Since it’s just a new commit, no git history would be lost, quite the contrary.

---

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [April 7, 2021, 11:20am UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743/3 "2021-04-07T11:20:30Z")

</div>

ok, thanks.  
I see your point.

I should have phrased a bit differently. What I’m most interested in is to know how I add a legal project file, with legal UUID and remove the require file. Can I just erase the latter?

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [April 7, 2021, 11:26am UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743/4 "2021-04-07T11:26:38Z")

</div>

Yes, surely you can delete it. Here is an example of GeoIP.jl which was recently updated from pre 1.0 to 1.0+ version: [https://github.com/JuliaWeb/GeoIP.jl/pull/29/files](https://github.com/JuliaWeb/GeoIP.jl/pull/29/files)

I removed REQUIRE, add Project.toml and some CI scripts.

If you doubt about uuid and other things, then the easiest way is to generate new project with the same name with the help of `PkgTemplates.jl` and just copy all files (except `src` and `README` of course) to your old project.

This should work smoothly if it was removed from the Registry. If it is a registered package, you should use it’s current uuid.

---

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [April 7, 2021, 2:27pm UTC](https://discourse.julialang.org/t/converting-existing-package-from-old-pkg-to-new-pkg/58743/5 "2021-04-07T14:27:34Z")

</div>

great!  
That worked like a charm.  
Thanks a lot
