is it possible to download a spec file only using yum?

poma pomidorabelisima at gmail.com
Fri Feb 22 01:00:42 UTC 2013


On 02/22/13 01:21, Orcan Ogetbil wrote:
> On Thu, Feb 21, 2013 at 6:36 PM, poma  wrote:
>>
>> Shouldn't the default be an '-a'(anonymous) check out via git?
>>
> 
> I think it should too. Maybe there are good reasons behind not making so.
> Meanwhile you can do
> $ yumdownloader --source pkgname
> $ deco pkgname*.src.rpm
> 
> This should get you the package source contents.
> 
> Orcan
> 

deco grub2-2.00-16.fc19.src.rpm
13020 blocks
*** glibc detected *** deco: free(): invalid pointer: 0x00000031a9610a28 ***
======= Backtrace: =========
/lib64/libc.so.6[0x31a967ca8e]
deco[0x4017f1]
deco[0x400ed5]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x31a9621a05]
deco[0x400f8d]
======= Memory map: ========
00400000-00404000 r-xp 00000000 09:1e 1454894
 /usr/bin/deco
00603000-00604000 r--p 00003000 09:1e 1454894
 /usr/bin/deco
00604000-00605000 rw-p 00004000 09:1e 1454894
 /usr/bin/deco
006c0000-00702000 rw-p 00000000 00:00 0
 [heap]
31a9200000-31a9220000 r-xp 00000000 09:1e 1446220
 /usr/lib64/ld-2.16.so
31a9420000-31a9421000 r--p 00020000 09:1e 1446220
 /usr/lib64/ld-2.16.so
31a9421000-31a9422000 rw-p 00021000 09:1e 1446220
 /usr/lib64/ld-2.16.so
31a9422000-31a9423000 rw-p 00000000 00:00 0
31a9600000-31a97ad000 r-xp 00000000 09:1e 1446243
 /usr/lib64/libc-2.16.so
31a97ad000-31a99ad000 ---p 001ad000 09:1e 1446243
 /usr/lib64/libc-2.16.so
31a99ad000-31a99b1000 r--p 001ad000 09:1e 1446243
 /usr/lib64/libc-2.16.so
31a99b1000-31a99b3000 rw-p 001b1000 09:1e 1446243
 /usr/lib64/libc-2.16.so
31a99b3000-31a99b8000 rw-p 00000000 00:00 0
31aaa00000-31aaa15000 r-xp 00000000 09:1e 1446693
 /usr/lib64/libgcc_s-4.7.2-20121109.so.1
31aaa15000-31aac14000 ---p 00015000 09:1e 1446693
 /usr/lib64/libgcc_s-4.7.2-20121109.so.1
31aac14000-31aac15000 r--p 00014000 09:1e 1446693
 /usr/lib64/libgcc_s-4.7.2-20121109.so.1
31aac15000-31aac16000 rw-p 00015000 09:1e 1446693
 /usr/lib64/libgcc_s-4.7.2-20121109.so.1
7fe5999bd000-7fe5999c0000 rw-p 00000000 00:00 0
7fe599a1b000-7fe599a1d000 rw-p 00000000 00:00 0
7fffa266e000-7fffa268f000 rw-p 00000000 00:00 0
 [stack]
7fffa269a000-7fffa269c000 r-xp 00000000 00:00 0
 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
 [vsyscall]
Aborted
--

Although the extraction is successful, checksums are OK. :)
Thanks for pointing out an additional tool(deco) for such a task.
Total so far: rpm2cpio/cpio, rpmdev-extract, deco and direct download
method via the fedpkg.
Nice. :)


Cheers,
poma




More information about the users mailing list