openbsd-misc
[Top] [All Lists]

Re: How to install comp.tgz after installed base system?

To: misc@openbsd.org
Subject: Re: How to install comp.tgz after installed base system?
From: kevin lyda <kevin@suberic.net>
Date: Sat, 2 Feb 2002 02:09:45 +0000
In-reply-to: <20020202000926.GA8858@tako.de>; from nilsf@tako.de on Sat, Feb 02, 2002 at 01:09:27AM +0100
References: <20020201211658.10841.qmail@web20104.mail.yahoo.com> <20020202000926.GA8858@tako.de>
Sender: owner-misc@openbsd.org
User-agent: Mutt/1.2.5i
On Sat, Feb 02, 2002 at 01:09:27AM +0100, Nils Frohberg wrote:
> a (not very nice) way of uninstalling it is by using a shell loop:
> for i in `tar tzf comp30.tgz` ; do rm -f /$i ; done
> 
> edit for your appropriate shell, but beware!, doing a 'rm -f /$i' can
> be hazardous to your health if $i is wrong. like i said, not a nice way
> to solve the problem. better get the output of tar into a file and check
> it manually.
> 
> anyone a better idea?

hm, that's a pretty huge commandline.  i'd do

    tar tzf comp30.tgz | xargs rm -f

you'll get lots of errors on trying to rm directories (which it won't do).

kevin

-- 
kevin@suberic.net          buffy: come on, can't you put your foot down?!
fork()'ed on 37058400      giles: it *is* down.
meatspace place: orbit     buffy: one of these days you're going to have to
http://suberic.net/~kevin         get a grown up car.  --inca mummy girl

<Prev in Thread] Current Thread [Next in Thread>