LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Lost dnf after migration from Centos7/8 to AlmaLinux (https://www.linuxquestions.org/questions/centos-111/lost-dnf-after-migration-from-centos7-8-to-almalinux-4175711678/)

Amakesh 05-04-2022 02:26 PM

Lost dnf after migration from Centos7/8 to AlmaLinux
 
I migrated my CentOS 7 to 8 and then to AlmaLinux, but in the process i lost dnf and yum. Now i try to fix, but have a lot of problems with dependencies etc. Only rpm is working so i have to do all “manually”.

If i try:
Quote:

rpm -ivh https:/ /vault.centos.org/centos/8/BaseOS/x86_64/os/Packages/rpm-libs-4.14.3-19.el8.x86_64.rpm
i get an error:
Quote:

Failed dependencies: rpm = 4.14.3-19.el8 is needed by rpm-libs-4.14.3-19.el8.x86_64
but if try:
Quote:

rpm -ivh https:/ /repo.almalinux.org/almalinux/8/BaseOS/x86_64/os/Packages/rpm-4.14.3-19.el8_5.2.x86_64.rpm
i get a lot of conflicts https://pastebin.com/LexNqzY5

How can i fix it? I have only an remote access (via ssh or webmin) to this system.
I have an Centos 7 and AlmaLinux on VirtualBox, so i can possibly transfer some files from there.

dc.901 05-05-2022 08:33 AM

Quote:

Originally Posted by Amakesh (Post 6350755)
I migrated my CentOS 7 to 8 and then to AlmaLinux, but in the process i lost dnf and yum. Now i try to fix, but have a lot of problems with dependencies etc. Only rpm is working so i have to do all “manually”.

If i try:


i get an error:


but if try:


i get a lot of conflicts https://pastebin.com/LexNqzY5

How can i fix it? I have only an remote access (via ssh or webmin) to this system.
I have an Centos 7 and AlmaLinux on VirtualBox, so i can possibly transfer some files from there.

How exactly did you perform these steps?
Did yum and dnf work after you migrated from centos 7 to 8?
What repos do you have?
Code:

yum repolist
or
dnf repolist



All times are GMT -5. The time now is 08:49 AM.