Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.