Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 02:54 PM.
Reason: clarification
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?
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.
@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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.