How do I extract the contents of an rpm?

前端 未结 14 1925

I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands

14条回答
  •  感动是毒
    2020-12-12 10:39

    Did you try the rpm2cpio commmand? See the example below:

    $ rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv
    
    /etc/httpd/conf.d/php.conf  
    ./etc/php.d  
    ./etc/php.ini  
    ./usr/bin/php  
    ./usr/bin/php-cgi  
    etc 
    

提交回复
热议问题