Differences

This shows you the differences between two versions of the page.

Link to this comparison view

server-administration:extract-rpm [2011-06-27 21:44:51]
garrett.plasky created
server-administration:extract-rpm [2011-06-30 23:00:56] (current)
garrett.plasky Approved
Line 1: Line 1:
-====== How to Extract the contents of RPM  ======+====== How to Extract the Contents of an RPM File ======
  
 Sometimes it can be useful to extract the contents of a RPM file without actually installing it. In order to do so, use the following command: Sometimes it can be useful to extract the contents of a RPM file without actually installing it. In order to do so, use the following command:
  
-<sxh bash> +<sxh bash>rpm2cpio file.rpm | cpio -idmv</sxh>
-rpm2cpio file.rpm | cpio -idmv +
-</sxh>+
  
 <note important>This will extract the rpm into whatever directory you are in, including all of it's sub-directories. So for example, if you change directory into / and run the command above the rpm will be extracted and files/directories placed just as if you had installed the rpm. Normally first you would want to create and change into a working directory.</note> <note important>This will extract the rpm into whatever directory you are in, including all of it's sub-directories. So for example, if you change directory into / and run the command above the rpm will be extracted and files/directories placed just as if you had installed the rpm. Normally first you would want to create and change into a working directory.</note>