Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I deleted rm! What package is it in?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ozmark
n00b
n00b


Joined: 23 Jun 2002
Posts: 4

PostPosted: Sun Jun 23, 2002 11:24 am    Post subject: I deleted rm! What package is it in? Reply with quote

I accidentally deleted 'rm'. Does anyone know what package it is in so I can reinstall?

Cheers
Back to top
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Sun Jun 23, 2002 11:49 am    Post subject: Reply with quote

sys-apps/fileutils

deleting rm is quite interesting ... :twisted:

* ElCondor pasa *
_________________
Here I am the victim of my own choices and I'm just starting!
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Sun Jun 23, 2002 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
lain iwakura
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 176
Location: sd, ca

PostPosted: Mon Jun 24, 2002 12:54 am    Post subject: Reply with quote

rm rm ???? :roll:
rm /usr/bin/rm ????? 8O

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


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Mon Jun 24, 2002 7:33 am    Post subject: Reply with quote

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


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Mon Jun 24, 2002 2:13 pm    Post subject: Reply with quote

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


Joined: 20 Jun 2002
Posts: 28
Location: st. louis, mo

PostPosted: Mon Jun 24, 2002 3:55 pm    Post subject: Re: I deleted rm! What package is it in? Reply with quote

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


Joined: 10 Apr 2002
Posts: 62
Location: Olanda

PostPosted: Mon Jun 24, 2002 5:49 pm    Post subject: Reply with quote

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...... :P
_________________
Powered by Gentoo since 1.0_rc6
Back to top
View user's profile Send private message
ozmark
n00b
n00b


Joined: 23 Jun 2002
Posts: 4

PostPosted: Mon Jun 24, 2002 6:05 pm    Post subject: Reply with quote

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


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Tue Jun 25, 2002 3:55 am    Post subject: Reply with quote

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


Joined: 14 Jun 2002
Posts: 16

PostPosted: Tue Jun 25, 2002 9:35 am    Post subject: Reply with quote

Well, glad you didn't type "rm -rf / bin/rm" by accident :)
Back to top
View user's profile Send private message
ozmark
n00b
n00b


Joined: 23 Jun 2002
Posts: 4

PostPosted: Tue Jun 25, 2002 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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