Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This is a RedHat Enterprise 5.5 system. I ran a verification check against an RPM, and it looks like two files have changed:

# rpm --verify shadow-utils 
S.5....T  c /etc/default/useradd
S.5....T  c /etc/login.defs

I have access to the RPM which originally installed these files. Can diff these changed files against the version which is stored in the RPM?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can extract the contents of the RPM to the disk (and not into / but some other directory). I use mc for this, where you can enter a rpm-file like a directory and extract the files you need. To extract the whole RPM into the current directory you might do something like

rpm2cpio yourrpm.rpm | cpio -idmv
share|improve this answer

In my experience, it is normal for RPM to complain about assorted files even after a pristine install. Never looked further into it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.