LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-03-2010, 12:15 PM   #1
Wombat Pete
Member
 
Registered: Apr 2010
Distribution: Starting with Debian. When I've learn it passably well, moving to Gentoo. Opinions are appreciated!
Posts: 69

Rep: Reputation: 16
Newbie Distro Question 1: Reasons for inter-distro pkg incompatibility.


I'm planning to dive into linux and need to choose a distro. Before I do, I'm trying to figure out a few basic things.
For example, people often seem to tout distributions based upon the pkg manager with which they come.
But that's just a program, and they should be able to run on various distributions.
It seems that apt and synaptic, for example, do run on suse. YAST, however, may not run on ubuntu.
From my newbie, ignorant point of view, there would seem to be three possible reasons for this:
1. The pkg mgr in one distribution expects to find things in a given place in the file structure, but they're in different places in the different file structures of various distributions. Is this wrong?
2. Distributions come with libraries that differ in key ways. But couldn't one just add additional libraries from the other distribution and then be able to run its programs?
3. Deeper differences that make the basic distributions (slackware, debian, etc.) more fundamentally different than I am taking into account here.
Thanks in advance for explanations!
 
Old 04-03-2010, 12:40 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
All of the above

And let's rephrase 1) -

A "package manager" is essentially a database (of programs and program dependencies) and the tools to manage this database (apt-get, yum, rpm, dpkg, synaptic, etc etc). So yes, a dpkg download will be incompatible with an rpm download (for example).

And guess what: the situtation is *exactly* the same for *any* package manager. Including Windows. Win9x did things differently from Win/XP, .msi does things differently from SSMS; sometimes you write to an .ini file under \windows; sometimes you write to the registry, in .Net you write to an XML assembly configure.

Trying to "make things easy" inevitably complicates things

You can always avoid package managers altogether by simply building from source
 
1 members found this post helpful.
Old 04-03-2010, 12:42 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Short answer: All three together.

On 2. That is what we do - but it is only useful in limited circumstances ... eg. to run a 32 bit app in a 64 bit distro involves installing the 32bit libs et al in a non-standard location then telling the app where to find them; also sometimes we want two different versions of gcc ... in which case we change the name of the executable and its libs so the other gcc doesn't get confused.

Its not something that gets automated.

Bottom line: you can do anything you have the expertise and time for. It is technically possible to work out how to use each distros repos in each other - its just that there is no point. If one distro has a package not available in yours, you install from the source code.

You see ... gnu/linux is (almost all) free software - one of the things this means is that you have access to the source code and the ability to change it to suit you. This changes everything.
 
1 members found this post helpful.
Old 04-03-2010, 12:42 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
That's just like asking why there can't be just one distro.

You just choose the system you like!
 
Old 04-03-2010, 12:47 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by paulsm4 View Post
So yes, a dpkg download will be incompatible with an rpm download
Even more - one cannot expect a Debian deb to install to Ubuntu or a SUSE rpm to work in fedora.

This is because each binary package is compiled against other packages in the same distro - and the distro maintainers will have different build policies; use different releases, different patches, different compile options etc. Thus each distro is fundamentally different.

In fact, without a package manager, we used to have this thing we called "dependency hell". <gibber>
 
Old 04-03-2010, 01:07 PM   #6
Wombat Pete
Member
 
Registered: Apr 2010
Distribution: Starting with Debian. When I've learn it passably well, moving to Gentoo. Opinions are appreciated!
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Simon Bridge View Post
Even more - one cannot expect a Debian deb to install to Ubuntu or a SUSE rpm to work in fedora.

This is because each binary package is compiled against other packages in the same distro - and the distro maintainers will have different build policies; use different releases, different patches, different compile options etc. Thus each distro is fundamentally different.

In fact, without a package manager, we used to have this thing we called "dependency hell". <gibber>
But isn't backwards compatibility a Linux principle? In which case later releases would solve such problems?

Which raises another question - I often see it written that a given distribution comes with later releases of certain programs.
Does the threat of 'dependency hell' mean that you couldn't just go to the developers' sites & download the latest versions?
 
Old 04-03-2010, 01:10 PM   #7
Wombat Pete
Member
 
Registered: Apr 2010
Distribution: Starting with Debian. When I've learn it passably well, moving to Gentoo. Opinions are appreciated!
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MTK358 View Post
That's just like asking why there can't be just one distro.

You just choose the system you like!
Almost.
But I'm not asking why there can't be just one distro.
I'm trying to get a handle upon the nature, parameters, and seriousness ('depth') of the differences.

And among other things - of what makes programs included in them incompatible or only partially compatible with other distributions.
 
Old 04-03-2010, 01:17 PM   #8
Wombat Pete
Member
 
Registered: Apr 2010
Distribution: Starting with Debian. When I've learn it passably well, moving to Gentoo. Opinions are appreciated!
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by paulsm4 View Post
So yes, a dpkg download will be incompatible with an rpm download (for example).
In addition to the building-from-source option, could one have several pkg mgrs to handle dpkgs, rpms, etc.? Or would that create problems (inconsistent databases of what's where in your system)?
 
Old 04-03-2010, 01:28 PM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Because you have source code available, yes it is entirely feasible to patch software for forward and backward compatibility. While the linux kernel does generally go backwards, things inevitably get deprecated eventually. Further you can not confuse the linux kernel with all of the other utilities (GNU in large part) as well as the other software that makes up a "linux" distribution. Frequently a certain way of doing things just hits the wall and things get rewritten entirely. A good example of this is KDE which is one of the most popular Desktop Environments in the world of gnu/linux.
http://www.linuxjournal.com/content/...rt-did-it-work

That link ought to give a simplified example of what I'm talking about. In relation to package managers, why would you need the trouble of making one distro's package manager work on another? You would simply use the one supported by the distro and as mentioned above in the cases where no package is available for your distro then you just install from source. You can go a long way towards avoiding this scenario by choosing a distro that uses .deb and RPM packages. My distro of choice (Slackware) doesn't really have "official" repositories outside of what's available from the installation disk, rather there are a few privately maintained package repositories as well as some popular build script repositories that take the source, compile and package it into the supported package type. Most people consider that primitive whereas many Slackers consider that a powerful feature.

Last edited by damgar; 04-03-2010 at 01:48 PM.
 
1 members found this post helpful.
Old 04-03-2010, 01:33 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
And for Slackware we have src2pkg, which can convert .deb and RPM packages to Slackware packages.
http://distro.ibiblio.org/pub/linux/...html/intro.htm
 
Old 04-03-2010, 01:47 PM   #11
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by brianL View Post
And for Slackware we have src2pkg, which can convert .deb and RPM packages to Slackware packages.
http://distro.ibiblio.org/pub/linux/...html/intro.htm
So much for "no package management."
 
Old 04-03-2010, 01:51 PM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Yeah, people who say that about Slack have either never used it, or not used it since 1995.
 
Old 04-03-2010, 02:09 PM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by Wombat Pete View Post
In addition to the building-from-source option, could one have several pkg mgrs to handle dpkgs, rpms, etc.? Or would that create problems (inconsistent databases of what's where in your system)?
That might work but it's probably a really bad idea, because each package manager has its own separate database, and each package managers will not know about programs installed using another, which is very important for resolving dependencies.

But anyway, you very rarely need to download a .rpm, .deb, etc. to manually install. Most package managers automatically find the package in the distro's repository and downloads and installs it automaticaly.
 
Old 04-03-2010, 02:18 PM   #14
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I have the impression that we are talking about a problem that does not exist....

Given that the top distros all have reasonably complete selections of SW, AND the fact that you can always install SW outside of your distro's package management system, there is no reason for compatibility between distros.

Did you ever install Chevrolet parts in your Ford because what you wanted was not available from Ford or a 3rd-party supplier?
 
Old 04-03-2010, 02:25 PM   #15
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Rep: Reputation: 19
Quote:
Originally Posted by paulsm4 View Post
You can always avoid package managers altogether by simply building from source
Event the best case scenario - it works - will slowly make a mess out of your system. It is one of the functions of a package manager to prevent that. So, when you compile from source you better create your own package (for THE package manager) and install it.

Since sooner or later you will compile from source, it is a good idea to include package creation tools into consideration when choosing a distro.
 
1 members found this post helpful.
  


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 add apps to a distro with no pkg manager? linus72 Linux - General 3 09-05-2009 06:42 AM
Inter-distro binary compatibility entz Programming 9 04-05-2007 07:07 PM
newbie question on distro problems Smokeyone Linux - Software 8 02-01-2006 12:03 AM
Another newbie, another distro question Keep Skankin Linux - Distributions 8 06-11-2003 09:45 PM

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

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