2007-02-08 00:24:17 -05:00
|
|
|
." the string declarations are a start to try and make distro independent
|
|
|
|
.ds DS Arch Linux
|
|
|
|
.ds PB PKGBUILD
|
|
|
|
.ds VR 3.0.0
|
2007-02-08 22:44:54 -05:00
|
|
|
.ds LV 1.0.0
|
2007-02-08 00:24:17 -05:00
|
|
|
.TH pacman 8 "Feb 07, 2007" "pacman version \*(VR" "\*(DS Utilities"
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH NAME
|
|
|
|
pacman \- package manager utility
|
2007-02-08 00:24:17 -05:00
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH SYNOPSIS
|
2007-02-08 00:24:17 -05:00
|
|
|
.B pacman
|
|
|
|
<\fIoperation\fR> [\fIoptions\fR] [\fIpackages\fR]
|
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBpacman\fP is a \fIpackage management\fP utility that tracks installed
|
2007-02-10 19:27:45 -05:00
|
|
|
packages on a Linux system. It features dependency support, package groups,
|
|
|
|
install and uninstall hooks, and the ability to sync your local machine with a
|
|
|
|
remote ftp server to automatically upgrade packages. \fBpacman\fP packages are
|
|
|
|
a zipped tar format.
|
|
|
|
|
|
|
|
Since version 3.0.0, \fBpacman\fP has been the frontend to \fBlibalpm\fP, the
|
|
|
|
"Arch Linux Package Management" library. This library allows alternative front
|
|
|
|
ends to be written (for instance, a GUI front end).
|
2007-02-08 00:24:17 -05:00
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH OPERATIONS
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-A, --add (deprecated)
|
2007-02-24 18:40:38 -05:00
|
|
|
Add a package to the system. Either a URL or file path can be specified. The
|
|
|
|
package will be uncompressed into the installation root and the database will
|
|
|
|
be updated. The package will not be installed if another version is already
|
|
|
|
installed. NOTE: please use \fB--upgrade\fP in place of this option.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-F, --freshen
|
|
|
|
This is like \fB--upgrade\fP except it will only upgrade packages already
|
|
|
|
installed on the system.
|
|
|
|
.TP
|
|
|
|
.B \-Q, --query
|
|
|
|
Query the package database. This operation allows you to view installed
|
2007-02-10 19:27:45 -05:00
|
|
|
packages and their files, as well as meta-information about individual packages
|
2007-02-08 00:24:17 -05:00
|
|
|
(dependencies, conflicts, install date, build date, size). This can be run
|
|
|
|
against the local package database or can be used on individual .tar.gz
|
|
|
|
packages. See \fBQUERY OPTIONS\fP below.
|
|
|
|
.TP
|
|
|
|
.B \-R, --remove
|
2007-02-24 18:40:38 -05:00
|
|
|
Remove a package from the system. Files belonging to the specified package
|
|
|
|
will be deleted, and the database will be updated. Most configuration files
|
2007-02-08 00:24:17 -05:00
|
|
|
will be saved with a \fI.pacsave\fP extension unless the \fB--nosave\fP option
|
|
|
|
is used. See \fBREMOVE OPTIONS\fP below.
|
|
|
|
.TP
|
|
|
|
.B \-S, --sync
|
|
|
|
Synchronize packages. Packages are installed directly from the ftp servers,
|
2007-02-24 18:40:38 -05:00
|
|
|
including all dependencies required to run the packages. For example,
|
2007-02-08 00:24:17 -05:00
|
|
|
\fBpacman -S qt\fP will download and install \fBqt\fP and all the packages it
|
|
|
|
depends on. You can also use \fBpacman -Su\fP to upgrade all packages that are
|
|
|
|
out of date. See \fBSYNC OPTIONS\fP below.
|
|
|
|
.TP
|
|
|
|
.B \-U, --upgrade
|
2007-02-24 18:40:38 -05:00
|
|
|
Upgrade or add a package to the system. Either a URL or file path can be
|
|
|
|
specified. This is a "remove-then-add" process. See \fBHANDLING CONFIG
|
|
|
|
FILES\fP for an explanation on how pacman takes care of config files.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-V, --version
|
2005-03-14 20:51:43 -05:00
|
|
|
Display version and exit.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-h, --help
|
|
|
|
Display syntax for the given operation. If no operation was supplied then the
|
|
|
|
general syntax is shown.
|
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2007-03-18 22:45:00 -04:00
|
|
|
.B \--ask \fInumber\fP
|
|
|
|
Pre-specify answers to questions. It is doubtful whether this option even
|
|
|
|
works, so I would not recommend using it. TODO: document this more, as I have
|
|
|
|
no idea how it works or when you would use it, or if we should just dump it.
|
|
|
|
.TP
|
2007-03-11 16:53:50 -04:00
|
|
|
.B \-b, --dbpath \fIpath\fP
|
|
|
|
Specify an alternative database location (default is "/var/lib/pacman/"). This
|
|
|
|
should not be used unless you know what you are doing.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-d, --nodeps
|
|
|
|
Skips all dependency checks. Normally, pacman will always check a package's
|
|
|
|
dependency fields to ensure that all dependencies are installed and there are
|
|
|
|
no package conflicts in the system.
|
|
|
|
.TP
|
|
|
|
.B \-f, --force
|
|
|
|
Bypass file conflict checks and overwrite conflicting files. If the package
|
|
|
|
that is about to be installed contains files that are already installed, this
|
|
|
|
option will cause all those files to be overwritten. This option should be
|
|
|
|
used with care, ideally not at all.
|
|
|
|
.TP
|
|
|
|
.B \-r, --root \fIpath\fP
|
2007-03-11 16:53:50 -04:00
|
|
|
Specify an alternative installation root (default is "/"). This should
|
|
|
|
\fInot\fP be used as a way to install software into /usr/local instead of /usr.
|
|
|
|
This option is used if you want to install a package on a temporary mounted
|
|
|
|
partition which is "owned" by another system. By using this option you not only
|
|
|
|
specify where the software should be installed, but you also specify which
|
|
|
|
package database and cache location to use.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-v, --verbose
|
|
|
|
Output more status messages, such as the Root and DBPath.
|
|
|
|
.TP
|
2007-03-11 16:53:50 -04:00
|
|
|
.B \--cachedir \fIdir\fP
|
|
|
|
Specify an alternative package cache location (default is
|
|
|
|
"/var/cache/pacman/pkg/"). This should not be used unless you know what you are
|
|
|
|
doing.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \--config \fIfilepath\fP
|
2005-03-14 20:51:43 -05:00
|
|
|
Specify an alternate configuration file.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \--noconfirm
|
|
|
|
Bypass any and all "Are you sure?" messages. It's not a good idea to do this
|
2005-03-14 20:51:43 -05:00
|
|
|
unless you want to run pacman from a script.
|
2006-02-02 18:41:31 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \--noprogressbar
|
|
|
|
Do not show a progress bar when downloading files. This can be useful for
|
2006-02-02 18:41:31 -05:00
|
|
|
scripts that call pacman and capture the output.
|
2007-03-18 22:45:00 -04:00
|
|
|
.TP
|
|
|
|
.B \--noscriptlet
|
|
|
|
If an install scriptlet exists, do not execute it. Do not use this unless you
|
|
|
|
know what you are doing.
|
2007-02-08 00:24:17 -05:00
|
|
|
|
|
|
|
.SH QUERY OPTIONS
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-03-18 22:45:00 -04:00
|
|
|
.B \-c, --changelog
|
|
|
|
View the ChangeLog of a package. Not every package will provide one but it
|
|
|
|
will be shown if available.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-e, --orphans
|
|
|
|
List all packages that were pulled in by a previously installed package but no
|
|
|
|
longer required by any installed package.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-g, --groups
|
2007-02-10 19:27:45 -05:00
|
|
|
Display all packages that are members of a named group. If not name is
|
|
|
|
specified, list all grouped packages.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-i, --info
|
|
|
|
Display information on a given package. The \fB-p\fP option can be used if
|
|
|
|
querying a package file instead of the local database.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-l, --list
|
|
|
|
List all files owned by a given package. Multiple packages can be specified on
|
|
|
|
the command line.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-m, --foreign
|
|
|
|
List all packages that were not found in the sync database(s). Typically these
|
|
|
|
are packages that were downloaded manually and installed with \fB--upgrade\fP.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-o, --owns \fIfile\fP
|
|
|
|
Search for the package that owns \fIfile\fP.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-p, --file
|
|
|
|
Signifies that the package supplied on the command line is a file and not an
|
|
|
|
entry in the database. The file will be decompressed and queried. This is
|
2007-02-10 19:27:45 -05:00
|
|
|
useful in combination with \fB--info\fP and \fB--list\fP.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-s, --search \fIregexp\fP
|
|
|
|
This will search each locally-installed package for names or descriptions that
|
|
|
|
matche \fIregexp\fP.
|
|
|
|
.TP
|
2007-05-31 15:48:16 -04:00
|
|
|
.B \-t, --test
|
|
|
|
Test the consistancy of the local pacman database, and alert you of any
|
|
|
|
problems found while searching. Returns 0 on success, >0 otherwise.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-u, --upgrades
|
2007-02-08 22:44:54 -05:00
|
|
|
Lists all packages that are out of date on the local system. This option works
|
|
|
|
best if the sync database is refreshed using \fB-Sy\fP.
|
2007-02-08 00:24:17 -05:00
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH REMOVE OPTIONS
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-c, --cascade
|
|
|
|
Remove all target packages, as well as all packages that depend on one or more
|
|
|
|
target packages. This operation is recursive.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-k, --keep
|
|
|
|
Removes the database entry only. Leaves all files in place.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-n, --nosave
|
|
|
|
Instructs pacman to ignore file backup designations. Normally, when a file is
|
|
|
|
removed from the system the database is checked to see if the file should be
|
|
|
|
renamed with a .pacsave extension.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-s, --recursive
|
2007-02-10 19:27:45 -05:00
|
|
|
Remove each target specified including all dependencies, provided that (A) they
|
|
|
|
are not required by other packages; and (B) they were not explicitly installed
|
|
|
|
by the user. This option is analogous to a backwards \fB--sync\fP operation.
|
2007-02-08 00:24:17 -05:00
|
|
|
|
|
|
|
.SH SYNC OPTIONS
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-c, --clean
|
|
|
|
Remove old packages from the cache to free up disk space. When \fBpacman\fP
|
|
|
|
downloads packages, it saves them in \fI/var/cache/pacman/pkg\fP. Use one
|
|
|
|
\fB--clean\fP switch to remove \fIold\fP packages; use two to remove \fIall\fP
|
|
|
|
packages from the cache.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-03-20 01:47:11 -04:00
|
|
|
.B \-e, --dependsonly
|
|
|
|
Install all dependencies of a package, but not the specified package itself.
|
|
|
|
This is pretty useless and we're not sure why it even exists.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-g, --groups
|
2007-02-24 18:40:38 -05:00
|
|
|
Display all the members for each package group specified. If no group names
|
|
|
|
are provided, all groups will be listed; pass the flag twice to view all
|
|
|
|
groups and their members.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-i, --info
|
|
|
|
Display dependency and other information for a given package. This will search
|
|
|
|
through all repositories for a matching package.
|
|
|
|
.TP
|
|
|
|
.B \-l, --list
|
|
|
|
List all packages in the specified repositories. Multiple repositories can be
|
|
|
|
specified on the command line.
|
2006-02-02 18:41:31 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-p, --print-uris
|
|
|
|
Print out URIs for each package that will be installed, including any
|
2007-02-10 19:27:45 -05:00
|
|
|
dependencies yet to be installed. These can be piped to a file and downloaded
|
|
|
|
at a later time, using a program like wget.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \-s, --search \fIregexp\fP
|
|
|
|
This will search each package in the sync databases for names or descriptions
|
|
|
|
that match \fIregexp\fP.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-u, --sysupgrade
|
|
|
|
Upgrades all packages that are out of date. Each currently-installed package
|
|
|
|
will be examined and upgraded if a newer package exists. A report of all
|
|
|
|
packages to upgrade will be presented and the operation will not proceed
|
|
|
|
without user confirmation. Dependencies are automatically resolved at this
|
|
|
|
level and will be installed/upgraded if necessary.
|
|
|
|
.TP
|
|
|
|
.B \-w, --downloadonly
|
|
|
|
Retrieve all packages from the server, but do not install/upgrade anything.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-y, --refresh
|
|
|
|
Download a fresh copy of the master package list from the server(s) defined in
|
2007-02-24 18:40:38 -05:00
|
|
|
\fBpacman.conf\fP. This should typically be used each time you use
|
|
|
|
\fB--sysupgrade\fP or \fB-u\fP. Passing two \fB--refresh\fP or \fB-y\fP flags
|
|
|
|
will force a refresh of all package lists even if they are thought to be
|
|
|
|
up to date.
|
2007-02-08 00:24:17 -05:00
|
|
|
.TP
|
|
|
|
.B \--ignore \fIpackage\fP
|
|
|
|
Directs \fBpacman\fP to ignore upgrades of \fIpackage\fP even if there is one
|
|
|
|
available.
|
|
|
|
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH HANDLING CONFIG FILES
|
2007-02-08 00:24:17 -05:00
|
|
|
pacman uses the same logic as rpm to determine action against files that are
|
|
|
|
designated to be backed up. During an upgrade, 3 md5 hashes are used for each
|
|
|
|
backup file to determine the required action: one for the original file
|
|
|
|
installed, one for the new file that's about to be installed, and one for the
|
|
|
|
actual file existing on the filesystem. After comparing these 3 hashes, the
|
|
|
|
follow scenarios can result:
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
|
|
|
original=\fBX\fP, current=\fBX\fP, new=\fBX\fP
|
2007-02-08 00:24:17 -05:00
|
|
|
All three files are the same, so overwrites are not an issue Install the new
|
|
|
|
file.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
|
|
|
original=\fBX\fP, current=\fBX\fP, new=\fBY\fP
|
2007-02-08 00:24:17 -05:00
|
|
|
The current file is the same as the original but the new one differs. Since
|
|
|
|
the user did not ever modify the file, and the new one may contain improvements
|
|
|
|
or bugfixes, install the new file.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
|
|
|
original=\fBX\fP, current=\fBY\fP, new=\fBX\fP
|
2007-02-08 00:24:17 -05:00
|
|
|
Both package versions contain the exact same file, but the one on the
|
|
|
|
filesystem has been modified. Leave the current file in place.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
|
|
|
original=\fBX\fP, current=\fBY\fP, new=\fBY\fP
|
2007-02-08 00:24:17 -05:00
|
|
|
The new file is identical to the current file. Install the new file.
|
2005-03-14 20:51:43 -05:00
|
|
|
.TP
|
|
|
|
original=\fBX\fP, current=\fBY\fP, new=\fBZ\fP
|
2007-02-08 00:24:17 -05:00
|
|
|
All three files are different, so install the new file with a .pacnew extension
|
|
|
|
and warn the user. The user must then manually merge any necessary changes into
|
|
|
|
the original file.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH CONFIGURATION
|
|
|
|
See
|
|
|
|
.BR pacman.conf (5)
|
2007-02-08 22:44:54 -05:00
|
|
|
for more details on configuring \fBpacman\fP using the \fBpacman.conf\fP file.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH BUGS
|
|
|
|
Bugs? You must be kidding, there are no bugs in this software. But if we happen
|
|
|
|
to be wrong, send us an email with as much detail as possible to
|
|
|
|
<pacman-dev@archlinux.org>.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR pacman.conf (5),
|
|
|
|
.BR makepkg (8),
|
|
|
|
.BR libalpm (3)
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
See the Arch Linux website at <http://www.archlinux.org> for more current
|
|
|
|
information on the distribution and the \fBpacman\fP family of tools.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH AUTHORS
|
2005-03-14 20:51:43 -05:00
|
|
|
.nf
|
|
|
|
Judd Vinet <jvinet@zeroflux.org>
|
2007-02-08 00:24:17 -05:00
|
|
|
Aurelien Foret <aurelien@archlinux.org>
|
|
|
|
Aaron Griffin <aaron@archlinux.org>
|
|
|
|
Dan McGee <dan@archlinux.org>
|
2005-03-14 20:51:43 -05:00
|
|
|
.fi
|
2007-02-22 22:23:06 -05:00
|
|
|
|
|
|
|
See the 'AUTHORS' file for additional contributors.
|