-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 16 October 2002 04:41 pm, Ashley M. Kirchner wrote:
>     Someone refresh my memory again, how can I find out what package
> provides what file, assuming the file DOES NOT exist on the system, and
> I need to find out what RPM package has it so I can install it.

If you have the rpmdb-redhat package installed, you can use rpm, like so:

rpm -q --redhatprovides [file]

Some files aren't included in the rpm spec as a provide, so you may need 
the full path. The pine package is a good example. The pine rpm doesn't 
list pico as a specific capability of the package.

$ rpm -q pine
package pine is not installed

$ rpm -q --redhatprovides pico
no package provides pico

However:
$ rpm -q --redhatprovides /usr/bin/pico
pine-4.44-13

Hope that helps,
- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3} in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9rfbLn/07WoAb/SsRAr6AAKCwH5dA+FU2ML97OQTGb0U0ClzVDwCeLoRV
fdCDExBiMU1yoLgC07yCoBs=
=eQBt
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to