On Thu, Mar 17, 2005 at 12:21:51PM +1100, Nik Trevallyn-Jones wrote:
> I need to post a couple of corrections to my previous post. Apologies 
> for the disinformation.
> 
> Nik wrote:
> > To re-install XFree only, a command something like the following should 
> > work for you: rpm -Uvh `rpm -q -a | grep XFree`
> 
> Wrong, wrong, wrong.
> 
> Much simpler: rpm -Uvh <path-to-rpm-files>/XFree*.rpm
> 
> (I should have mentioned that because this is system software, you will 
> need to be 'root' to do this.)

You need to be root anyway, to rpm; the databases are not
user-accessible in a standard install.

> > You will almost certainly have to add the '--force' option to the UVh 
> > part: rpm -Uvh --force `rpm -q -a | grep Xfree`
> 
> This still holds true.

Nope.  --nodeps.  --force does *not* imply --nodeps, and that's the one
that will often kill you.

> Out of interest, my mistake was caused by my confusing issues with 
> erasing a set of rpms with installing them. If you want (or find you 
> need) to remove the XFree rpms before you install the RedHat ones, a 
> command something like:
> 
> rpm -e `rpm -q -a | grep XFree` should do the trick.

*This* will *definitely* require nodeps, since you'll find a metric
shitload of stuff that depends on X being installed.  None of that
stuff really *should*, but it does.

> rpm -q -a | rpm -e
> 
> I cannot now remember whether I needed to use the '--pipe' option on the 
> first component to make that work.

Oh, my, would that be bad.  :-)

rpm -e `rpm -qa | grep XFree`

I wrap the internal command up as 'rpgrep', and that reduces to 

rpm -r `rpgrep XFree`

I have *lots* of -grep command scripts.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                [EMAIL PROTECTED]
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

      If you can read this... thank a system adminstrator.  Or two.  --me
_______________________________________________
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to