Verder Terug Inhoud

5. Informatie opvragen

5.1 Informatie over te installeren software

Met RPM kun je allerlei informatie opvragen over de te installeren software.

# rpm -qpi ispell-3.1.20.i386.rpm
Name        : ispell                       Relocations: (not relocateable)
Version     : 3.1.20                            Vendor: Red Hat Software
Release     : 22                            Build Date: Tue 07 Sep 1999 07:03:29 PM CEST
Install date: Thu 21 Oct 1999 10:15:50 PM CEST      Build Host: porky.devel.redhat.com
Group       : Applications/Text             Source RPM: ispell-3.1.20-22.src.rpm
Size        : 6351115                          License: GPL
Packager    : Red Hat Software <http://developer.redhat.com/bugzilla>
Summary     : The GNU interactive spelling checker program.
Description :
Ispell is the GNU interactive spelling checker.  Ispell will check a
text file for spelling and typographical errors.  When it finds a word
that is not in the dictionary, it will suggest correctly spelled words
for the misspelled word.

You should install ispell if you need a program for spell checking
(and who dosn't...).

# rpm -qlp ispell-3.1.20.i386.rpm
/usr/bin/buildhash
/usr/bin/findaffix
/usr/bin/icombine
/usr/bin/ijoin
/usr/bin/ispell
/usr/bin/munchlist
/usr/bin/spell
/usr/bin/sq
/usr/bin/tryaffix
/usr/bin/unsq
/usr/doc/ispell-3.1.20
/usr/doc/ispell-3.1.20/README
/usr/info/ispell.info.gz
/usr/lib/ispell
/usr/lib/ispell/american.hash
/usr/lib/ispell/americanmed+.hash
/usr/lib/ispell/americanxlg.hash
/usr/lib/ispell/british.hash
/usr/lib/ispell/britishmed+.hash
/usr/lib/ispell/britishxlg.hash
/usr/lib/ispell/english.aff
/usr/lib/ispell/english.hash
/usr/man/man1/buildhash.1
/usr/man/man1/findaffix.1
/usr/man/man1/ispell.1
/usr/man/man1/munchlist.1
/usr/man/man1/sq.1
/usr/man/man1/tryaffix.1
/usr/man/man1/unsq.1
/usr/man/man5/english.5
/usr/man/man5/ispell.5

5.2 Informatie over geinstalleerde software

Met RPM kun je ook allerlij informatie opvragen over geinstalleren software.

# rpm -q foo
foo-1.2-3.i386   

# rpm -qf /usr/local/bin/foo
foo-1.2-3.i386

# rpm -qdf /usr/bin/ispell
/usr/doc/ispell-3.1.20/README
/usr/info/ispell.info.gz
/usr/man/man1/buildhash.1
/usr/man/man1/findaffix.1
/usr/man/man1/ispell.1   
/usr/man/man1/munchlist.1
/usr/man/man1/sq.1
/usr/man/man1/tryaffix.1
/usr/man/man1/unsq.1
/usr/man/man5/english.5
/usr/man/man5/ispell.5 

# rpm -qi ispell
Name        : ispell                       Relocations: (not relocateable)
Version     : 3.1.20                            Vendor: Red Hat Software
Release     : 22                            Build Date: Tue 07 Sep 1999 07:03:29 PM CEST
Install date: Thu 21 Oct 1999 10:15:50 PM CEST      Build Host: porky.devel.redhat.com
Group       : Applications/Text             Source RPM: ispell-3.1.20-22.src.rpm
Size        : 6351115                          License: GPL
Packager    : Red Hat Software <http://developer.redhat.com/bugzilla>
Summary     : The GNU interactive spelling checker program.
Description :
Ispell is the GNU interactive spelling checker.  Ispell will check a
text file for spelling and typographical errors.  When it finds a word
that is not in the dictionary, it will suggest correctly spelled words
for the misspelled word.

You should install ispell if you need a program for spell checking
(and who dosn't...).

# rpm -ql ispell

  
/usr/bin/buildhash
/usr/bin/findaffix
/usr/bin/icombine
/usr/bin/ijoin
/usr/bin/ispell
/usr/bin/munchlist
/usr/bin/spell
/usr/bin/sq
/usr/bin/tryaffix
/usr/bin/unsq
/usr/doc/ispell-3.1.20
/usr/doc/ispell-3.1.20/README
/usr/info/ispell.info.gz
/usr/lib/ispell
/usr/lib/ispell/american.hash
/usr/lib/ispell/americanmed+.hash
/usr/lib/ispell/americanxlg.hash
/usr/lib/ispell/british.hash
/usr/lib/ispell/britishmed+.hash
/usr/lib/ispell/britishxlg.hash
/usr/lib/ispell/english.aff
/usr/lib/ispell/english.hash
/usr/man/man1/buildhash.1
/usr/man/man1/findaffix.1
/usr/man/man1/ispell.1
/usr/man/man1/munchlist.1
/usr/man/man1/sq.1
/usr/man/man1/tryaffix.1
/usr/man/man1/unsq.1
/usr/man/man5/english.5
/usr/man/man5/ispell.5

# rpm -qa

3c5x9utils-1.0-3
apmd-3.0beta9-3
arpwatch-2.1a4-16
ash-0.2-18
at-3.1.7-11
audiofile-0.1.9-1
audiofile-devel-0.1.9-1
aumix-1.22.1-6
authconfig-2.0-2
autoconf-2.13-5
automake-1.4-5
awesfx-0.4.3a-2
basesystem-6.0-4
bash-1.14.7-16
bc-1.05a-4
bdflush-1.5-10
bind-utils-8.2.1-7
binutils-2.9.1.0.23-6
bison-1.28-1
byacc-1.9-11
bzip2-0.9.5c-1
cdecl-2.5-9
..
enz

Zoals je ziet wordt dit een lange onoverzichtelijke file. Je kan voor een complete lijst van de geinstalleerde software beter het onderstaande commando gebruiken:

# rpm -qa | sort > software.txt

Je hebt nu een file software.txt die alfabetisch is opgebouwd.


Verder Terug Inhoud