LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2019, 07:06 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,666

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
rpm2targz, deb2targz - dependencies


I have spent the last week wading through large packages, which I can only get as .deb or .rpm, and come with a ton of dependencies.

The debs and rpms have dependency information - "This package depends on a,b,c…z" so apt-get or rpm can grab those as well. Is there any way of recovering information about the required dependencies with deb2targz, rpm2targz, rpm2archive, or alien-pkg-convert? I much prefer slackware, but sometimes the dependency work is just crazy.
 
Old 01-13-2019, 07:10 AM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
unpack the deb with "ar x package.deb". then unpack the control.tar.gz and read the control file. For rpm's use "rpm -qRp package.rpm".
 
1 members found this post helpful.
Old 01-13-2019, 07:23 AM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
I should also add that personally I am not a fan of those kinds of automated tools for repacking. Deb archives are just "ar" archives with compressed tars inside and rpms are just compressed cpio files with some meta data tack to the front. You can unpack either with normal tools found on on pretty much any Linux system, there is no magic. After extracting files, adjust the extracted files and repackage yourself with makepkg.

P.S. Running strings on an rpm (piped through less), will also let you read the text parts of the rpm meta data and hence dependency information.
 
1 members found this post helpful.
Old 01-13-2019, 01:20 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,630

Rep: Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382Reputation: 3382
In addition to ruario's second post, be warned that I've seen systems get hosed because the rpm or deb had weird permissions and it changed a lot of the filesystem's permissions. When the person used rpm2tgz or deb2tgz, it kept theses weird permissions and then when installed, it hosed permissions on the filesystem. It is almost always better to unpack them and then repack them into a Slackware package using a SlackBuild script (where you can have it easily reset permissions using the templates provided by SBo). You can look at my discord SlackBuild for an example with a deb package.
 
2 members found this post helpful.
Old 01-13-2019, 02:53 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,666

Original Poster
Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Thanks ruario & bassmidrigal. Very informative.

(btw, what's a guy from Norway doing with an Irish name like Ruarí?)

So, rpms and debs just use obsolete archiving methods. I Take the warning about file & directory permissions. Debs seem a better way to go. I'll try one, and sniff around it. IME, when source is not around, dependencies abound.
 
Old 01-13-2019, 03:04 PM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,438

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
I am British with strong links to both Ireland and Norway.

Last edited by ruario; 01-13-2019 at 03:06 PM. Reason: re-wrote it. Probably too much personal information in the initial version.
 
Old 01-13-2019, 03:07 PM   #7
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 299

Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by business_kid View Post
So, rpms and debs just use obsolete archiving methods.
Not obsolete, no. In fact they're probably used more often then .txz packages.
But they are meant for other linux distributions than Slackware and maintain an installed packages database in another form.
A Slackware .txz can contain only one "after install" script (install/doinst.sh), while for instance a rpm can contain up to 4 of them (pre-install, post-install, pre-remove and post-remove).
But, of course, those scripts are written for their respective distributions and are NOT copied into the .txz after a rpm2txz or deb2txz, just the "archive" itself.
Unpacking and creating a package gives you the chance to adapt the whole bit to Slackware.

Last edited by ehartman; 01-13-2019 at 03:09 PM.
 
3 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] How to use " scripts, rpm2targz and deb2targz " rabidlinux Linux From Scratch 3 11-20-2017 08:11 PM
[SOLVED] Package Naming and src2pkg, rpm2targz and building packages. bamunds Slackware 21 06-21-2017 01:22 PM
rpm2targz & Scripts business_kid Slackware 3 10-25-2015 07:20 AM
Installing rpm2targz.tar.bz2 on Fedora Core 2 aala_yo Linux - Software 1 05-11-2005 02:58 PM
rpm2targz rlocone Linux - Newbie 2 02-24-2005 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration