Re: How to extract one file from rpm using yum?

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



On Feb 1, 2013, at 11:56 AM, Ali Corbin <ali.corbin@xxxxxxxxx> wrote:

>>>> The command line way of getting 1 file out of a rpm is to rpm2cpio.
>>>> 
>>>>     rpm2cpio <rpmfilename> > <filename.cpio>
>>>> 
>>>> Now you have a cpio archive which you can use to get files out of.
>>> Or:
>>> 
>>> rpm2cpio <rpmfilename> | cpio -idv
>>> 
> 
> And one more:
> 
> To extract a single file from a package
> 
> rpm2cpio gnupg-1.2.6-6.src.rpm | cpio -ivd gnupg.spec

I know it's petty, but every time I realize I need to use cpio to do this, it really annoys me. This is the only present day use of cpio I'm aware of.

Todd

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux