LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-17-2006, 03:54 PM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600

commands are in the /usr/bin directory, so this wont work.
Heh. I was pondering the same thing yesterday.


got linux rescue mode and copy the files find, rpm2cpio,uniqetc. to my deleted /usr/bin.
Next time you could try mounting the CD, I mean mount lives in /bin and if you add the mounted location to your path statement it should find the binaries.


didnt know rpm could do this!
No actually it can't because it has no knowledge of concepts like restoring. Luckily we have.
In any case it definately is a tribute to a workable package management system. With "less evolved" ones I wouldn't waste time and go for reinstallation right away.


one thing though, I ran the second script it gives all command not found errors, I guess its missing the work "chmod" in it.
Well, thats what I wrote as in "exercise for the reader"... Thinking about it a bit more we also need to re-establish symbolic links so this should do it:
Code:
cd /usr/bin; rpm -qa --dump|grep /usr/bin|awk '{print $1, $5, $6, $7, $NF}'|while read bin p o g l; do
 if [ "$l" != "X" ] ; then ln -sf $l $bin; else chown $o.$g $bin; chmod ${p:3} $bin; fi; done
Now when you "rpm -Va --noscripts" all should be more or less relatively well, though YMMV(VM).
 
  


Reply



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
what is difference between /usr/bin/7za /usr/bin/7z fakie_flip Linux - Software 9 08-14-2006 09:22 PM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 09:18 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
problem with NS_NewNativeLocalFile on enterprise Linux3.0 montylee Linux - Software 0 03-16-2005 08:05 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:27 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