Accidental uninstall


Whilst trying to do some updates on my CentOS server the other day I accidentally removed the package NSS-SoftOkn-freebl. This stopped yum from working so I couldn’t reinstall it (I also tried installing a straight RPM, but couldn’t get that to work either). So after a while of failing I rebooted the machine only to find that now I can’t login, it sits stuck at the “{hostname} login:” terminal and nothing entered works.

I’ve tried booting into recovery mode then mounting the file system, however even though I can do this I cannot then fix the issue as I can’t seem to wget or run rpm etc.

I know the majority of the problem is around not existing in /usr/lib64, however I can’t even seem to get a temporary version in there so I can at-least boot up / log in and try and yum install a version again.

Any help would be HUGELY appreciated as currently my only real last resort is to restore a snapshot from ~4 months ago :(

Thanks in advance


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Unfortunately, there aren’t all that many options as is needed for most programs that could be used to download something from the internet. Wget, curl, ect… aren’t going to work. If you’re lucky, you might have a copy of the rpm in /var/cache/yum/ Maybe by some chance you have a program installed that bundles its own copy. Try searching with “find / -iname