# Upgrade 8.7 to 9.1 : package issue

**URL:** <https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969>\
**Category:** Rocky Linux Help & Support\
**Created:** [February 21, 2023, 10:17am UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969 "2023-02-21T10:17:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy75](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jimmy75](https://forums.rockylinux.org/u/jimmy75)\
**Post date:** [February 21, 2023, 10:17am UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/1 "2023-02-21T10:17:08Z")

</div>

Hello everyone,

I’m quite new to rocky so please excuse an issue that may seem trivial ☹

My cloud provider only allows install images of 8.7, not 9 yet. So i was trying to play around with a server we need to reinstall anyway. Here are my steps :

1/ Rescue mode, boot from network and install rocky 8.7  
2/ From there run this tutorial [How to Upgrade from Rocky Linux 8 to Rocky Linux 9](https://linuxiac.com/upgrade-rocky-linux-8-to-rocky-linux-9/)  
3/ I can’t even get the 3 packages installed, with these errors : [Screenshot by Lightshot](https://prnt.sc/nLcnEOMkikWu)

Any suggestion would be most appreciated 🙂

Thanks

---

<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:** [February 21, 2023, 12:05pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/2 "2023-02-21T12:05:36Z")

</div>

First, I’d say “_in-place conversion to different OS_” than “_upgrade_”.  
Second, I personally rather reinstall, but that obviously is not an option in your cloud.

The AlmaLinux has _ELevate project_. They do have el8 → el9 version in development. [AlmaLinux OS - ELevate Your Distribution](https://almalinux.org/elevate)  
That attempts to automatize the various steps.  
Since you have an expendable system, you could try the ELevate (and help its development in the process).

The error message is quite clear. You try to install package “rocky-release”. It requires other packages (rocky-repos) that are not in any repository. In such case one could try one of two things:

- Install the required package (rocky-repos) first
- Install both packages in same command

The definitions of repositories used to be in the \*-release package, but in el9 they have been refactored into \*-repos package. Did that happen _after_ that tutorial was written? What else in it might be out of date?

There is on additional twist: names of /etc/yum.repos.d/\*.repo files are same in el8 and el9, are they not?  
Replacing the files with el9-versions makes the el8-repos inaccessible. That might be ok in that phase of the operation – a point of no easy return.

---

<div class="post-metadata">

**Author:** ![jimmy75](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jimmy75](https://forums.rockylinux.org/u/jimmy75)\
**Post date:** [February 21, 2023, 12:24pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/3 "2023-02-21T12:24:56Z")

</div>

Thanks for your input, i’ll research that.

Unfortunatly I tried installing the rpms in a different order, including rocky-repos first : [Screenshot by Lightshot](https://prnt.sc/qIwuUQP6tRBV)

As for this : “The definitions of repositories used to be in the \*-release package, but in el9 they have been refactored into \*-repos package. Did that happen _after_ that tutorial was written? What else in it might be out of date?” → I’m not sure at all but I didnt know about the refactor so thx 🙂

---

<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:** [February 21, 2023, 12:29pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/4 "2023-02-21T12:29:57Z")

</div>

> [@jimmy75](#):
>
> Unfortunatly I tried installing the rpms in a different order

The ‘rocky-repos’ requires ‘system-release’. The ‘rocky-release’ most likely provides the ‘system-release’.  
This co-dependence means that the packages have to be installed simultaneously.

---

<div class="post-metadata">

**Author:** ![jimmy75](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jimmy75](https://forums.rockylinux.org/u/jimmy75)\
**Post date:** [February 21, 2023, 12:30pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/5 "2023-02-21T12:30:49Z")

</div>

I don’t f\*\*ing believe my stupidity : [Screenshot by Lightshot](https://prnt.sc/9Meyy21fEa9G)

Why on earth did I split the command…

---

<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:** [February 21, 2023, 12:35pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/6 "2023-02-21T12:35:36Z")

</div>

> [@jimmy75](#):
>
> Why on earth did I split the command…

The URLs are a bit long. Awkward in one command …

---

<div class="post-metadata">

**Author:** ![jimmy75](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jimmy75](https://forums.rockylinux.org/u/jimmy75)\
**Post date:** [February 21, 2023, 12:43pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/7 "2023-02-21T12:43:58Z")

</div>

The in-place conversion is running smooth for now, i’ll return once it’s done 🙂

---

<div class="post-metadata">

**Author:** ![jimmy75](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jimmy75](https://forums.rockylinux.org/u/jimmy75)\
**Post date:** [February 21, 2023, 1:55pm UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/8 "2023-02-21T13:55:34Z")

</div>

all done and with success

thanks a lot for your help @jlehtone !

---

<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:24am UTC](https://forums.rockylinux.org/t/upgrade-8-7-to-9-1-package-issue/8969/9 "2023-08-25T03:24:14Z")

</div>


