LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-04-2022, 02:26 PM   #1
Amakesh
LQ Newbie
 
Registered: Jan 2019
Posts: 1

Rep: Reputation: Disabled
Unhappy 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.
 
Old 05-05-2022, 08:33 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Amakesh View Post
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

Last edited by dc.901; 05-05-2022 at 08:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Speed Up DNF Package Manager In Fedora, RHEL, CentOS, AlmaLinux, Rocky Linux LXer Syndicated Linux News 0 11-08-2021 01:15 AM
LXer: The Difference Between DNF and YUM, Why is Yum Replaced by DNF? LXer Syndicated Linux News 0 02-03-2020 02:02 PM
[SOLVED] Fedora, updating notices and packages : dnf updateinfo & dnf check-update fanoflq Linux - Newbie 9 05-20-2017 07:07 PM
[SOLVED] dnf remove repo, dnf command help ? mshlinux Fedora 2 10-01-2015 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration