RPM Commands

Bruno Wolff III bruno at wolff.to
Tue May 6 06:12:48 UTC 2008


On Mon, May 05, 2008 at 15:51:59 +0100,
  Luciano Rocha <strange at nsk.no-ip.org> wrote:
> On Mon, May 05, 2008 at 10:34:28AM -0400, Thom Paine wrote:
> > Is there an rpm command I can run to clean up the old rpm files on my system?
> > 
> > Something like rpm -qa | grep fc4 -exec rpm -e {} \;
> 
> rpm -qa | grep fc4 | xargs rpm -e
> 
> Better yet:
> rpm -qa | grep fc4 | yum remove

Searching for release extensions isn't a good way to do this. Not everything
gets rebuilt every release. You really want to look for orphans, which
package-cleanup will do for you. (An even within the orphans you will want
to check for manually added stuff.)




More information about the fedora-list mailing list