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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 21 Feb 2013 01:01:58 -0600, Ranjan Maitra wrote:

> > yumdownloader --source foobar
> > and extract it:
> > rpm2cpio foobar*.src.rpm | cpio -idmuv *.spec
> > 
> 
> Thanks very much for the detailed descriptions! I was wondering also:
> is it possible to pull the .tar.gz (and/or the patches) in a package
> SRPM using the above commands (such as rpm2cpio)?

Obviously, you would need to tell cpio (see "man cpio") which files
to copy from the archive. If you don't like using cpio, you could
simply use rpmdev-extract instead:

$ rpm -qf $(which rpmdev-extract)
rpmdevtools-8.3-3.fc19.noarch

-- 
Fedora release 19 (Rawhide) - Linux 3.8.0-1.fc19.x86_64
loadavg: 1.81 1.72 1.46
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux