Debian libraries, .deb, .rpm
cdl at proxima.ucsd.edu
Wed Nov 27 10:12:38 PST 2002
> From: Joshua Penix <jpenix at binarytribe.com>
> To: kplug-list at kernel-panic.org
> Subject: Re: Debian libraries, .deb, .rpm
> Date: Tue, 26 Nov 2002 13:51:31 -0800
> In-Reply-To: <200211262037.AA28770 at proxima.ucsd.edu.UCSD.EDU>
> On Tuesday 26 November 2002 12:37, Carl Lowenstein wrote:
> > How do I deconstruct the .rpm file to see what's there, other
> > than by "strings"?
> rpm's query command will do the trick for you.
> rpm -q --scripts -p <packagename.arch.rpm>
> Should list them. There are also scripts called "trigger scripts" and
> I'm not sure how they differ from the above. (--triggers and
> --triggerscripts list them). You can also get other goodies
> like changelogs (--changelog), lists of required packages
> (--requires), etc.
Thanks. I missed that one. So also does rpm2cpio miss it, and
apparently alien misses it too.
Thanks also to George and Gus for some other insights on the problem.
rpm2cpio produces a cpio archive that contains the data parts of
the original .rpm but not the scripts. Alien produces a .deb
with similar contents.
Reading the fine print "man alien" shows a switch --scripts
that is intended to convert the scripts in the original .rpm.
Have to try this and see what happens.
Answer -- it makes a .deb archive that is different, but only
54 bytes longer. The text of the embedded script is 254 bytes.
More later, after I travel to the lab to put my hands on the
computer. Presumably there is some option to "dpkg" that will
extract the scripts for examination without running them.
Another learning experience.
More information about the KPLUG-List