web analytics


How to reinstall a package using YUM ?

Tags: packagereinstallremoveyum

Published on: July 31, 2009 by Faheem P.

How to reinstall a package using YUM ?


There would be situations where the package install is so corrupted and we can’t remove the package with –nodeps to remove it from server and just install the package only. Remove the package from the local RPM database to trick yum into reinstall package. Please note that no files are deleted when using rpm -e with –justdb.

So here is what you have to do, to reinstall a openssh-server.

[root@support home]# rpm -qV openssh-server.x86_64
S.5....T  c /etc/pam.d/sshd
S.5....T  c /etc/ssh/sshd_config

[root@support home]# rpm -e --justdb --nodeps openssh-server.x86_64

[root@support home]# yum install openssh-server.x86_64

Category : General, Howtos, Linux, Troubleshooting

Faheem P.

Faheem P.

Faheem enjoys learning new technologies and loves to implement cutting edge solutions. He is one of the most active member in various technical forums and is a familiar face in various brain storming sessions. He takes great pride in being an explorer and the best thing you can be sure about in his room is the backpack!!

You may also read:


Add new commentSIGN IN

Let's Connect

Get new updates


$0.000 items