<html>
<head>
</head>
<body>
<a class="moz-txt-link-abbreviated" href="mailto:krannen@gte.net">krannen@gte.net</a> wrote:<br>
<blockquote type="cite" cite="mid:3BEF7F02.3010506@gte.net">I'm looking for
a nice rpm management tool for RH machines, it must be non-X. <br>
For those that have seen SuSE, I need something like "yast". [It's a tool
<br>
that will show you what you have installed, but more importantly, will also
<br>
show you what's on the distro CDs, and allow you to install them, including
<br>
any dependencies.] <br>
<br>
Surely such a thing exists? <br>
<br>
Kevin <br>
<br>
<br>
<br>
_______________________________________________ <br>
<a class="moz-txt-link-freetext" href="http://www.ntlug.org/mailman/listinfo/discuss">http://www.ntlug.org/mailman/listinfo/discuss</a> <br>
<br>
</blockquote>
<br>
<br>
rpm can show what's installed, where it's<br>
installed, what package a particular file<br>
came from, and where a package on CD would<br>
be installed, if you so choose.<br>
<br>
To list all installed packages:<br>
<br>
rpm -qa<br>
<br>
To list all packages related to a<br>
particular subject:<br>
<br>
rpm -qa | grep <subject><br>
<br>
For example, on my system:<br>
<br>
rpm -qa | grep vim<br>
<br>
outputs:<br>
<br>
vim-enhanced-5.8-7<br>
vim-common-5.8-7<br>
vim-X11-5.8-7<br>
vim-minimal-5.8-7<br>
<br>
Say I wanted to know which package an<br>
individual file came from:<br>
<br>
rpm -qf <filename><br>
<br>
As in:<br>
<br>
rpm -qf /usr/bin/X11/gvim<br>
<br>
outputs:<br>
<br>
vim-X11-5.8-7<br>
<br>
If you want to know everytihing which<br>
was installed by a certain package:<br>
<br>
rpm -ql <package name><br>
<br>
As in:<br>
<br>
rpm -ql vim-minimal-5.8-7<br>
<br>
outputs:<br>
<br>
/bin/ex<br>
/bin/rvi<br>
/bin/rview<br>
/bin/vi<br>
/bin/view<br>
<br>
To view what's in an RPM file which hasn't<br>
been installed yet, use:<br>
<br>
rpm -qpl <package name>.arch.rpm<br>
<br>
as in:<br>
<br>
rpm -qpl ./RPMS/imwheel-0.9.7-0.i386.rpm<br>
<br>
outputs:<br>
<br>
/etc/imwheelrc<br>
/usr/X11R6/bin/imwheel<br>
/usr/bin<br>
/usr/bin/getmdt<br>
/usr/bin/mdump<br>
/usr/bin/see<br>
/usr/bin/setimps2<br>
/usr/bin/setmmplus<br>
/usr/bin/setps2<br>
/usr/man/man1<br>
/usr/man/man1/imwheel.1<br>
<br>
rpm is an extremely versatile package manager.<br>
I don't use all of its capabilities, these are<br>
just a few that I find handy.<br>
<br>
One failing of rpm is that it won't install dependant<br>
packages automatically. The last time I ran into that<br>
situation, it generated an error, and I had to add the<br>
required package on the command line with those<br>
I originally attempted to install.<br>
<br>
As with everyting Linux/Unix; the man page will<br>
give you more info, and your mileage my vary.<br>
<br>
I hope this helps,<br>
<br>
Val<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Val W. Harris <a class="moz-txt-link-abbreviated" href="mailto:vwharris@airmail.net">vwharris@airmail.net</a>
"Lots of people want to ride with you in the limo, but what you want is
someone who will take the bus with you when the limo breaks down."
- Oprah Winfrey
</pre>
<br>
</body>
</html>