# About to upgrade from Centos 7.9 to rocky

**URL:** <https://forums.rockylinux.org/t/about-to-upgrade-from-centos-7-9-to-rocky/15390>\
**Category:** Rocky Linux Help & Support\
**Tags:** unsupported\
**Created:** [August 9, 2024, 4:29pm UTC](https://forums.rockylinux.org/t/about-to-upgrade-from-centos-7-9-to-rocky/15390 "2024-08-09T16:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomasL](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@TomasL](https://forums.rockylinux.org/u/TomasL)\
**Post date:** [August 9, 2024, 4:29pm UTC](https://forums.rockylinux.org/t/about-to-upgrade-from-centos-7-9-to-rocky/15390/1 "2024-08-09T16:29:18Z")

</div>

If I understand it correctly:  
I install Elevate with:

```auto
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm

```

Then I install

```auto
yum install -y leapp-upgrade leapp-data-rocky

```

then I run

```auto
leapp preupgrade

```

Fixing problems from the log  
and finaly I run

```auto
leapp upgrade

```

Is there anything I have forgotten?

Will the upgrade be a like the current Centos installation, or do I need to reinstall packages, do I nedd to remove packages I dont need.  
Basically it is a server running IP-tables started by a script (Arnos IP-TGables firewall script)  
DNS-server  
DHCP-server  
SSH-server  
Webmin  
That is basically all that is running.  
The setup is headles, I am using Webmin and SSH to admin the server.

---

<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:** [August 10, 2024, 8:35am UTC](https://forums.rockylinux.org/t/about-to-upgrade-from-centos-7-9-to-rocky/15390/2 "2024-08-10T08:35:05Z")

</div>

First of all, Rocky does not support _in-place conversion to different major version of EL_ (e.g. CentOS 7 → Rocky 8, or Rocky 8 → Rocky 9). If you need help with (or info about) ELevate, then ask from its authors (e.g. [AlmaLinux OS Foundation Chat](https://chat.almalinux.org/almalinux/channels/migration) ) – and if things do break, then you get to keep the pieces.

* * *

Personally, I prefer fresh install and have never used ELevate (although once did almost consider it).

Lets consider what the conversion does. It must first read the list of currently installed packages (A), and current config (B). Then create a new list of packages (C) that are _equivalent_ to A, and new config (D) appropriate for C that is equivalent to B. Finally, install C and remove A, and replace B with D. If parts of A and B are unregognized, then creating C and D for those parts is beyond what the conversion script can do.

So no, the conversion is not likely to install “extra” packages. You might have to uninstall some packages to get the conversion run (to “fix the issues”) and (re)install afterwards.

If you do fresh install, then it is you who has to figure out which packages (of the new distro) you do need and how to translate your config for them. (I condider this a bonus – an incentive to learn the new distro.)

* * *

Note on IP-tables. The kernel in Rocky has nf\_tables. One can see current ruleset with `nft list ruleset`. There is still tool `iptables` but it is a wrapper that translates your IP-tables syntax into nf\_tables rules. There is also a script that translates IP-tables syntax rules into nft syntax to ease adoption of `nftables.service`. The default (to manage firewall) in Rocky is `firewalld.service`.

* * *

If all you need is DNS and DHCP servers (SSH is included even in minimal install), then their config ought to be trivial to copy/adapt to a fresh install. Likewise, “firewall script” probably runs ok but if you can _port_ it to “native nf\_tables”, even better. I’ve never used Webmin, nor the “Cockpit” that is in Rocky, but that too sounds “trivial” to install into fresh system.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 9, 2024, 8:35am UTC](https://forums.rockylinux.org/t/about-to-upgrade-from-centos-7-9-to-rocky/15390/3 "2024-10-09T08:35:19Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
