LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-27-2017, 07:55 AM   #1
hajthem
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
Differnce between typicall package managers and portage/ports?


What's the Differnce between typicall package managers and portage(Gentoo)/ports(FreeBsd)?
 
Old 10-27-2017, 08:12 AM   #2
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
If you mean by typical package management systems like APT or RPM, then the difference is that Portage and Ports are usually source based systems, while APT and RPM usually are used with binary packages provided by the distro maintainer.
Usually, because you can use Portage to install Portage-compatible packages created by a third party, while APT and RPM also include tools to create your own packages from scratch.
 
Old 10-27-2017, 08:15 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Typically they're all different - they just do the same job.
Differently.
 
Old 10-27-2017, 08:27 AM   #4
anisoptera
LQ Newbie
 
Registered: Oct 2017
Posts: 28

Rep: Reputation: 13
The ports system as seen in various guises in FreeBSD, OpenBSD and DragonFly BSD is summarised here: https://www.freebsd.org/doc/handbook/ports-using.html

NetBSD uses pkgsrc which was conceived as a portable build framework/infrastructure for *nix like OS, not just NetBSD. But, apart from NetBSD of course, only MINIX (since v3) uses pkgsrc as it's standard package management system (but that's arguably because MINIX 3 uses the NetBSD userland as well).

The 'BSDs have binary package management tools also, the most sophisticated being FreeBSD's pkg (also used in some FreeBSD based OS and DragonFly), which aims to mimic apt/yum like functionality.

OpenBSD still uses the older pkg_add, pkg_delete, pkg_info, etc binary package management tools which were also used in FreeBSD prior to pkg.

In general terms whatever you compile and install from ports, should result in a binary package which gets installed and can be upgraded/removed using the pkg / pkg_add / pkg_delete tools (or pkgin for NetBSD).

In many cases there is simply no reason to build from source, if there is a binary package available, unless you specifically want to change compile flags.
 
1 members found this post helpful.
Old 10-27-2017, 09:38 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
The BSD system sounds very much like Crux. I update my Crux using the prt-get wrapper, which is sort-of like apt-get, but underneath are ancient tools called pkgmk, pkgadd and pkgrm. These are shell scripts, whereas I believe Gentoo's portage is written in python.
 
Old 10-30-2017, 05:12 AM   #6
anisoptera
LQ Newbie
 
Registered: Oct 2017
Posts: 28

Rep: Reputation: 13
Yes, I believe CRUX Linux uses a BSD style init and has a ports tree of some sort?
 
Old 10-30-2017, 06:32 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
Quote:
Originally Posted by anisoptera View Post
Yes, I believe CRUX Linux uses a BSD style init and has a ports tree of some sort?
Yes, the init is BSD (lovely simple scripts!) and there is a ports tree, but it's much simpler than the Gentoo one. Packages are classified only by repository, not by software function. There are three built-in repositories -- core, opt and xorg -- and two additional ones that can be activated if desired -- contrib and lib32. Contrib contains big, complex packages like libreoffice that are not consistent with Crux's KISS principles.
 
Old 10-30-2017, 06:35 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Ports & Co. implies that the software will be compiled on your machine. Packages are an archive of the result of compilation. Most distros are deployed using a collection of packages all compiled in a consistent way, which are then 'installed' on the target machine.

Usually, a package consists of not only items such as directory, files, etc. but also includes some mechanism for carrying out actions which relate to making the content or service of the package usable. This mechanism co-operates with the package installer. A package installer is not necessarily a package manager.

Other distros, like gentoo, depend on the whole system being compiled on the target machine, using some sort of bootstrapping method.

ports were originally a way to provide additional software to UNIX or clones -outside of what was a core or full installation of the main OS. UNIX systems provide both a kernel and a certain number of userspace tools, which together constitute a usable OS. Some argue that a kernel by itself is a complete OS, but the fact is that a kernel by itself can do no work -it expects to hand over execution to a program called 'init', do its' bidding and then receive a signal from init that it has finished its' job, so that the kernel can exit/stop in an orderly way.

Linux distros, on the other hand, do not have single control of both kernel and userspace, so any distro consists of a kernel plus some number of runtime applications, libraries, etc. Every distro has a different set of available software -both as a minimum needed to have a runnable system, and as a maximum which is available.
 
Old 10-30-2017, 08:57 AM   #9
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I believe CRUX was a binary distro (uses binary, pre-compiled packages) - used it for a year or 2 a few years back - not 100% sure though. FreeBSD ports builds packages from source code, just like Gentoo. FreeBSD packages are binary, pre-compiled packages ready for install.

Ah yes, BSD init, so simple and reliable.
 
Old 10-30-2017, 09:39 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
Quote:
Originally Posted by sevendogsbsd View Post
I believe CRUX was a binary distro (uses binary, pre-compiled packages) - used it for a year or 2 a few years back - not 100% sure though.
No, Crux has always been source-based. Originally it just used simple scripts to build and install packages, but now it has an apt-like binary program called prt-get that wraps around the scripts. However you install it like a binary distro; only the kernel, the ports and the updates are built locally.

It was originally recommended to me by Oz, one of the moderators of Linux Forums, on account of its simplicity of structure and speed at boot. I fell in love with it and used it until they stopped supporting 32-bit. Then, when I got my present 64-bit machine, I went back to it.
 
Old 10-30-2017, 10:26 AM   #11
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
OK, thanks for the clarification. I couldn't remember. I liked the distro for its simplicity but have since moved away from source based because altough my machine is powerful and compile times are short, I am less patient than I used to be
 
Old 10-30-2017, 10:37 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
One of the reasons I like source-based distros is that I find the compilation hypnotic.
 
Old 10-30-2017, 10:45 AM   #13
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Quote:
Originally Posted by hazel View Post
One of the reasons I like source-based distros is that I find the compilation hypnotic.
How funny to hear someone else say this! I too find it mesmorizing but my issue is when there are problems, I hate having to figure them out. Normally, my go to distro is Gentoo so if there is an issue, it's something an ebuild maintainer did accidentally and will be worked out in a few hours. Other than that, Gentoo has proved quite reliable. I go through phases where I literally spend days trying out distros to find the "perfect" one, even though I know there is no such thing. In frustration I end up installing a no-brainer distro that uses systemd which is not at all what I want, but they tend to just work so...

In a few days my "OCD" will force me into that "dog circling bed, can't find a spot to lay down" cycle. Sigh.
 
Old 10-30-2017, 03:01 PM   #14
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
There's only one way to find/have the perfect distro for you. Design, bootstrap and build the thing yourself, but without using any 'weenie' solutions like gentoo -a bunch of pre-made build scripts, or even LFS, where the scripts are disguised as code snippets in a web page. No, you must define exactly what you want from your OS and implement that on your own.
 
Old 10-30-2017, 03:33 PM   #15
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Yeah, that's not going to happen. I'll find something.
 
  


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
Crux 3.2 lacks desktop managers in it's repos or ports. Am I correct? linuxteen Linux - Newbie 9 06-19-2016 10:58 AM
Question for portage blackbelts- can emerge rebuild a package and all deps? Phorize Gentoo 3 01-11-2011 10:14 AM
Portage vs. Other Package Managers jeelliso Linux - Software 7 08-07-2006 08:02 PM
Portage: Updating individual package and dependencies in Gentoo vharishankar Linux - Distributions 2 03-29-2005 04:26 AM
package system portage Boorish Id Linux From Scratch 1 03-04-2005 07:32 PM

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

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