Dave's Brain

Browse - Computer Tips - How can fake an uninstall of a package?

Date: 2017sep7
Distro: RedHat/Fedora/CentOS

Q.  How can fake an uninstall of a package?

A.  Use the --justdb option of rpm.  eg:

rpm -e --justdb --nodeps systemd
I have used this when `yum check` gave errors like:
glibc-devel-2.12-1.107.el6_4.5.x86_64 has missing requires of glibc-headers = ('...', '...', '...');
I did a fake remove of glibc-headers then installed it with
yum install glibc-headers
And the correct version was installed.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.