Re: list of duplicate packages installed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2004-03-10 at 15:19, Innes Cathcart wrote:
> Hi,
> 
> I'm trying to generate a list of duplicate packages that are installed on my 
> system.  I've been trying to use apt-get and rpm to do this.  Sometimes apt 
> tells me there's lots of duplicate packages and other times it doesn't.  How 
> can I do this?  Thanks,

Most of the package managers are configured to avoid duplicates (with
the exception of some packages, like the kernel).

This should give you what you want:

rpm -q --qf "%{NAME}\n" -a | sort | uniq -d

You will then need to query the outputted packages individually to find
their version info. On my system, only kernel and gpg-pubkey are
duplicates.

Cheers, Ben





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux