Professional Documents
Culture Documents
Action
Install a package(s) by name
Remove a package(s) by
name
Search for package(s) by
searching the expression in
name, description, short
description. What exact
fields are being searched by
default varies in each tool.
Mostly options bring tools
on par.
Upgrade Packages - Install
packages which have an
older version already
installed
Upgrade Packages - Another
form of the update
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.
Reinstall given Package Will reinstall the given
package without
dependency hassle.
Arch
Debian/Ubuntu
pacman -S
apt-get install
pacman -Rc
apt-get remove
pacman -Ss
apt-cache search
pacman -Syu
apt-get upgrade
pacman -Syu
apt-get dist-upgrade
pacman -S
pacman -U
pacman -U
n/a
pacman -Sw
apt-get autoremove
automatic
apt-get build-dep
${EDITOR} /etc/pacman.conf
modify IgnorePkg array
cat /etc/pacman.conf
/etc/apt/preferences
pacman -D --asexplicit
aptitude unmarkauto
Install package(s) as
dependency / without
pacman -S --asdeps
marking as explicitly
required.
Get a dump of the whole
system information - Prints,
Saves or similar the current
state of the package
management system.
(see /var/lib/pacman/local)
Preferred output is text or
XML. (Note: Why either-or
here? No tool offers the
option to choose the output
format.)
Show all or most
information about a
package. The tools'
verbosity for the default
pacman -[S|Q]i
command vary. But with
options, the tools are on par
with each other.
Search for package(s) by
searching the expression in
name, description, short
description. What exact
pacman -Ss
fields are being searched by
default varies in each tool.
Mostly options bring tools
on par.
Lists packages which have
an update available. Note:
Some provide special
pacman -Qu
commands to limit the
output to certain installation
sources, others use options.
apt-cache stats
apt-cache search
pacman -Sl
pkgfile <filename>
pacman -Sii
(none)
pacman -[S|Q]i
dpkg-query -L $pkgname
pkgfile -s
apt-file search
apt-cache show
testdb
apt-get check
pacman -Q
dpkg --get-selections
pacman -Qm
deborphan
(none)
cat /var/log/pacman.log
cat /var/log/dpkg.log
pacman -Sc
pacman -Scc
cp $pkgname /var/cache/pacman/pkg/
apt-cache add
apt-cache showsrc
apt-cache dotty
${EDITOR} /etc/pacman.conf
Modify HoldPkg and/or IgnorePkg arrays
/etc/apt/preferences
apt-cache policy /etc/apt/preferences
${EDITOR} /etc/pacman.conf
${EDITOR} /etc/apt/sources.list
${EDITOR} /etc/pacman.conf
apt-cdrom add
pacman -Sy
apt-get update
cat /etc/pacman.d/mirrorlist
Single package
All packages
List installed local packages
along with version
Display local package
information: Name, version,
description, etc.
Display remote package
information: Name, version,
description, etc.
Display files provided by
local package
Display files provided by a
remote package
Query the package which
provides FILE
Query a package supplied
on the command line rather
than an entry in the package
management database
Show the changelog of a
package
Search locally installed
package for names or
descriptions
Building Packages
Build a package
Check for possible
packaging issues
List the contents of a
package file
Extract a package
Query a package supplied
on the command line rather
than an entry in the package
management database
debsums
debsums
pacman -Q
dpkg -l
pacman -Qi
dpkg -s
pacman -Si
pacman -Ql
dpkg -L
pkgfile -l
pacman -Qo
dpkg -S/dlocate
pacman -Qp
dpkg -I
pacman -Qc
apt-get changelog
pacman -Qs
makepkg -s
debuild
lintian
dpkg -L
tar -Jxvf
pacman -Qp
dpkg -I