On Sat, Jul 19, 2003 at 12:05:55AM +0300, Shaul Karl wrote: > On Fri, Jul 18, 2003 at 09:59:15PM +0300, Amichai Rotman wrote: > > Hi Clan, > > > > I am sorry if this is kindof an RTFM question, but I need a quick fix: > > > > I had a Kernel Panic due to bad hardware and had to hit the reset button... > > After FS check, I ran 'rpm -Va' to check what had changed. I noticed a lot of > > 'missing' files. > > > > The system seems to run OK, but a bit slow. Is there something I can put on > > the command line to make rpm to re-install those missing files only? i.e.: > > pipe the output of rpm -Va, grepping for the missing files and telling rpm to > > install them? What would be the exact command syntax? > >
Anything better than 'rpm -Fv --force /path/to/package.rpm' ? (-F rather than -U: to reduce the damage of possible typos) > > > One can unpack the package into a temporary place and cp the files of > interest from there. In case there isn't an explicit rpm command for > that (man rpm or rpm --help), an rpm is basically a compressed tar ball, > isn't it? > I am not sure that in general this is the right solution for this > situation. What you meant is this: cd / rpm2cpio /path/to/package.rpm |cpio -idu (or 'cpio -iudv' for 'verbose': with files list) Problem: This will run over config files rpm is not supposed to change. Any better idea ? -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
