RPM Community Forums

Mailing List Message of <rpm-users>

Re: How not to use rpm owner/group info on unpack?

From: Marc MERLIN <marc_rpm@merlins.org>
Date: Tue 09 Nov 2010 - 03:01:05 CET
Message-ID: <20101109020105.GF4191@merlins.org>
On Mon, Nov 08, 2010 at 08:51:49PM -0500, Jason Corley wrote:
> is use -m with cpio not an option?

`-m'
`--preserve-modification-time'
     Retain previous file modification times when creating files.

?

Marc

> On Mon, Nov 8, 2010 at 8:49 PM, Marc MERLIN <marc_rpm@merlins.org> wrote:
> > I was debugging an rpm problem and pulled my hair on this:
> >
> > As root, both:
> > rpm2cpio file.rpm | cpio -idv
> > and
> > alien --to-tgz file.rpm ; tar xvzf file.rpm
> >
> > unpack the package but lose the owner/group info for files.
> >
> > Yet, installing the rpm on a system does use the right user/group info.
> >
> > Argh, lost half a day on this :(
> >
> > What is the proper way to unpack an rpm without losing the user/group info
> > (i.e. without installing it and without relying on an rpmdb, just unpacking
> > its files with proper perms).
> >
> > Thanks,
> > Marc
> > --
> > "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> > Microsoft is to operating systems & security ....
> >                                      .... what McDonalds is to gourmet cooking
> > Home page: http://marc.merlins.org/
> > ______________________________________________________________________
> > RPM Package Manager                                    http://rpm5.org
> > User Communication List                             rpm-users@rpm5.org
> >
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org

-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  
Received on Tue Nov 9 03:01:31 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.