LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-04-2015, 07:10 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Can slackware pkgtools work in other distributions?


Is it possible to manually install Slackware's pkgtools package on other distributions? The binary is available at pkgs.org (http://pkgs.org/search/?query=pkgtools&type=smart). Once installed, can it be used (through installpkg command) to install some Slackware packages (that are not available in native distribution)? Will pkgtools keep a separate record/log so that removepkg can be used to remove packages installed by it later, if required? Thanks for your comments.
 
Old 12-04-2015, 09:41 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
AFAIK pkgtool and the entire package management system for Slackware is designed for 'Slackware' only.

I've never seen anyone use a .tgz pkg on a Red Hat system which uses 'Yum' like Slack uses slackpkg or Debian which uses APT.

In order to install pkgtool on other distributions the pkg's extension would have to be converted to the proper packaging (.rpm <or> .deb) for that particular distro. Pkgtool wouldn't work w/o slackpkg or slapt-get and installing those may break the package management system that already exist's in the other distribution.

Having said that, I think Slackware is the only distribution that can convert a .rpm into a .tgz using rpm2targz.
If there are other distributions that can convert pkgs to suit another system I'm not aware of them. Should this be possible I would hope that other members would chime in and say so.
 
Old 12-04-2015, 10:07 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I agree with Ztcoracat. Among other things, Slackware's package management tools do not resolve dependencies; Slackware leaves that up to the user.

If you want to install software that's included in Slackware in other distributions, your best course of action is likely to check whether those packages are in those distros' repos. If they are not, installing from sources (which will require you to resolve the dependencies yourself, the old fashioned way) is likely your best bet. Note that, in many distros, if you wish to install from sources, you must first install compilers such as gcc, as they often are not included in the base install.
 
Old 12-04-2015, 10:49 PM   #4
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
I am not sure if I made my question clear. Suppose I have a minimal install of gentoo distribution, can I install pkgtools there manually and install some Slackware packages in that installation? Will pkgtools be able to remove those packages later on, if needed? I do not want dependency resolution in this case (while installing or while removing).
 
Old 12-05-2015, 04:06 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I would be surprised if you find packages from Slackware that are not in the Gentoo repositories.
Anyways, yes, in general it is possible to use multiple package managers in one distribution. Is it advisable? Well, I wouldn't recommend it, at least for these reasons:
- the package managers will not know of each other. Files extracted from one package installed with, for example, pkgtools can easily be overwritten by a package installed using Portage, or vice versa.
- there is no guarantee that installing a Slackware package in Gentoo will leave you with a working software. It might be that there are differences in versions of dependencies will render the software unusable

Due to these reasons you need a very good understanding how each of the package managers work, so that you can fix whatever breakage will inevitably occur. Since you have to ask this question I assume that this isn't the case for you, yet.
 
Old 12-05-2015, 06:11 AM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Can pkgtools be configured so that it reports an error/warning if it has to overwrite a file?
 
Old 12-05-2015, 06:34 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Why do you ask?

If I may ask: what would be the point?

If you want to run Slack applications, I would install Slackware. When I want RHEL compliance I run CentOS or Scientific, when I want to test with lots of cruft I install an Ubuntu family OS, if I want Debian then Debian, VSIDO, or Sparky serve me well. If I need versions or products in one that are not available, I load one that has that package or install from source.

Why would you want to install one, and pull packages for another?
While it might work, it sounds like a recipe for disaster.
 
Old 12-05-2015, 06:49 AM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Quote:
I would be surprised if you find packages from Slackware that are not in the Gentoo repositories.
@TobiSGD : Some special packages may not be available for one distribution. For example, an application called aeskulap is available for Slackware (http://pkgs.org/slackware-14.1/slack...slack.txz.html) but not for Gentoo (https://packages.gentoo.org/packages/search?q=aeskulap).
 
Old 12-05-2015, 07:36 AM   #9
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Quote:
@wpeckham: If I may ask: what would be the point?
It is just a thought: Standard way mentioned for installing applications which are not there in repository is to compile from source (./configure, make, sudo make install). However, it is generally mentioned that 'make uninstall' may or may not work if the application is to be removed later on. I was thinking of using src2pkg (http://www.src2pkg.net/) to make txz packages from source and then installing them using installpkg command of pkgtools. I have had found src2pkg to be very good for making packages. This way I can use removepkg command to remove application if needed. This combination of src2pkg and pkgtools could be used in any distribution as an additional package management system and will ease the process of installing from source.

Last edited by rng; 12-05-2015 at 07:38 AM.
 
Old 12-05-2015, 08:22 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
http://gpo.zugaina.org/media-gfx/aeskulap
 
Old 12-05-2015, 08:25 AM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
OK

Still not seeing the value here, but it sounds like you have a plan in mind.

The answer then will be determined by where you go with this project, and how successful you are.

Personally, I would prefer not to subvert or corrupt the database or behavior of the native package manager. When I install from source I compile in a unique tree, and install to a non-native target location. (This is what /usr/local and /opt were designed for.)

Best of luck!
 
Old 12-05-2015, 08:26 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by rng View Post
It is just a thought: Standard way mentioned for installing applications which are not there in repository is to compile from source (./configure, make, sudo make install). However, it is generally mentioned that 'make uninstall' may or may not work if the application is to be removed later on. I was thinking of using src2pkg (http://www.src2pkg.net/) to make txz packages from source and then installing them using installpkg command of pkgtools. I have had found src2pkg to be very good for making packages. This way I can use removepkg command to remove application if needed. This combination of src2pkg and pkgtools could be used in any distribution as an additional package management system and will ease the process of installing from source.
Why not just learn how to write an ebuild and use that instead of dealing with different package managers?
 
Old 12-05-2015, 08:28 AM   #13
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
@emerson: Thanks for the link. My Gentoo package searching skills are clearly inadequate.
 
Old 12-05-2015, 08:33 AM   #14
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by TobiSGD View Post
Why not just learn how to write an ebuild and use that instead of dealing with different package managers?
ebuild will be only for Gentoo. Installing with pkgtools could be for any distribution.
 
Old 12-05-2015, 08:36 AM   #15
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by wpeckham View Post
Still not seeing the value here, but it sounds like you have a plan in mind.
There are no plans. I am just trying to make my Linux system easier to work on.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[How-to] Installing and using Slackware's pkgtools in LFS. ReaperX7 Linux From Scratch 12 04-27-2017 02:04 PM
[SOLVED] WebKitGTK+: How does it work on a lightweight distributions? DeeGee Linux - Software 1 07-10-2013 02:40 PM
[SOLVED] how do pkgtools work; install / remove files/folders dh2k Slackware 3 03-18-2011 01:49 PM
uupt -- slackware pkgtools on other platforms arcanex Slackware 8 03-31-2007 01:28 AM
Does the audigy 2 zs work with major distributions pmprichard Linux - Hardware 2 05-09-2005 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration