When comparing Pacman vs Portage, the Slant community recommends Pacman for most people. In the question“What are the best Linux package managers?” Pacman is ranked 1st while Portage is ranked 2nd. The most important reason people chose Pacman is:
Pacman is objectively one of the fastest package managers around. This is because it's very minimalistic and it installs only prebuilt packages.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Fast
Pacman is objectively one of the fastest package managers around. This is because it's very minimalistic and it installs only prebuilt packages.
Pro Packaging signing keyring and mirror list
Both are also provided through packages which keeps them up to date.
Pro Advanced when you want it
Pacman does not overwrite modified configuration files. Instead, it saves a .pacnew file for it which you can later merge at your leisure.
Pro Manages dependencies reliably
Pro Simple syntax
Pacman has a relatively simple syntax which is easy to get used to. For example: pacman -Syu
to update, pacman -S foo
to install etc...
Commands are not long and there are not many different commands to learn by heart.
Pro Pacman hooks add power and flexibility
Hooks are scripts that can run automatically before and after Pacman transactions like installation and removal of packages. For example, Pacman hooks can be used to automatically create system users and files during the installation of packages. Pacman hooks can also be used to delete configuration files and clear caches during the removal of packages.
Pro Many wrappers available which extend functionality
Here are three examples: Powerpill, Yay, and Octopi. Powerpill extends Pacman by enabling asynchronous downloads of packages from multiple mirrors using Aria2 and Reflector. Yay extends Pacman, by enabling automatic download, compilation, and installation of packages from the AUR. Octopi extends Pacman with a GUI frontend written in Qt.
Pro Easy to create custom repositories
Pacman makes it fairly easy and straightforward to create your own repository with signatures.
Pro Simple and easy to use with custom repositories
The instructions and configurations for using a custom local or remote repositories are pretty simple and straightforward.
Pro Zstd compression
Uses Zstd compression for fast downloads & updates.
Pro Synchronizes package lists with the master server
It allows the system to always be up to date.
Pro Supports colored output
And looks cleaner and nicer with such thing enabled. Simply find and uncomment "Color" option in /etc/pacman.conf or add it yourself if it doesn't exists.
Pro Can be made to use any downloader
Allows to change its downloader from internal to any other like wget or aira2.
Pro Kernel build ordered
Pro Supports deltas
However default Arch Linux mirror servers does not provide deltas, so it is not so useful like with DNF.
Pro Decide which dependencies to install
WIth portage you can decide and customize which dependencies to install through some thing called USE flags. These are keywords that when defined, will tell Portage that you want support for the chosen keyword.
Pro Sandboxes build process
Portage uses a sandbox as a safety measure during build processes. This is done to ensure that no packages accidentally write outside a 'safe' location.
Pro Can install multiple versions of the same package simultaneously
Slotting is a feature which allows users to install multiple versions of a software simultaneously. This is especially useful for libraries which have changed interfaces between versions.
Pro Allows both binary and source installation
With portage you can either compile packages from source or you can download and install their binary versions.
Pro Simple overlay management
Adding supplemental repositories, aka overlays, is easy with eselect-repository or layman.
Pro Implements a standard with alternate implementations
If you need faster resolution, you can run pkgcore for search and portage for installing, and they work well together.
Pro Respects customized config files
By default, portage doesn't delete or move any customized config files, thus enabling competent users to modify any config file however they want.
Pro You can view a list of programs that can be installed
With portage you can view a list of all the programs that you can install by going to /usr/portage
and running ls
.
Pro Full control over installed packages
You can fully control all packages if you use it properly.
Cons
Con Bad handling of conflicts
Relying on the entire system being updated to the exact same version, making the famed rolling-release model ironically even worse in practice than the traditional version model.
Con Poor Multiarch support
can not install regular foreign arch packages alongside and needs specific nade subarch packages.
Con Doesn't always clean up after itself
Pacman leaves new configuration versions around and generally doesn't handle file conflicts smoothly.
Con Naive
For example, it doesn't allow you to purge (remove package and its configuration files).
Con No official way to downgrade packages
This is related to it not supporting partial system upgrades. The very same reason prevents it from downgrading a particular package easily. Doing so can easily result in conflicts and may require a system downgrade or downgrade of multiple packages.
Con Unintuitive syntax
Pacman has a difficult syntax and commands to remember.
Con No partial upgrades
Pacman just doesn't support partial upgrades. It has to always be system upgrade and never package upgrade.
Con Not KISS
It is not simple or does follow the UNIX philosophy instead it tries too much at the same time which results in slowness and errors.
Con Bloated
It is over complicated and bloated compared to other *NIX package managers like dpkg, rpm or pkgsrc. For example, they follow the Unix philosophy and do "one" thing well, which is to install local packages and use other frontends to configure, remote install or to search for packages/files. Pacman, however, tries to do all those tasks in one app, which adds some flaws.
Con Painfully slow
It takes ages to update the system compared to dpkg or rpm, which due its poor performance by unpacking very large packages with many files to the filesystem.
Con No parallelization
Neither downloads nor processing can be set to run in parallel.
Con You can not create pacman packages under a non-pacman distribution
For example on fedora/suse/debian/ubuntu, you can easily create rpm and deb packages, but you can not create pacman packages, which makes it uncomfortable to support arch/pacman packages.
Con High memory usage
Usually takes between 400-800MB of RSS (no problem to get over 1GB), so it's nothing for an old hardware.
Con Building from source take a lot of processing time
Most of Portage's pros are related to its "porting" process, building packages from source. This is very resource-intensive, with the few biggest packages sometimes taking even multiple hours to update or install.
Con Very slow
Dependency resolution is very slow and single-threaded, so usually you will see one of your cores running like crazy for over a minute.
Con Feature creep
It is very complicated and offers plenty of options.
Con You can not create packages under a non-portage distribution
Makes maintaining software for gentoo based systems a burden.