How to list top-level RPMs?
Michael A. Peters
mpeters at mac.com
Sat Feb 12 10:53:14 UTC 2005
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 at devel ~]$ rpm --test -e abiword 2> /dev/null
[mpeters at devel ~]$ echo $?
0
[mpeters at devel ~]$ rpm --test -e glibc 2> /dev/null
[mpeters at 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/
More information about the fedora-list
mailing list