Liquidstate

The digital home of Bryan Ross
  • rss
  • Home
  • About
  • Photos

Reinstalling a package using Yum

October 5, 2007

You can force the re-installation of a package using:

rpm -e --justdb --nodeps <package-name>
yum install <package-name>

This can be really useful if you’ve accidentally removed some components of the package, or perhaps hacked around with config files so much that you just want to go back to the original. Yum will automatically re-install any missing binaries, but it will not overwrite your existing config files. Instead, the ‘default’ config files will be written as “<filename>.rpmnew”.

Categories
Linux
Tags
Linux, yum
Trackback
Trackback

« Website Update Recovering Windows XP Codes »

Navigation

  • Apple (1)
  • Diving (60)
  • Linux (11)
  • Microsoft (2)
  • Sailing (25)
  • Uncategorized (2)

Photos (view gallery)

IMG_1776IMG_1757IMG_1753IMG_1777IMG_1767IMG_1769IMG_1761IMG_1771IMG_1774

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox