Reinstall all installed packages with yum

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

Reinstall all installed packages with yum

Postby lik » Fri Nov 04, 2011 6:01 am

To list all currently installed packages in the system the following command might be useful:
Code: Select all
yum list installed

To reinstall all of them easily one should:
Code: Select all
mkdir emptydirectory
cd emptydirectory
yum reinstall *

Note, that empty directory is required for a successful command execution.
More elegant solution, without empty directory, is:
Code: Select all
yum reinstall \*
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific


  • Related topics
    Last post