# Publishing an updated package

**URL:** https://discourse.julialang.org/t/publishing-an-updated-package/35768
**Category:** General Usage
**Created:** [March 9, 2020, 8:33pm UTC](https://discourse.julialang.org/t/publishing-an-updated-package/35768 "2020-03-09T20:33:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)
#### Post date: [March 9, 2020, 8:33pm UTC](https://discourse.julialang.org/t/publishing-an-updated-package/35768/1 "2020-03-09T20:33:04Z")

</div>

A few months ago, I have published a package (a wrapper of a C library).  
Recently, the C library was updated and I decided to make use of the arifacts/jll.  
My old implementation used BinaryProvider and CI scripts: travis and appveyor (which frankly I do not remember how I set them up)

Now that I have a new version of the package that simply uses the jll package, would are the necessary steps to update it in the repository?

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [March 31, 2020, 4:43pm UTC](https://discourse.julialang.org/t/publishing-an-updated-package/35768/2 "2020-03-31T16:43:40Z")

</div>

> [@hros](#):
>
> Now that I have a new version of the package that simply uses the jll package, would are the necessary steps to update it in the repository?

What do you mean exactly? How to register the package? Or how to register a new version?

---

<div class="post-metadata">

### Author: ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)
#### Post date: [March 31, 2020, 6:09pm UTC](https://discourse.julialang.org/t/publishing-an-updated-package/35768/3 "2020-03-31T18:09:47Z")

</div>

I would like to register a new version of the package  
I updated the XXhash package  
The Julia package repository ([link](https://github.com/JuliaRegistries/General/tree/master/X/XXhash)) points to my package repo ([link](https://github.com/hros/XXhash.jl)), and lists the dependencies (in [Deps.toml](https://github.com/JuliaRegistries/General/blob/master/X/XXhash/Deps.toml))  
My new package (not yet pushed to github) is not based on the BinaryProvider but rather uses the [xxHash\_jll](https://github.com/JuliaRegistries/General/tree/master/X/xxHash_jll) package I recently registered.  
I would like to know what is the procedure of registering the new package so that it will replace the existing one?  
(It sounds unreasonable that anyone could update an existing package)

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [April 1, 2020, 12:22am UTC](https://discourse.julialang.org/t/publishing-an-updated-package/35768/4 "2020-04-01T00:22:10Z")

</div>

To publish a new version of a package, the recommended way is to use [`@JuliaRegistrator`](https://github.com/JuliaRegistries/Registrator.jl):

- bump the version number of your package in the `Project.toml` according to [semver](https://semver.org/)
- invoke `@JuliaRegistrator`, after having installed it
