# Rocky Linux reposynch for each minor release

**URL:** <https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 22, 2023, 8:20pm UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673 "2023-04-22T20:20:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsexton18](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@dsexton18](https://forums.rockylinux.org/u/dsexton18)\
**Post date:** [April 22, 2023, 8:20pm UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/1 "2023-04-22T20:20:13Z")

</div>

I have a local repo for Rocky Linux 8. I am planning to add 9 also question is do I synch from the Rocky Linux 9.0? Or do I have to update my repo file to for each minor release?

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 22, 2023, 8:31pm UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/2 "2023-04-22T20:31:05Z")

</div>

9.0 is not supported. Only the latest is supported. We highly recommend syncing from the current and latest repositories.

---

<div class="post-metadata">

**Author:** ![dsexton18](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@dsexton18](https://forums.rockylinux.org/u/dsexton18)\
**Post date:** [April 23, 2023, 10:53am UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/3 "2023-04-23T10:53:20Z")

</div>

I was ask as general practice. How to always have the most current minor version of 9 without having to manually update my mirror url. IE 9.0 to 9.1 My current mirror for Rocky 8 is hosted on a Rocky 8 box.

---

<div class="post-metadata">

**Author:** ![dsexton18](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@dsexton18](https://forums.rockylinux.org/u/dsexton18)\
**Post date:** [April 23, 2023, 1:02pm UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/4 "2023-04-23T13:02:53Z")

</div>

I setup my Rocky repo file like below in order to sync the repo. I wish there was a way so when repossync ran it didn’t create the directory as appstream9 and baseos9. But I couldn’t think how else to configure the repo file so it gets 9 repo and not 8.

[baseos9]  
name=Rocky Linux 9 - BaseOS  
baseurl=[http://mirror.hostart.az/Rocky-Linux/9.1/BaseOS/$basearch/os/](http://mirror.hostart.az/Rocky-Linux/9.1/BaseOS/%24basearch/os/)  
gpgcheck=1  
enabled=1  
countme=1  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial

[appstream9]  
name=Rocky Linux 9 - AppStream  
baseurl=[http://mirror.hostart.az/Rocky-Linux/9.1/AppStream/$basearch/os/](http://mirror.hostart.az/Rocky-Linux/9.1/AppStream/%24basearch/os/)  
#baseurl=[http://dl.rockylinux.org/$contentdir/$releasever/AppStream/$basearch/os/](http://dl.rockylinux.org/%24contentdir/%24releasever/AppStream/%24basearch/os/)  
gpgcheck=1  
enabled=1  
countme=1

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [April 23, 2023, 4:58pm UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/5 "2023-04-23T16:58:33Z")

</div>

I would use

```auto
baseurl=http://mirror.hostart.az/Rocky-Linux/$releasever/BaseOS/$basearch/os/

```

Each Rocky 9 does have $releasever==9.

Then – just like on the official mirrors – have a symlink `9` → `9.1`.  
When your local repo gets the 9.2 content, you can update the symlink to point to `9.2`.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:16am UTC](https://forums.rockylinux.org/t/rocky-linux-reposynch-for-each-minor-release/9673/6 "2023-08-25T03:16:52Z")

</div>


