LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-22-2009, 01:22 PM   #1
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 43

Rep: Reputation: 16
yum-complete-transaction erased my system.


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
 
Old 09-22-2009, 02:06 PM   #2
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 43

Original Poster
Rep: Reputation: 16
See above for "useless use of 'cat'".

Just thought I'd throw that in there to spare someone else the
trouble.
 
Old 09-22-2009, 02:55 PM   #3
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 99

Rep: Reputation: 18
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?
 
Old 09-22-2009, 02:59 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
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
 
Old 09-22-2009, 03:14 PM   #5
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 99

Rep: Reputation: 18
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.
 
Old 09-22-2009, 03:51 PM   #6
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 43

Original Poster
Rep: Reputation: 16
@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.
 
Old 09-22-2009, 04:04 PM   #7
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 43

Original Poster
Rep: Reputation: 16
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.
 
Old 09-22-2009, 08:28 PM   #8
bubnoff
Member
 
Registered: Jun 2009
Location: Northwest
Distribution: Slackware
Posts: 43

Original Poster
Rep: Reputation: 16
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration