Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What can I say....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Anior
Guru
Guru


Joined: 17 Apr 2003
Posts: 317
Location: European Union (Stockholm / Sweden)

PostPosted: Thu Apr 17, 2003 10:57 pm    Post subject: What can I say.... Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Apr 17, 2003 11:05 pm    Post subject: Reply with quote

About the only thing you can do is "emerge -e world". That's assuming emerge is working again.
Back to top
View user's profile Send private message
Anior
Guru
Guru


Joined: 17 Apr 2003
Posts: 317
Location: European Union (Stockholm / Sweden)

PostPosted: Thu Apr 17, 2003 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Apr 18, 2003 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Anior
Guru
Guru


Joined: 17 Apr 2003
Posts: 317
Location: European Union (Stockholm / Sweden)

PostPosted: Fri Apr 18, 2003 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum