Re: Extract, but not install rpm

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

 



On 1/23/06, J. K. Cliburn <jcliburn@xxxxxxxxx> wrote:
> Is there a way to extract the contents of an rpm file (to, say, a temp
> directory) without actually installing it?  I'd like to look at the
> source code of a particular module driver that's bound up in the rpm,
> but I don't want to install the kernel source -- probably wouldn't
> work anyway since I'm working from a cygwin host right now.

For the benefit of those who might hit upon this thread while
searching, the answer to my question was thus.

# rpm2cpio kernel-2.6.15-1.1824_FC4.src.rpm > kernel.cpio
# cpio -iv < kernel.cpio
# bunzip2 linux-2.6.15.tar.bz2
# tar -xvf linux-2.6.15.tar

This was exactly what I wanted.  Thanks again Rex.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux