Re: [gentoo-user] rebuild /usr/lib

2006-10-20 Thread Alan McKinnon
On Friday 20 October 2006 04:11, Philip Webb wrote:
> When using 'rm -f' (with or without '-r') the iron rule is
>
>   (1) goto the dir which contains the items to be removed
>   (2) 'pwd'
>   (3) 'ls '
>   (4) if  is not '*', recall that line with Up-arrow,
>       backspace over 'ls' & replace with 'rm -f'
>   (5) sit on hands for  >= 10 sec  while examining the results of (2
> 3 4)

A 10 second minimum? Gee, you're brave!

:-)

On that note, one enhancement I'd like to see to rm is a --pretend 
option. -i isn't the same thing, I'd like rm to tell me "I'm about to 
delete the following: ... " 

Anyone know of a patch that provides this?

alan

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild /usr/lib

2006-10-19 Thread Philip Webb
061019 Stuart Howard wrote:
> I am now working on the --emptytree to restore everything properly.
> ps. tip of the day when spring cleaning your system watch out for
> those little typos that can ruin your summer :)
> pps. Just for fun it went something like this,
> "rm -rf /usr/lib/libcrco.so /usr/lib/ /usr/lib/bochs /usr/lib/libcroco.co.0"

When using 'rm -f' (with or without '-r') the iron rule is 

  (1) goto the dir which contains the items to be removed
  (2) 'pwd'
  (3) 'ls '
  (4) if  is not '*', recall that line with Up-arrow,
  backspace over 'ls' & replace with 'rm -f'
  (5) sit on hands for  >= 10 sec  while examining the results of (2 3 4) 
  (6) & only then, 'rm -f '.
  
-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild /usr/lib

2006-10-19 Thread Stuart Howard

Thanks for the advice folks.
As it turned out I had enough of the lib left to keep some of the
system running and I managed to copy over sufficient to get a working
connection going then after much more thrashing of the head on desk it
turned out that my backup was sufficient to get portage working pretty
well phew
I am now working on the --emptytree to restore everything properly.

stu

ps. tip of the day when spring cleaning your system watch out for
those little typos that can ruin your summer :)
pps. Just for fun it went something like this,
"rm -rf /usr/lib/libcrco.so /usr/lib/ /usr/lib/bochs /usr/lib/libcroco.co.0"




On 19/10/06, Nico Schümann <[EMAIL PROTECTED]> wrote:

2006/10/19, Mark <[EMAIL PROTECTED]>:
> If not then you will need to acquire a binary gcc/etc to work around
> it. Then rebuild.
>
> emerge -e world

I think, after having set up the tool chain, you'd do a
emerge -e system and then
emerge -e world,
because the system packages aren't considered by the world file, are they?

Anyway, good luck.
--
gentoo-user@gentoo.org mailing list





--
"There are 10 types of people in this world: those who understand
binary, those who don't"

--Unknown

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild /usr/lib

2006-10-19 Thread Nico Schümann

2006/10/19, Mark <[EMAIL PROTECTED]>:

If not then you will need to acquire a binary gcc/etc to work around
it. Then rebuild.

emerge -e world


I think, after having set up the tool chain, you'd do a
emerge -e system and then
emerge -e world,
because the system packages aren't considered by the world file, are they?

Anyway, good luck.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild /usr/lib

2006-10-19 Thread Mark

On 18/10/06, Stuart Howard <[EMAIL PROTECTED]> wrote:

Could someone suggest a method for rebuilding the libraries?


If you have a working toolchain and python, then you can utilise
emerge to rebuild the system.

If not then you will need to acquire a binary gcc/etc to work around
it. Then rebuild.

emerge -e world

At which point you should probably just go have a sleep.

Good luck
Mark
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild /usr/lib

2006-10-19 Thread Alan McKinnon
On Wednesday 18 October 2006 22:07, Stuart Howard wrote:
> Hey folks,
>
> In advance I admit I have done a dumb! thing [by accident] I have
> managed to delete most of /usr/lib/ and my backup does not seem to be
> wholesome .
> Could someone suggest a method for rebuilding the libraries?
> I was thinking about a liveCD plus chroot but I would like some
> advice before i attempt it and waste a day.

Ouch.

Did you nuke python as well? If so, you are in deep shit and I would 
suggest you get some kind soul to tar.gz a working python for you that 
you can untar on your machine. You basically need a toolchain, portage, 
python and maybe a few other things installed and working so you can

emerge -e world

and fix everything in one 48 hour process. I wouldn't even try identify 
what is missing and what isn't, my system lists 35000+ files 
in /usr/lib, so rebuilding world is probably the least painful fix

alan
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] rebuild /usr/lib

2006-10-18 Thread Stuart Howard

Hey folks,

In advance I admit I have done a dumb! thing [by accident] I have
managed to delete most of /usr/lib/ and my backup does not seem to be
wholesome .
Could someone suggest a method for rebuilding the libraries?
I was thinking about a liveCD plus chroot but I would like some advice
before i attempt it and waste a day.

regards
stu
--
"There are 10 types of people in this world: those who understand
binary, those who don't"

--Unknown
--
gentoo-user@gentoo.org mailing list