[CentOS] RPM: any better way to reinstall only certain files?

Tue Jul 11 20:15:50 UTC 2006
William L. Maltby <BillsCentOS at triad.rr.com>

On Tue, 2006-07-11 at 15:29 -0400, Jim Perrin wrote:
> On 7/11/06, William L. Maltby <BillsCentOS at triad.rr.com> wrote:
> > On Tue, 2006-07-11 at 13:54 -0400, William L. Maltby wrote:
> > > On Tue, 2006-07-11 at 13:41 -0400, Jim Perrin wrote:
> > > > On 7/11/06, William L. Maltby <BillsCentOS at triad.rr.com> wrote:
> > > > > My former primary boot disk had some bad spots appear awhile back.
> > > > > Damage, per rpm --verify, seems to be predominately in loss of reference
> > > > > files in /usr/share/doc and such as that.
> > > > >
> > > > > <snip>
> > >
> > > > Depending on the corruption you've got, rpm -Fvh might be what you
> > > > want. Freshen may solve some of your dilemma.
> 
> rpm also has a  --replacefiles

Gave it a shot, seems to be NG. Here's my actions and results.

# rpm --install --verbose --replacefiles \
redhat-logos-1.1.26-1.centos4.1.noarch.rpm
Preparing packages for installation...
        package redhat-logos-1.1.26-1.centos4.1 is already installed
# Did an ls and files not in /usr/share/doc/redhat*
# rpm -Fvh --replacefiles redhat-logos-1.1.26-1.centos4.1.noarch.rpm
# ls -l /usr/share/doc/redhat-logos*
ls: /usr/share/doc/redhat-logos*: No such file or directory
# rpm -Uvh --replacefiles redhat-logos-1.1.26-1.centos4.1.noarch.rpm
Preparing...                ###########################################
[100%]
        package redhat-logos-1.1.26-1.centos4.1 is already installed

I'm doing a small script for the rpm2cpio, so keep those ideas coming!
Only a few minutes to test the ideas and it might save me some effort
(just selecting the rpm files and adding to the script iinput ATM).
-- 
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060711/c821ae2b/attachment-0005.sig>