Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
58
rated 0 times [  58] [ 0]  / answers: 1 / hits: 100029  / 2 Years ago, sat, october 22, 2022, 2:58:47

I've RPM file of which I want to examine its file contents. For .deb packages, I can use dpkg -x file.deb to extract it.



What is the equivalent command for a .rpm file? I'm looking for a command-line application.


More From » extract

 Answers
3

file-roller seems to open rpm files. Alternatively you can use the command:



$ sudo apt-get install rpm2cpio
$ rpm2cpio /path/to/file.rpm | cpio -i --make-directories


that will extract the rpm content to the current directory.


[#44301] Saturday, October 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rvousnove

Total Points: 456
Total Questions: 130
Total Answers: 98

Location: El Salvador
Member since Sun, Sep 12, 2021
3 Years ago
;