View previous topic :: View next topic |
Author |
Message |
Anior Guru
Joined: 17 Apr 2003 Posts: 317 Location: European Union (Stockholm / Sweden)
|
Posted: Thu Apr 17, 2003 10:57 pm Post subject: What can I say.... |
|
|
So, I messed up...
...alot...
... again.
It would be great if anybody could help me with this, even thought I doubt that it is possible.
I've managed to delete every file in /usr/bin (please, no questions :P). I've tried to patch my machine together again by downloading a stage3 and extracting everything from that /usr/bin to my system. Not sure if it works, havn't dared to reboot it yet. I'm running reiserfs so I suppose undelete is impossible too. Oh well, I got a nice long weekend to reinstall gentoo...
(The worst part is that I managed to do the same thing to my old system, but then it where /usr/lib) |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Thu Apr 17, 2003 11:05 pm Post subject: |
|
|
About the only thing you can do is "emerge -e world". That's assuming emerge is working again. |
|
Back to top |
|
|
Anior Guru
Joined: 17 Apr 2003 Posts: 317 Location: European Union (Stockholm / Sweden)
|
Posted: Thu Apr 17, 2003 11:10 pm Post subject: |
|
|
Ugh.. might as well go to bed and let it run all night then.
But it makes sence and might even work. Thanks :) |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Apr 18, 2003 12:25 am Post subject: |
|
|
Well, you've probably already started but I just realized that not every package has files in /usr/bin so something like this would probably be quicker than "emerge -e world". It's it's an ugly hack and far from foolproof but it's a start. Probably been something like this posted here before.
Code: | #!/bin/bash
touch packages
for X in `qpkg -I --nocolor`
do
if [ "`qpkg -l --nocolor $X | grep ^/usr/bin`" ]
then
echo $X >> packages
fi
done
touch emerges
for X in `cat packages`
do
emerge --nospinner -p $X >> emerges
done |
Look through "emerges" for packages that are masked and make note of those. Perhaps go ahead and emerge those by hand and remove them from "packages". Also you can look for packages that get emerged as a dep and then emerged again and remove those from "packages" as well if you want. Then run Code: |
for X in `cat packages`
do
emerge $X
done |
Will take a long time but should be significantly less than emerging everything.
Note that this likely would not work for /usr/lib. |
|
Back to top |
|
|
Anior Guru
Joined: 17 Apr 2003 Posts: 317 Location: European Union (Stockholm / Sweden)
|
Posted: Fri Apr 18, 2003 10:46 am Post subject: |
|
|
I started to emerge -e world but something went wrong with autoconf. I fiddled for half an hour or so before giving up and started to reinstall everything (I wanted to try a stage1 instead of a stage3 tarball anyway). Seems like it's working fine so far, writing from lynx while I'm installing, I'm at emerge system now so it shouldn't take that long 'til I'm back up again ;) |
|
Back to top |
|
|
|