Hi Is it possible to take an rpm apart to see what it will do to a system and see what files are inside the package? thanks
uklinux.net - The ISP of choice for the discerning Linux user. On Tue, 8 Aug 2006, Tom Brown wrote:> Hi > > Is it possible to take an rpm apart to see what it will do to a system and > see what files are inside the package?man rpm2cpio Regards Lance> > thanks > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Tom Brown wrote:> Hi > > Is it possible to take an rpm apart to see what it will do to a system > and see what files are inside the package?"man rpm". "rpm -qpl file.rpm" shows a list of files. "rpm -qp --scripts file.rpm" shows which scripts are run after or before installation, deinstallation, or upgrade. "rpm2cpio file.rpm | cpio -i --make-directories" will unpack the rpm to the directory you are momentarily in. And - as already said - "man rpm". Regards, Ralph -- Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible Bayerischer Rundfunk...80300 M?nchen | ....to right-justify any idea, even one Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20060808/82647737/attachment-0002.sig>
On Aug 8, 2006, at 6:16, Tom Brown wrote:> Is it possible to take an rpm apart to see what it will do to a > system and see what files are inside the package?For starters, try these two commands: rpm -qip /path/to/your.rpm rpm -qlp /path/to/your.rpm Alfred
> "rpm2cpio file.rpm | cpio -i --make-directories" will unpack the rpm to > the directory you are momentarily in.thanks for this it was a great help - Is it possible to modify the files within the rpm and then just 'tar' it back up again or some other such like to repackage it? I need to change something within an rpm but i don't have the spec files etc. thanks