Re: remove x* and games from my system

Previous thread: Re: remove x* and games from my system by Stuart Henderson on Tuesday, May 27, 2008 - 5:50 pm. (1 message)

Next thread: panic: config_detach: forced detach of re0 failed (45) on Vostro 1310 by Sevan / Venture37 on Tuesday, May 27, 2008 - 8:53 pm. (1 message)
To: <misc@...>
Date: Tuesday, May 27, 2008 - 5:52 pm

$DEITY no, look at the file list of xbase, for example.

To: Stuart Henderson <stu@...>
Cc: <misc@...>
Date: Tuesday, May 27, 2008 - 7:27 pm

On Tue, May 27, 2008 at 2:52 PM, Stuart Henderson <stu@spacehopper.org>
sure maybe something like:

*untested*
cd / ; for i in $(tar tzf /path/to/game43.tgz) ; do test -f $i && rm $i ;
done

but that's a little heavy and the xargs command should be plenty safe. :-)

-Bryan

To: <misc@...>
Date: Tuesday, May 27, 2008 - 6:50 pm

Err yeah, you're right--very bad idea.

./etc
./etc/X11
./etc/X11/app-defaults
./etc/X11/fs
*snip*.
/usr
./usr/X11R6
./usr/X11R6/README
./usr/X11R6/bin

The tarballs and the lists are this way. How about just a plain
rm to get the files, then a few passes with rmdir.

--
Travers Buda

To: <misc@...>
Date: Tuesday, May 27, 2008 - 7:06 pm

My recommendation was plain rm, without -rf. Viz:

# cd /
# tar tzf /path/to/xbase43.tgz | xargs rm

I believe it to be safe. It will leave some directories in place, but won't
remove anything it's not supposed to.

In any case, for a test system as the OP has, reinstalling is probably faster
and easier.

Previous thread: Re: remove x* and games from my system by Stuart Henderson on Tuesday, May 27, 2008 - 5:50 pm. (1 message)

Next thread: panic: config_detach: forced detach of re0 failed (45) on Vostro 1310 by Sevan / Venture37 on Tuesday, May 27, 2008 - 8:53 pm. (1 message)