View previous topic :: View next topic |
Author |
Message |
ozmark n00b
Joined: 23 Jun 2002 Posts: 4
|
Posted: Sun Jun 23, 2002 11:24 am Post subject: I deleted rm! What package is it in? |
|
|
I accidentally deleted 'rm'. Does anyone know what package it is in so I can reinstall?
Cheers |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Sun Jun 23, 2002 11:49 am Post subject: |
|
|
sys-apps/fileutils
deleting rm is quite interesting ...
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Sun Jun 23, 2002 12:06 pm Post subject: |
|
|
You could still delete things by moving them to /dev/null couldn't you? _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Mon Jun 24, 2002 12:54 am Post subject: |
|
|
rm rm ????
rm /usr/bin/rm ?????
how could ya do that by accident?
or where you just trying to get rid of some progs in /usr/bin ? _________________ [resident anime junkie] -- not just a linux freak. |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Mon Jun 24, 2002 7:33 am Post subject: |
|
|
It could happen, but to fix the problem just emerge fileutils as stated by elcondor. _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Mon Jun 24, 2002 2:13 pm Post subject: |
|
|
Actually, this wouldn't really even be all that big of a problem in general. If you think about all the things that could have been deleted that would have been a lot harder to fix, you'll see that there's a lot worse that could happen. It's certainly a unique problem though. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
wimac n00b
Joined: 20 Jun 2002 Posts: 28 Location: st. louis, mo
|
Posted: Mon Jun 24, 2002 3:55 pm Post subject: Re: I deleted rm! What package is it in? |
|
|
Thanks for the best laugh I've had in weeks, deleting rm thats great.... _________________ -------------------
\/\/ | /\/\ /\ [
w i m a c
rm -rf /bin/laden |
|
Back to top |
|
|
balk n00b
Joined: 10 Apr 2002 Posts: 62 Location: Olanda
|
Posted: Mon Jun 24, 2002 5:49 pm Post subject: |
|
|
hehe, I once unmerged binutils (**DOH**)
resolved by doing an installation on an other partition and after the bootstrap, I build the binutils package and installed it on the main installation...... _________________ Powered by Gentoo since 1.0_rc6 |
|
Back to top |
|
|
ozmark n00b
Joined: 23 Jun 2002 Posts: 4
|
Posted: Mon Jun 24, 2002 6:05 pm Post subject: |
|
|
Yeah, yeah, I thought it was funny too. The way it happened is I added a cron entry to delete a file every Thursday (... thu rm /home/file) and I edited it immediately after, wanting to give the entry the full path of rm (... thu /usr/bin/rm /home/file) but ended up inserting the command with path and accidentally left in the original rm (... thu rm /usr/bin/rm /home/file).
Needless to say, rm was deleted the first time cron ran the task. Put it down as a stupid user trick, but you can bet I won't do that again!
Thanks for the info elcondor.
Cheers |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Tue Jun 25, 2002 3:55 am Post subject: |
|
|
I know you got this fixed but here is a little FYI in case you need to find out what file belongs to what package:
Code: |
# assuming you have gentoolkit
qpkg -f /bin/rm
sys-apps/fileutils *
|
_________________ This message self destructed a long time ago. |
|
Back to top |
|
|
g00se n00b
Joined: 14 Jun 2002 Posts: 16
|
Posted: Tue Jun 25, 2002 9:35 am Post subject: |
|
|
Well, glad you didn't type "rm -rf / bin/rm" by accident |
|
Back to top |
|
|
ozmark n00b
Joined: 23 Jun 2002 Posts: 4
|
Posted: Tue Jun 25, 2002 11:32 am Post subject: |
|
|
Thanks for the tip on the file-to-package search, AutoBot.
For everybodies info, the emerge of sys-apps/fileutils failed to restore rm - emerge crapped out because it needs rm to complete it's task! I had to copy an rm file from a Suse machine, and then ran the emerge again as a sanity check and everything is happy again. Sheesh, nice experience.
Cheers |
|
Back to top |
|
|
|