Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to install a package yum install zlib-devel on my environment, but it declines stating that 3 pre-existing rpmdb problems with the following packages:
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
freetype-2.8-12.el7.x86_64 is a duplicate with freetype-2.4.11-15.el7.i686
libdrm-2.4.91-3.el7.x86_64 is a duplicate with libdrm-2.4.74-1.el7.i686
libuuid-2.23.2-59.el7.x86_64 is a duplicate with libuuid-2.23.2-43.el7_4.2.i686
Does anyone know on how to solve this problem? Thank you.
1) If the system is Red Hat Enterprise Linux 5 or later, the package-cleanup command can be used:
Raw
# package-cleanup --dupes
# package-cleanup --cleandupes
The --dupes command will list the duplicate packages installed on the machine, while the --cleandupes switch will remove the older versions. package-cleanup command is provided by the yum-utils package.
2) If package-cleanup does not help or the system is Red Hat Enterprise Linux 4, remove packages manually using rpm:
Raw
# rpm -e --justdb <package-name>-<old-version>
The '--justdb' switch is used to ensure that the package removal does not remove its files from the file system, removing it only from the rpm database.
I'm trying to install a package yum install zlib-devel on my environment, but it declines stating that 3 pre-existing rpmdb problems with the following packages:
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
freetype-2.8-12.el7.x86_64 is a duplicate with freetype-2.4.11-15.el7.i686
libdrm-2.4.91-3.el7.x86_64 is a duplicate with libdrm-2.4.74-1.el7.i686
libuuid-2.23.2-59.el7.x86_64 is a duplicate with libuuid-2.23.2-43.el7_4.2.i686
Does anyone know on how to solve this problem? Thank you.
First, I bolded a line in what you posted for emphasis...did you read/try that??? And what is the WHOLE output of your "yum install zlib-devel" command? That package is available from the RHEL repositories, and may even be on the installation media. You shouldn't get ANY broken dependencies, unless you're not paying for RHEL (ARE YOU??), and don't have access to the RHEL repositories.
If you're not paying for RHEL, there's little sense in using it...CentOS is totally free, and 99.x% identical to RHEL, and you won't have those issue.
@TB0ne,
I do agree with you, but personally, I wouldn't try that option(--skip-broken or --nodeps) with yum (or zypper/apt/rpm) without trying to fix the rpmdb issue first.
I do concur that not all dependencies are real/required/deal-breakers, but that is to be decided on a case-by-case basis.
The OP should have done some homework before posting. This is a pretty common issue (more of a small nuisance really!!) in RHEL/CentOS. Sometimes this error can be reproduced by killing a running yum update. (Of course, killing a running update may introduce other nasties !)
@TB0ne,
I do agree with you, but personally, I wouldn't try that option(--skip-broken or --nodeps) with yum (or zypper/apt/rpm) without trying to fix the rpmdb issue first.
I agree, and this points to the OP trying to use yum to install a manually-downloaded package, versus doing it from repositories alone. That would fix the dependencies, since the updated packages would get installed during the system update.
Quote:
I do concur that not all dependencies are real/required/deal-breakers, but that is to be decided on a case-by-case basis. The OP should have done some homework before posting. This is a pretty common issue (more of a small nuisance really!!) in RHEL/CentOS. Sometimes this error can be reproduced by killing a running yum update. (Of course, killing a running update may introduce other nasties !)
Indeed. OP, again: are you PAYING for RHEL? If you're not, as said before (and echoed by knudfl), you really should use CentOS instead, and let yum do what it was designed to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.