list of duplicate packages installed?
Ben Stringer
ben at burbong.com
Wed Mar 10 05:12:55 UTC 2004
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
More information about the fedora-list
mailing list