On 2014-07-16 21:17 (GMT-0400) Ken Schneider - openSUSE composed:
David C. Rankin wrote:
rpm2cpio rpmname.rpm | cpio -idmv specfile.spec
if you don't know the specfile name, then you can get it by the 'spec' extension with:
for i in $(rpm -qpl rpmname.rpm); do \ test ${i##*.} = "spec" && rpm2cpio rpmname.rpm | cpio -idmv "$i" \ done
Or use mc to extract the spec file.
Near infinitely simpler, particularly when all you want is a few words or lines from a contained text file, which you can locate and copy out with MC's editor for pasting elsewhere in less than the time it takes to simply consider using rpm2cpio/for/test/cpio et al. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org