LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2010, 12:34 PM   #1
ro0tless
LQ Newbie
 
Registered: Feb 2005
Location: Tokyo Japan
Posts: 5

Rep: Reputation: 0
How can I extract files from a .rpm file?


Hi,
I'm a Gentoo user and newbie to rpm. But I began FC14 also. So please tell me how to extract files from a rpm, anyone?

Thanks in advance!
 
Old 08-20-2010, 12:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
rpm2cpio <package>.rpm | cpio -idmv

Or use the " @unSpawn unPack script ".
..
Attached Files
File Type: txt unPack_rpm.sh.txt (530 Bytes, 37 views)
 
Old 08-20-2010, 12:38 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Please, check this thread (especially the script from unSpawn). Basically you need rpm2cpio.

Edit: Beaten by knudfl...

Last edited by colucix; 08-20-2010 at 12:39 PM.
 
Old 08-20-2010, 12:48 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Or, using your GUI, just right-click on the .rpm and choose to open with the archive manager.
 
Old 08-20-2010, 12:53 PM   #5
ro0tless
LQ Newbie
 
Registered: Feb 2005
Location: Tokyo Japan
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you!
I'll try!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract spec file from rpm file nayankk Programming 18 11-12-2015 02:11 PM
how to extract binary or what ever files from rpm package amit_pansuria Programming 5 08-01-2008 06:26 PM
RPM: How do you extract just one file from the package? Thetargos Fedora 4 07-17-2004 03:03 AM
howto extract only single file from rpm demmylls Linux - Software 1 03-14-2004 04:51 AM
How to extract files from an rpm package mayankjohri Linux - Networking 3 06-12-2002 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration