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 (24)
  • Uncategorized (2)

Photos (view gallery)

IMG_1756IMG_1768IMG_1757IMG_1778IMG_1774IMG_1772IMG_1760IMG_1776IMG_1761

Meta

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