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 02/21/13 08:01, Ranjan Maitra wrote:
> On Thu, 21 Feb 2013 06:21:28 +0100 poma <pomidorabelisima@xxxxxxxxx>
> wrote:
> 
>> On 02/21/13 02:47, Ranjan Maitra wrote:
>>> On Wed, 20 Feb 2013 17:30:50 -0800 Rick Stevens <ricks@xxxxxxxxxxxxxx>
>>> wrote:
>>>
>>>> On 02/20/2013 05:16 PM, Ranjan Maitra issued this missive:
>>>>> Hello,
>>>>>
>>>>> I was wondering if it is possible to download a spec file using yum
>>>>> or rpm only (without downloading the rpm)?
>>>>
>>>> Don't think so. The spec files are part of the srpm generally, so
>>>> you'd need to grab that, install the srpm and grab the spec from
>>>> your "~/rpmbuild/SPECS" directory.
>>>
>>> Thanks, Rick! I would think so too but here it says that there is a way
>>> out:
>>>
>>> from
>>> https://www.linuxquestions.org/questions/programming-9/how-to-extract-spec-file-from-rpm-file-426847/
>>>
>>>
>>> rpm --scripts -qp my-great-app-1.1.2.rpm
>>>
>>> My question therefore is: is it possible to achieve this without
>>> downloading the rpm for my-great-app (of course, assuming the same is
>>> in the Fedora repos).
>>>
>>> Sorry I should have been clearer in my first message.
>>>
>>
>> There is no scriptlet(s) repo, neither spec repo.
>> Make difference between scriptlet(s) and spec file, also between binary
>> and source rpm:
>> - "foobar.rpm" == RPM binary(bin) - beside others, possibly contains
>> "…the package specific scriptlet(s) that are used as part of the
>> installation and uninstallation processes"- man rpm 8.
>> One can download binary rpm:
>> yumdownloader foobar
>> and list/concatenate it(them):
>> rpm --scripts -qp foobar.rpm
>> - "foobar.src.rpm" == RPM source(src) - beside others, contains spec
>> file - building specification.
>> One can download source rpm:
>> 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)?
> 

As Mich added, you should specify required file(s) - archived&compressed
source, patch(es)/diff(s) and spec, or just omit it/them and you'll get
all extracted:
rpm2cpio foobar*.src.rpm | cpio -idmuv


Cheers,
poma


-- 
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