> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 23, 2003 1:54 PM
> To: RedHat-List
> Subject: Findig RPM's?
> 
> 
> Hi all, 
> 
> Quick one: How can I find the x11 headers? -- I need to install
> x11-devel and have cd's but know that there must be an easy way of
> finding what I want with up2date or rpm?
> 
> Many thanks...
> 
> -- 
> Nick W

Actually, no need to use 3rd party packages for something like this, and
up2date is optional.  Make sure you install the "rpmdb-redhat" package.  I
believe it is usually on cd 3 (or, of course, "up2date rpmdb-redhat").

With this package, you can do several things.  First of all, you can query
the database for uninstalled packages as such:

#rpm --redhatprovides "/usr/X11R6/include/X11/Core.h"
XFree86-devel-4.3.0-2

or whatever failed dependency or file you need.  This will query
rpmdb-redhat (database of all rpms), and tell you which package you need.

You can also perform the opposite:

#rpm --redhatrequires "XFree86-devel"
gtk2-devel-2.2.1-4
gtk+-devel-1.2.10-25
imlib-devel-1.9.13-12
lesstif-devel-0.93.36-3
pango-devel-1.2.1-3
SDL-devel-1.2.5-3

So, if you don't have any of the above packages installed, an "up2date
XFree86-devel" will resolve all dependencies, and install them all for you.

The rpm switch "--aid" will also resolve these dependencies when installing.
Just do an "rpm -ivh --aid XFree86-devel" (or whatever packages).  Of
course, all the dependency packages will have to be accessible.  Nice when
you are offline and/or don't have access to up2date.

With up2date, though, you can do the same thing with:

#up2date --whatprovides "/usr/X11R6/include/X11/Core.h"
XFree86-devel-4.3.0-2

Hope that helps,

--

Regards, 

Vinny Valdez


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to