[plug] Request

Anthony J. Breeds-Taurima tony at cantech.net.au
Wed Mar 1 17:04:49 WST 2000


On Wed, 1 Mar 2000, Peter Wright wrote:

> 
> Hi all,
> 
> A quick RPM question:
> 
> Can anyone either
> 
> (a) tell me the RPM package(s) that provide the libraries
> 	libguile.so.4
> 	libreadline.so.3

gulie
readline

the exact version depends on your RedHat distro
> 
> or
> 
> (b) tell me the appropriate way to work out the above?

If they are installed and you want to knwo what package owns them:
rpm -qf /usr/lib/libreadline.so.3.0 /usr/lib/libguile.so.4.0.0

otherwise you need to do something like
cd path/to/RPMS
for i in *.rpm ; do
	echo ...
	rpm -ql $i 2>&1 | grep $1
	echo $i
done


then you'll get a complete list of rpms BUT if you see the files your
intersted in then the NEXT rpm is the one that contains them.


Obviously makeing the ouput is just a matter of fixing the shell script.

There are other flags for rpm

--provides
--requires
--whatprovides
--whatrequires

BUT they are designed to work on the installed rpms.


Yours Tony.




More information about the plug mailing list