-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 14 May 2002 07:23 am, Cameron Simpson wrote: > On 02:28 14 May 2002, Cesar Moya <[EMAIL PROTECTED]> wrote: > | I was trying to compile a program and needed Xlib.h and > | Xutil.h which were not installed. Typed > | > | rpm --redhatprovides Xlib.h > | > | but nothing. However, those are standard library headers, > | how do I find the package that contains them? > > You surely didn't type "-->>redhat<<provides"? Heh. > The --whatprovides option needs a full pathname. So go:
Why not, what's wrong with using --redhatprovides? If you have the rpmdb-redhat package installed, it makes life simple when trying to chase down dependencies. [mfratoni@paradox devel]$ rpm --redhatprovides libpam.so.0 pam-0.75-32 [mfratoni@paradox devel]$ rpm --redhatprovides libtermcap.so.2 libtermcap-2.0.8-28 [mfratoni@paradox devel]$ rpm --redhatprovides /usr/X11R6/include/X11/Xlib.h XFree86-devel-4.2.0-8 > [~]amadeus*> locate Xlib.h > [...] > /usr/X11R6/include/X11/Xlib.h > [...] > [~]amadeus*> rpm -q --whatprovides /usr/X11R6/include/X11/Xlib.h > XFree86-devel-4.2.0-0.6.1 That's wonderful, but what if XFree86-devel-4.2.0-0.6.1 wasn't installed? - --redhat provides to the rescue. You can use it to ask rpm what package you need to install to satisfy a dependency. - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzhjFMACgkQn/07WoAb/SsX5QCglox3N3Lq9opNSie3+MMxs5yW l2sAoKuRREdsURtrrMz2sjrfgtNry/H3 =oAGi -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list