Re: how to 'rip apart' a rpm.

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

 



On Sat, 2010-05-15 at 09:22 -0600, reg@xxxxxxx wrote: 
> I want to look at the individual files in a src rpm.
> How do I 'rip it apart' ??
> Doing an install doesnt seem to be the answer, It does something, but I
> have no idea where the bits and pieces are going.
> They are NOT in /usr/src/redhat nor in /root/rpmbuild.
> -- 
>                                         Reg.Clemens
>                                         reg@xxxxxxx

Hi Reg:

You can do the following to see the files (it can be srpm or rpm):

$ rpm2cpio file.srpm | cpio -t

and to extract the files:

$ rpm2cpio file.srpm | cpio -ivd

If you install the source rpm file I guess it is extracted into the rpm
build tree, that is:

~/rpmbuild/SPECS/ for the spec file
~/rpmbuild/SOUCES/ for the tarball and patches

but I'm not sure about this.

Hope this helps.

Cheers,
Germán.
-- 
Germán A. Racca
National Institute for Space Research (INPE)
São José dos Campos - SP - Brasil
http://gracca.tk - http://graccablog.tk

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

[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