️🚧 👷 We are still revamping our digital home - Thank you for your understanding as we improve.

SupportSages

How to reinstall a package using YUM ?

Author Profile
Faheem P.
  • April 1, 2024
  • 1 min read
How to reinstall a package using YUM ?

🎧 Listen to Article

Generating audio, please wait...

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

Looking AWS experts?

We are providing top the line custom AWS setup services

Author Profile
Posts by 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!!


    Copyright © 2008 - 2025 SupportSages Pvt Ltd. All Rights Reserved.