PDA

View Full Version : Extracting specific files from an rpm



BiOPSY
3rd November 2004, 03:05 AM
Im trying to get the printer drivers from a mandrake rpm file, Im running Fedora but I think the rpm has the files I need, how do I extract and veiw the contents of an rpm before I install or extract certain files from it?

RedFedora
3rd November 2004, 04:00 AM
You can use the rpm command with the -qp options. For example:

rpm -qp printer_driver.rpm

This will display the files contained in the rpm package.

crackers
3rd November 2004, 04:20 AM
Even if you manage to extract them, there's a very, very, very high likelyhood that they won't work because of library dependencies, etc.

imdeemvp
3rd November 2004, 06:02 AM
You be surprise the some mandrake rpm's do work under rh8-9....as I recalled some did work for me but now in FC2 it may also be a different story.

jiawj
3rd November 2004, 06:30 AM
if you wanna extract rpm-package-file, you can try:
rpm2cpio rpmfile > rpmcpiofile
cpio -id < rpmcpiofile
then the rpm-package-file would be extracted on current directory. :D

Jman
4th November 2004, 01:06 AM
The Midnight Commander terminal file manager used to be able to extract certain files from RPMS, but now it just seems to view the file list or install it.

It's a good file manger though.
yum install mc if you want to try it.