On Wed, 16 Jul 2014 21:43:30 Felix Miata wrote:
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.
All good info. Thanks, guys. Esp. re MC - that is one tool that I haven't played with nearly enough (haven't really felt the need), although I remember its Norton Commander counterpart from the DOS (and i think even OS/2) days, not to mention the venerable xtree gold... -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ============================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org