Re: How to list top-level RPMs?

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

 




On 02/12/2005 02:39:11 AM, Thomas Zehetbauer wrote:
Hi,

how can I get a list of top-level RPMs (packages that are not required
by any other package)?

Might be a faster way, but ...

[mpeters@devel ~]$ rpm --test -e abiword 2> /dev/null
[mpeters@devel ~]$ echo $?
0
[mpeters@devel ~]$ rpm --test -e glibc 2> /dev/null
[mpeters@devel ~]$ echo $?
1

Script to querry for all packages and then attempt uninstall them with rpm --test -e

Shouls test succeed (exit status 0) echo the package to a file.

--
Michael A. Peters
http://mpeters.us/




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

  Powered by Linux