LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   rpm to tgz converter (https://www.linuxquestions.org/questions/slackware-14/rpm-to-tgz-converter-346518/)

corbis_demon 07-25-2005 08:28 AM

rpm to tgz converter
 
Hi,
I''d like to know if there is a rpm to tgz converter available somewhere. I searched for it but all I got was rpm2targz. Unfortunately installpkg can't install that. I don't want to install the rpm libraries for such small a task. Please advise.

Hangdog42 07-25-2005 08:34 AM

It is part of the standard Slackware install and it is called, surprisingly, rpm2tgz

egag 07-25-2005 09:23 AM

...but after that, it won't be a Slackware package.

egag

mago 07-25-2005 11:13 AM

Or you can use a really cool tool called Alien Package converter to play with rpm, deb, tgz back and forward.

corbis_demon 07-25-2005 02:20 PM

HI, I looked about the install disks, but couldn''t find the package rpm2tgz in any of them. Where else is it available?

Murdock1979 07-25-2005 02:23 PM

Hello,

Do a package search at slackware.com.

Later,
Mords

egag 07-25-2005 02:24 PM

root@slack21:/home/egag# grep rpm2tgz /var/log/packages/*
/var/log/packages/rpm-4.2.1-i486-3:rpm:

so it's in " rpm-4.2.1-i486-3.tgz "

egag

Hangdog42 07-25-2005 02:36 PM

The rpm2tgz "program" is acutally a link to rpm2targz, which is a script, so if you have the bin package installed, you should be good to go. If you read through the script, you'll find that if you invoke rpm2tgz, the package will be created with a .tgz ending. Otherwise if you use the plain rpm2targz, it gets the .tar.gz ending.

Quote:

...but after that, it won't be a Slackware package.
I agree, but unless I'm very mistaken (always a possibility) you can still manage the Frankenstein tgz file with Slackwares package management tools. In some instances (the OpenOffice 2 beta comes to mind) there may not be much of a choice since it was distributed only as an RPM.

egag 07-25-2005 02:45 PM

i'll have to change my answer....it's from " bin-9.2.0-i486-2.tgz"

the prev. package came up because in the rpm-... package's description
" rpm2tgz " is mentioned.

and i never tried to use rpm.
i think the "slack.desc " and " install.sh " files are missing
and i know pkgtool can refuse to work with that.

egag

jong357 07-26-2005 09:20 AM

In the rare instances when I use rpm2tgz, I'll 'explodepkg' on it and then add an 'install/slack-desc'... Takes a minimal amount of time. I also don't think I've come across an RPM that needed a doinst.sh.... How are symlinks created with RPM's anyway? Are they already in the package? I seem to remember converting a cedega RPM just to see if it was the same as the TGZ version. From what I can remember, My converted TGZ had all the symlinks just like their original TGZ version had....

If that really was the case, once you explodepkg and then makepkg, you'll get a doinst.sh along with the slack-desc you just made....

ibmercurial 07-26-2005 08:35 PM

rpm2tgz is a cool tool... Sometimes I use it when YaST can't seem to get it right. SuSE has one that goes the other way.
Thanks mago I'll try that aliens tool


All times are GMT -5. The time now is 07:41 AM.