.\" Title: pacman .\" Author: .\" Generator: DocBook XSL Stylesheets v1.72.0 .\" Date: 05/30/2007 .\" Manual: .\" Source: .\" .TH "pacman" "8" "2007-05-30" "pacman-3.1.0-dev" "Arch Linux Package Manager" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" pacman \- Arch Linux Package Manager .SH "SYNOPSIS" \fBpacman\fR <\fIoperation\fR> [\fIoptions\fR] [\fIpackages\fR] .sp .SH "DESCRIPTION" \fBpacman\fR is a package management utility that tracks installed 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\fR packages are a zipped tar format. .sp Since version 3.0.0, \fBpacman\fR has been the frontend to \fBlibalpm\fR, the "Arch Linux Package Management" library. This library allows alternative front ends to be written (for instance, a GUI front end). .sp .SH "OPERATIONS" .PP \-A, \-\-add (deprecated) .RS 4 Add a package to the system. Either a URL or file path can be specified. The package will be uncompressed into the installa\- tion root and the database will be updated. The package will not be installed if another version is already installed. NOTE: please use \fB\-\-upgrade\fR in place of this option. .RE .PP \-F, \-\-freshen .RS 4 This is like \fB\-\-upgrade\fR except it will only upgrade packages already installed on the system. .RE .PP \-Q, \-\-query .RS 4 Query the package database. This operation allows you to view installed packages and their files, as well as meta\-information about individual packages (dependencies, conflicts, install date, build date, size). This can be run against the local pack\- age database or can be used on individual .tar.gz packages. See \fBQUERY OPTIONS\fR below. .RE .PP \-R, \-\-remove .RS 4 Remove a package from the system. Files belonging to the speci\- fied package will be deleted, and the database will be updated. Most configuration files will be saved with a \fI.pacsave\fR extension unless the \fB\-\-nosave\fR option is used. See \fBREMOVE OPTIONS\fR below. .RE .PP \-S, \-\-sync .RS 4 Synchronize packages. Packages are installed directly from the ftp servers, including all dependencies required to run the packages. For example, \fBpacman \-S qt\fR will download and install qt and all the packages it depends on. You can also use \fBpacman \-Su\fR to upgrade all packages that are out of date. See \fBSYNC OPTIONS\fR below. .RE .PP \-U, \-\-upgrade .RS 4 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\fR for an explanation on how pacman takes care of config files. .RE .PP \-V, \-\-version .RS 4 Display version and exit. .RE .PP \-h, \-\-help .RS 4 Display syntax for the given operation. If no operation was supplied then the general syntax is shown. .RE .SH "OPTIONS" .PP \-\-ask number .RS 4 Pre\-specify answers to questions. It is doubtful whether this option even works, so I would not recommend using it. TODO: doc\- ument this more, as I have no idea how it works or when you would use it, or if we should just dump it. .RE .PP \-b, \-\-dbpath \fIpath\fR .RS 4 Specify an alternative database location (default is "/var/lib/pacman/"). This should not be used unless you know what you are doing. .RE .PP \-d, \-\-nodeps .RS 4 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. .RE .PP \-f, \-\-force .RS 4 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. .RE .PP \-r, \-\-root \fIpath\fR .RS 4 Specify an alternative installation root (default is "/"). This should not 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. .RE .PP \-v, \-\-verbose .RS 4 Output more status messages, such as the Root and DBPath. .RE .PP \-\-cachedir \fIdir\fR .RS 4 Specify an alternative package cache location (default is "/var/cache/pacman/pkg/"). This should not be used unless you know what you are doing. .RE .PP \-\-config \fIfilepath\fR .RS 4 Specify an alternate configuration file. .RE .PP \-\-noconfirm .RS 4 Bypass any and all "Are you sure?" messages. It's not a good idea to do this unless you want to run pacman from a script. .RE .PP \-\-noprogressbar .RS 4 Do not show a progress bar when downloading files. This can be useful for scripts that call pacman and capture the output. .RE .PP \-\-noscriptlet .RS 4 Display all packages that are members of a named group. If not name is specified, list all grouped packages. .RE .SH "QUERY OPTIONS" .PP \-c, \-\-changelog .RS 4 View the ChangeLog of a package. Not every package will provide one but it will be shown if avail\- able. .RE .PP \-e, \-\-orphans .RS 4 List all packages that were pulled in by a previously installed package but no longer required by any installed package. .RE .PP \-g, \-\-groups .RS 4 Display all packages that are members of a named group. If not name is specified, list all grouped packages. .RE .PP \-i, \-\-info .RS 4 Display information on a given package. The \fB\-p\fR option can be used if querying a package file instead of the local database. .RE .PP \-l, \-\-list .RS 4 List all files owned by a given package. Multiple packages can be specified on the command line. .RE .PP \-m, \-\-foreign .RS 4 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\fR. .RE .PP \-o, \-\-owns \fIfile\fR .RS 4 Search for the package that owns \fIfile\fR. .RE .PP \-p, \-\-file .RS 4 Signifies that the package supplied on the command line is a file and not an entry in the database. The file will be decom\- pressed and queried. This is useful in combination with \fB\-\-info\fR and \fB\-\-list\fR. .RE .PP \-s, \-\-search \fIregexp\fR .RS 4 This will search each locally\-installed package for names or descriptions that matche \fIregexp\fR. .RE .PP \-u, \-\-upgrades .RS 4 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\fR. .RE .SH "REMOVE OPTIONS" .PP \-c, \-\-cascade .RS 4 Remove all target packages, as well as all packages that depend on one or more target packages. This operation is recursive. .RE .PP \-k, \-\-keep .RS 4 Removes the database entry only. Leaves all files in place. .RE .PP \-n, \-\-nosave .RS 4 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. .RE .PP \-s, \-\-recursive .RS 4 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 analo\- gous to a backwards \fB\-\-sync\fR operation. .RE .SH "SYNC OPTIONS" .PP \-c, \-\-clean .RS 4 Remove old packages from the cache to free up disk space. When pacman downloads packages, it saves them in /var/cache/pacman/pkg. Use one \fB\-\-clean\fR switch to remove old packages; use two to remove all packages from the cache. .RE .PP \-e, \-\-dependsonly .RS 4 Install all dependencies of a package, but not the specified package itself. This is pretty use\- less and we're not sure why it even exists. .RE .PP \-g, \-\-groups .RS 4 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. .RE .PP \-i, \-\-info .RS 4 Display dependency and other information for a given package. This will search through all repositories for a matching pack\- age. .RE .PP \-l, \-\-list .RS 4 List all packages in the specified repositories. Multiple repos\- itories can be specified on the command line. .RE .PP \-p, \-\-print\-uris .RS 4 Print out URIs for each package that will be installed, includ\- ing any dependencies yet to be installed. These can be piped to a file and downloaded at a later time, using a program like wget. .RE .PP \-s, \-\-search \fIregexp\fR .RS 4 This will search each package in the sync databases for names or descriptions that match \fIregexp\fR. .RE .PP \-u, \-\-sysupgrade .RS 4 Upgrades all packages that are out of date. Each currently\- installed package will be examined and upgraded if a newer pack\- age exists. A report of all packages to upgrade will be pre\- sented and the operation will not proceed without user confirma\- tion. Dependencies are automatically resolved at this level and will be installed/upgraded if necessary. .RE .PP \-w, \-\-downloadonly .RS 4 Retrieve all packages from the server, but do not install/upgrade anything. .RE .PP \-y, \-\-refresh .RS 4 Download a fresh copy of the master package list from the server(s) defined in \fBpacman.conf\fR. This should typically be used each time you use \fB\-\-sysupgrade\fR or \fB\-u\fR. Passing two \fB\-\-refresh\fR or \fB\-y\fR flags will force a refresh of all package lists even if they are thought to be up to date. .RE .PP \-\-ignore \fIpackage\fR .RS 4 Directs pacman to ignore upgrades of \fIpackage\fR even if there is one available. .RE .SH "HANDLING CONFIG FILES" 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 .sp .PP original=X, current=Y, new=X .RS 4 Both package versions contain the exact same file, but the one on the filesystem has been modified. Leave the current file in place. .RE .PP original=X, current=Y, new=Y .RS 4 The new file is identical to the current file. Install the new file. .RE .PP original=X, current=Y, new=Z .RS 4 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. .RE .SH "CONFIGURATION" See \fBpacman.conf\fR(5) for more details on configuring \fBpacman\fR using the \fBpacman.conf\fR file. .sp .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 . .sp .SH "SEE ALSO" \fBpacman.conf\fR(5), \fBmakepkg\fR(8), \fBlibalpm\fR(3) .sp See the Arch Linux website at for more cur\- rent information on the distribution and the \fBpacman\fR family of tools. .sp .SH "AUTHORS" .sp .RS 4 .nf Judd Vinet Aurelien Foret Aaron Griffin Dan McGee .fi .RE See the \fIAUTHORS\fR file for additional contributors. .sp