LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Andrew Burrow <alburrow@cs.adelaide.edu.au>
  To  : Earnshaw, Mike <earnshawm@wa.switch.aust.com>
  Date: Mon, 12 Jun 2000 22:13:15 +0930

Re: Finding RPM Summary

Regarding the database of all RedHat packages:


> The solution I favoured was from Daryl (LinuxSA)..
> 
> ====
> for file in `find /mnt/cdrom -name "*.rpm" -print`; do
>     echo "===" ${file}
>     rpm -qlp ${file}
>     echo
> done > RedHat_6.x_filelist
> 
> Then grep/less/vi/whatever are your bestest friends.

The package

    rpmdb-redhat

is the database for a complete installation.  After installing this
package you can query this hypothetical installation by adding the
option

    --dbpath=/usr/lib/rpmdb/i386-redhat-linux/redhat

For example

    rpm --dbpath=/usr/lib/rpmdb/i386-redhat-linux/redhat \
        -qal > RedHat_6.x_filelist


Andrew


--
  + Department of Computer Science,                 "There is no fate that
         University of Adelaide,                      cannot be surmounted
         Adelaide SA 5005, Australia                             by scorn."
  + alburrow@cs.adelaide.edu.au                               Albert Camus

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page