On Sep 18, 2009, at 2:04 AM, Saravanan Shanmugham (sarvi) wrote:
> Thanks. I was able to get it compiled and installed.
> I am proposing the use of RPM5 for package management internally. One
> point of interest to me in RPM5 is the use of XAR format, and more
> specifically the option of being able to extract specific files from
> within the XAR archive without having to untar/extracting everything.
> Atleast that's what the xar wiki page claims.
You can extract specific files from any archive format, including
cpio/tar/xar, rather easily.
> We need a way to be able to extract specific executables and libraries
> from a specific version of the build, from its archived RPMs, on
> to help decode a crash or traceback.
So you would seem to want debugging symbols. What is more commonly
done is to split the symbols from the executable/library and
put into a separate -debuginfo package.
GDB then loads the detached symbols.
> So far, I haven't been able to figure out the RPM5 option or XAR
> that allows me to do extract a specific file or list of files.
For cpio payloads it starts with
rpm2cpio foo*.rpm | cpio -itv
to display the files in a payload. Then one adds logic (described
in "man cpio") to select which files you want.
> Is there such an option. If not how easy do you think it is to
> such an option, if we can help.
Each archive format has a different selection process. But rpm2cpio
is used to seek to the start of the payload.
73 de Jeff
Received on Fri Sep 18 14:34:42 2009