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 01-27-2011, 05:59 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
convert rpm to tar.gz


hi

Which is the easiest way to convert rpm file to tar.gz?
 
Old 01-27-2011, 06:29 PM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
When you extract first to a temporary directory:
Code:
$ (mkdir tmp; cd tmp; rpm2cpio ../my.rpm | cpio -i -d)
63 blocks
$ tar -czf my.tgz tmp
 
1 members found this post helpful.
Old 01-28-2011, 04:28 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The tool 'rpm2targz' :

ftp://ftp.slackware.org.uk/slackware...2.1-i486-1.txz

Older version
ftp://ftp.slackware.org.uk/slackware...1.0-i486-1.tgz

..

Last edited by knudfl; 01-28-2011 at 04:32 AM.
 
1 members found this post helpful.
Old 01-30-2011, 05:47 AM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx, but using alien seems to work as well.

Last edited by cccc; 08-25-2011 at 05:42 PM.
 
  


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
[SOLVED] Program to convert tar.gz to RPM szboardstretcher Linux - Software 1 01-27-2011 12:26 PM
[SOLVED] How can I convert an rpm to a tar.gz in CentOS 5.3? daniwins Linux - Software 3 01-11-2010 03:28 PM
how to install tar.gz or convert to rpm vzzt! Linux - Newbie 10 05-26-2004 07:57 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM
convert .tar to rpm ? qwijibow Linux - Newbie 1 07-25-2003 12:47 PM

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

All times are GMT -5. The time now is 06:15 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