Unix Package Managers
Unix Package Managers
Basic operations
Arch/ SLES/
Action Red Hat/Fedora Debian/Ubuntu Gentoo
Manjaro openSUSE
Install a zypper
package(s) by pacman -S dnf install apt install install or emerge [-a]
name zypper in
Remove a zypper
emerge -
package(s) by pacman -Rs dnf remove apt remove remove or
[a]vc
name zypper rm
Search for
package(s) by
searching the
expression in
name,
description,
short zypper
description. search or
pacman -Ss dnf search apt search emerge -S
What exact zypper se
fields are being [-s]
searched by
default varies in
each tool.
Mostly options
bring tools on
par.
Upgrade
Packages - zypper emerge -
apt update
Install packages pacman -Syu dnf upgrade and then apt [a]uDN
update or
which have an
upgrade zypper up @world
older version
already installed
Upgrade pacman -Syu dnf distro- apt update zypper dup emerge -
Packages - sync and then apt [a]uDN
Another form of dist- @world
the update upgrade
command,
which can
perform more
complex
updates -- like
distribution
upgrades. When
the usual update
command will
omit package
updates, which
include changes
in
dependencies,
this command
can perform
those updates.
apt
Clean up all
autoclean
local caches. pacman -Sc removes only
Options might dnf clean zypper eclean
or pacman - all unneeded, clean
limit what is distfiles
Scc obsolete
actually
information or
cleaned.
apt clean
zypper rm -
Remove u (just for
dependencies
removing a
that are no
pacman - package) or
longer needed, Qdtq | dnf apt zypper emerge [-a]
because e.g. the pacman -Rs autoremove autoremove packages -- --depclean
package which - unneeded
needed the
(listing only and
dependencies
without
was removed.
recursion)
Remove
packages no pacman -Qmq dnf
aptitude
longer included | pacman - repoquery purge '~o'
in any Rs - --extras
repositories.
zypper
Mark a package install --
previously pacman -D force
installed as a dnf mark apt-mark emerge --
-- (workaround
dependency as asexplicit install manual select
which needs to
explicitly
reinstall the
required.
package)
Install
package(s) as emerge [-a]
dependency / dnf install
pacman -S apt-mark n/a (feature --oneshot or
without --asdeps and then dnf auto emerge [-a]
request)
marking as mark remove
-1
explicitly
required.
apt install
Only downloads --download-
the given only (into the
zypper --
package(s) dnf package cache) emerge [-a]
pacman -Sw download-
without download or apt --fetchonly
only
unpacking or download
installing them (bypass the
package cache)
Start a shell to
enter multiple apt-config zypper
dnf shell
commands in shell shell
one session
Show a log of
read read read read
actions taken by /var/log/pa dnf history /var/log/dp /var/log/zy /var/log/po
the software cman.log kg.log pp/history rtage
management.
Get a dump of
the whole
system
information -
Prints, Saves or
similar the
current state of
the package
see see apt-cache emerge --
management /var/lib/pa /var/lib/rp
system. stats info
cman/local m/Packages
Preferred output
is text or XML.
(Note: Why
either-or here?
No tool offers
the option to
choose the
output format.)
e-mail delivery apt install
of package apt-
changes listchanges
Overrides
Red SLES/
Action Arch Debian/Ubuntu Gentoo
Hat/Fedora openSUSE
Add a edit zypper
package edit
dnf.conf al or put
lock rule to /etc/pacman
adding/ame apt-mark package /etc/portage/
keep its .conf
nding the hold pkg name in package.mask
current state modifying
exclude /etc/zyp
from being IgnorePkg array
option p/locks
changed
zypper
edit
/etc/pacman rl or
Delete a remove /etc/portage/
.conf apt-mark
package package.mask (or
removing unhold pkg package
lock rule name from package.unmask)
package from /etc/zyp
IgnorePkg line p/locks
zypper
Show a cat cat
/etc/apt/ ll or view
listing of all /etc/pacman /etc/portage/pa
preferences /etc/zyp
lock rules .conf ckage.mask
p/locks
Set the edit /etc/apt/ zypper edit
priority of /etc/pacman preferences, mr -p /etc/portage/pa
the given .conf apt-cache ckage.accept_ke
package to modifying policy ywords adding a line
avoid HoldPkg and/or with
upgrade, IgnorePkg arrays =category/packa
force ge-version
downgrade
or to
overwrite
any default
behavior.
Can also be
used to
prefer a
package
version from
a certain
installation
source.
edit
Remove a /etc/portage/pa
/etc/apt/ zypper
previously ckage.accept_ke
preferences mr -p
set priority ywords removing
offending line
apt-cache grep -r .
Show a list zypper /etc/portage/pa
policy or
of set ckage.accept_ke
/etc/apt/pr lr -p
priorities
eferences ywords
Ignore
problems
that n/a
priorities
may trigger.
bmenu. It's a custom manjaro command line menu, which commands shortcuts for a lot of useful
stuff. It lets you
• manage packages interactively with pacui
• manage files with ranger or mc
• manage systemd services (it does support openrc too, but manjaro no longer does)
• manage kernels and drivers with mhwd-tui
• manage monitors with brandr (not good for persistent settings)
• manage printers with bcups (very flaky)
• search and open files with fzf
• set fonts, gtk themes and icons
• configure touchpad (not good for persistent settings)
• enable hibernation autostart and other stuff