[aclug-L] Re: rpm listings
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Answer:
rpm -qa
I wanted to find out which RPMs on the CDROM (RH 6.0) had not been loaded.
Answer:
rpm -qa | sort >/tmp/$$
ls /mnt/cdrom/RedHat/RPMS | sed 's/\.[^.]*\.rpm$//' | comm -23 - /tmp/$$
rm /tmp/$$
(Command line lesson du jour. I hear bash can do this all in one line, with
no tmp file.)
Found the answer on Page 54 of "Maximum RPM". There's a link on www.rpm.org
to download a postscript copy of the whole book.
www.rpm.org has links to related software, but they're mostly GUI's --
useless to program with.
phrostie wrote:
>
> have you looked at gliint?
>
> Tom Hull wrote:
>
> > Can anyone tell me how to get a complete list of all the RPM packages
> > installed on my machine? (Red Hat 6.0)
> >
> > I've read the man page 5-10 times, and tried every documented -q option,
> > and still don't have a clue. I suppose one could write a perl script to
> > hack into the database.
--
/*
* Tom Hull -- mailto:thull@xxxxxxxxxxx or thull@xxxxxxxxxx
* http://www.ocston.org/~thull/
*/
|
|