Tom, thanks for the advice. I get my info from lots of places and surely
some of it isn't too good.
I would never think of doing anything real important with that cheap and
dirty command line and should have said so in my message.
Later,
--Matt
----- Original Message -----
From: "Tom Brinkman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 9:58 AM
Subject: Re: [newbie] How to find dependencies?
> On Tuesday 06 March 2001 08:26 am, Matt Schroeder wrote:
> > For a quick and dirty way to deal with dependancies that are in the
> > current RPM file you can install two times, the second over the top of
> > the first but the first one with the command
> > rpm -i --force {rpm.file.name.rpm here}
> > --force should do the install even if it is missing dependancies.
> > then just reinstall it over the top of the first with a -U to "upgrade"
> > rpm -U --force {rpm.file.name.rpm here}
> > As I'm also a newbie, I might be wrong here...
>
> > > it are libXaw.so.7 and libXfont.so.1. These two libraries are
included
> > > in the XFree86-4.0.1-28mdk.i586.rpm package. How can there be a
failed
> > > dependency when those two libraries are included in the package? How
> > > do I get around this? How can I install XFree86-4.0.1-28mdk? Thank
> > > you for your help.
>
> >> DRX
>
> Not wrong Matt, but surely BAD advice. Use of --nodeps or --force
> should only be LAST resort options, when you're pretty sure you know what
> you're doing and prepared to accept the consequences if you break your
> system, specially with major upgrades (like XFree86)
>
> When installing with 'rpm -Uvh' (or -Fvh, -ivh), if deps are not met,
> the install/upgrade will fail and the deps will be listed. To make sure
> they're not already on the system, run 'locate'. EG,
>
> /home/tom : locate -i libxaw.so.7
> /var/tmp/XFree86-root/usr/X11R6/lib/libXaw.so.7.0
> /var/tmp/XFree86-root/usr/X11R6/lib/libXaw.so.7
> /usr/X11R6/lib/libXaw.so.7.0
> /usr/X11R6/lib/libXaw.so.7
>
> So, it's already installed on my system. To find out how it got there,
>
> /home/tom : rpm -q --whatprovides /usr/X11R6/lib/libXaw.so.7
> XFree86-libs-4.0.2-4mdk So now we know we're lookin for an XFree86-libs
> package, and we'll want to match version and patch level (eg, 4.0.1-28mdk)
> if at all possible.
>
> Now if locate or whatprovides turn up nothin, then go to,
> http://rpmfind.net/linux/RPM/ and search libXaw.so.7
> which returns XFree86-libs-4.0.1-28mdk-i586.rpm (among many others
> and other distros)
>
> So XFree86-libs-4.0.1-28mdk needs to be installed before
> XFree86-4.0.1-28mdk. BUT, not neccesarily, when upgrading multiple
> packages for something like XFree86 it's a good idea to d/l them all into
a
> directory all by themselves and then run 'rpm -Uvh *' This helps to
> avoid circular dependency failures. rpm will cross check all the rpms in
> the dir, and still may return some failed deps. So then it's back to
> rpmfind.net to get those. Repeat til successful ;>
>
> There's other ways to find/satisfy deps, urpmf and rpm2html come to
> mind, but the above is how I do it. Also, when upgrading to packages newer
> than your distro version (eg, LM7.2), you'll prob'ly get into situations
> sooner or later when you might be a little leary of the provider (eg,
> cooker, contribs, etc.). Then it's a good idea to get the src rpm version
> and rebuild it on your system to better insure compatibility.
> --
> Dale Earnhardt, the greatest stock car driver ever,
> he's won his 8th and His Greatest Championship
> Tom Brinkman [EMAIL PROTECTED] Galveston Bay
>
>