LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2009, 01:22 PM   #1
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 38
Thanked: 1
yum-complete-transaction erased my system.


[Log in to get rid of this advertisement]
You've read the title correctly.

No ls command ...no yum ...I can change directories but
little else.

I ran yum upgrade and it got hung up somewhere and recommended
that I run yum-complete-transaction. I assumed that it was erasing duplicates ...but apparently not.

Here's a fun example of my situation:
[root@chairman log]# cat yum.log | grep yum-complete-transaction
bash: cat: command not found
[root@chairman log]# vi yum.log
bash: vi: command not found

Feel free to flame me for running this command without doing more research. I have to say though, putting an alias to "rm -rf "pretty much everything"" seems mightily irresponsible.

Bub

Update *** I do not actually have an alias to "rm -rf /bin or whatever". I was comparing the
yum-complete-transaction command to such an alias as that is what it did.

Last edited by bubnoff; 09-22-2009 at 03:54 PM.. Reason: clarification
bubnoff is offline     Reply With Quote
Old 09-22-2009, 02:06 PM   #2
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 38
Thanked: 1

Original Poster
See above for "useless use of 'cat'".

Just thought I'd throw that in there to spare someone else the
trouble.
bubnoff is offline     Reply With Quote
Old 09-22-2009, 02:55 PM   #3
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 74
Thanked: 3
Are you sure that everything is gone? Could it be that your path is empty? Check your bin directories. And why do you have an alias to "rm -rf"? That's just dumb.
By the way, what Distro are you using?
windows_xp_2003 jasohl is offline     Reply With Quote
Old 09-22-2009, 02:59 PM   #4
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 5,094
Thanked: 292
Sounds like a good time to re-install from the installation CD, WITHOUT reformatting the partition (thereby leaving your /home intact.)

And get rid of that alias -- that's dumb

Sasha
linuxslackware GrapefruiTgirl is offline     Reply With Quote
Old 09-22-2009, 03:14 PM   #5
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 74
Thanked: 3
Though if you do have your /home on a separate partition it might be a good idea to format your system partition. You could start with a clean slate as apposed to trying to install on top of a damaged one.
In general its a good idea to keep your /home on a separate partition in case things like these happen. And for easy upgrade of regular releases.
windows_xp_2003 jasohl is offline     Reply With Quote
Old 09-22-2009, 03:51 PM   #6
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 38
Thanked: 1

Original Poster
@jasohl ~
I do not actually have that alias. I was just making a comparison.
Using yum-complete-transaction functionally acted like an alias
to rm by deleting tons of binaries from my system. I would never
actually create such an alias, but whoever created the yum-complete-transaction command apparently thought it a good idea.

I thought I was simply cleaning the yum database by getting rid of duplicates. This is what I understood the command to do ( I did 'Google it'). Of course, after the damage was done Google turned up other folks with the same issue, or on the brink of the same disaster.

Bub

Last edited by bubnoff; 09-22-2009 at 03:52 PM..
bubnoff is offline     Reply With Quote
Old 09-22-2009, 04:04 PM   #7
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 38
Thanked: 1

Original Poster
I am using RHEL Desktop v.5.

This is yet another example of apt utterly kicking yum's ass without
even trying.

Anyone ever had their Debian( or similar) system hosed by an apt command?
I never have.
bubnoff is offline     Reply With Quote
Old 09-22-2009, 08:28 PM   #8
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 38
Thanked: 1

Original Poster
UPDATE:

You're gonna love this. Here's my response from Red Hat support.

Quote:
Thanks for contacting Red Hat support,

I would like to point you that this is known issue in RHEL 5, we have already escalated this to Engineering Team and they are working on it.

As per the current update it seems that this issue likely to be fixed in RHEL 5.5 release.
Well, there is a moral:

1. Have good backups ( which, thankfully, I do. )
2. Never use commands you don't fully understand. ( Even if yum tells you 'it's cool' ).
3. AVOID AT ALL COSTS yum-complete-transactions!!!!!. It's a plague on six syllables.

Bub

I will get back to restoring order from chaos now.
bubnoff is offline     Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove "yum-complete-transaction" cache. Mustafa^Qasim Linux - Software 1 05-23-2009 10:45 AM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 04:33 AM
yum update Transaction Check Error JonBL Linux - Software 21 08-10-2007 11:33 PM
Running transaction stage of yum problem Carunkumar Fedora 4 03-01-2007 12:02 PM
Yum runs into countless transaction errors. on fedora 64 system. arapidsfan Linux - Software 1 09-12-2006 01:22 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration