Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

I deleted rm! What package is it in?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
ozmark
n00b
n00b
Posts: 4
Joined: Sun Jun 23, 2002 11:15 am

I deleted rm! What package is it in?

  • Quote

Post by ozmark » Sun Jun 23, 2002 11:24 am

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

Cheers
Top
ElCondor
Guru
Guru
User avatar
Posts: 520
Joined: Wed Apr 10, 2002 6:49 am
Location: Vienna, Austria, Europe
Contact:
Contact ElCondor
Website

  • Quote

Post by ElCondor » Sun Jun 23, 2002 11:49 am

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!
Top
masseya
Bodhisattva
Bodhisattva
User avatar
Posts: 2602
Joined: Wed Apr 17, 2002 3:56 pm
Location: Baltimore, MD
Contact:
Contact masseya
Website

  • Quote

Post by masseya » Sun Jun 23, 2002 12:06 pm

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..
Top
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

  • Quote

Post by lain iwakura » Mon Jun 24, 2002 12:54 am

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.
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Mon Jun 24, 2002 7:33 am

It could happen, but to fix the problem just emerge fileutils as stated by elcondor.
This message self destructed a long time ago.
Top
masseya
Bodhisattva
Bodhisattva
User avatar
Posts: 2602
Joined: Wed Apr 17, 2002 3:56 pm
Location: Baltimore, MD
Contact:
Contact masseya
Website

  • Quote

Post by masseya » Mon Jun 24, 2002 2:13 pm

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..
Top
wimac
n00b
n00b
User avatar
Posts: 28
Joined: Thu Jun 20, 2002 1:32 am
Location: st. louis, mo
Contact:
Contact wimac
Website

Re: I deleted rm! What package is it in?

  • Quote

Post by wimac » Mon Jun 24, 2002 3:55 pm

Thanks for the best laugh I've had in weeks, deleting rm thats great....
-------------------
\/\/ | /\/\ /\ [
w i m a c

rm -rf /bin/laden
Top
balk
n00b
n00b
Posts: 62
Joined: Wed Apr 10, 2002 6:28 am
Location: Olanda
Contact:
Contact balk
Website

  • Quote

Post by balk » Mon Jun 24, 2002 5:49 pm

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
Top
ozmark
n00b
n00b
Posts: 4
Joined: Sun Jun 23, 2002 11:15 am

  • Quote

Post by ozmark » Mon Jun 24, 2002 6:05 pm

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
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Tue Jun 25, 2002 3:55 am

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: Select all

# assuming you have gentoolkit
qpkg -f /bin/rm
sys-apps/fileutils *
This message self destructed a long time ago.
Top
g00se
n00b
n00b
User avatar
Posts: 16
Joined: Fri Jun 14, 2002 8:52 am
Contact:
Contact g00se
Website

  • Quote

Post by g00se » Tue Jun 25, 2002 9:35 am

Well, glad you didn't type "rm -rf / bin/rm" by accident :)
Top
ozmark
n00b
n00b
Posts: 4
Joined: Sun Jun 23, 2002 11:15 am

  • Quote

Post by ozmark » Tue Jun 25, 2002 11:32 am

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
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy