[Gllug] Installing Stuff?

Paul Brazier pbrazier at cosmos-uk.co.uk
Tue Dec 11 09:47:18 UTC 2001


> Does rpm look at all packages it knows to be installed on the 
> system or
> does it look only in the current directory?

rpm is basically a database of all packages installed on the computer.
You might think of it as slightly like the "Add/Remove Programs" in the
Windows control panel.

To see all the packages currently installed:

rpm -qa

which will scroll a long list. To page it slowly:

rpm -qa | less

(less displays it a page at a time, PgUp & PgDown to scroll, q to exit)

You can also sort it:

rpm -qa | sort | less

Or search if any packages with name containing the string "foo" is
installed 
( -i means case insensitive):

rpm -qa | grep -i foo

To see what an installed package e.g. sendmail does:
(leave off the version numbers - one of the strange things about rpm is
you sometimes need to put all the version numbers and sometimes not)

rpm -qi sendmail 

To see what an non-installed package does:
(in general use "p" and the path name to query non-installed packages)

rpm -qpi /path/to/sendmail-x.y.z-i386.rpm

To list the files a package contains:

rpm -ql sendmail

To remove a package:

rpm -e sendmail

That should get you started.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the originator.

This footnote also confirms that this email message has been checked
for the presence of computer viruses.

**********************************************************************


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list