2007-07-06 16:54:18 -04:00
|
|
|
/////
|
|
|
|
vim:set ts=4 sw=4 syntax=asciidoc noet:
|
|
|
|
/////
|
2007-07-01 17:58:46 -04:00
|
|
|
pacman.conf(5)
|
|
|
|
==============
|
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
Name
|
2007-07-01 17:58:46 -04:00
|
|
|
----
|
|
|
|
pacman.conf - pacman package manager configuration file
|
|
|
|
|
|
|
|
|
2007-07-06 11:07:53 -04:00
|
|
|
Synopsis
|
|
|
|
--------
|
|
|
|
{sysconfdir}/pacman.conf
|
|
|
|
|
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
Description
|
2007-07-01 17:58:46 -04:00
|
|
|
-----------
|
2007-12-29 01:24:15 -05:00
|
|
|
Pacman, using linkman:libalpm[3], will attempt to read pacman.conf each time it
|
2007-07-16 12:57:02 -04:00
|
|
|
is invoked. This configuration file is divided into sections or repositories.
|
|
|
|
Each section defines a package repository that pacman can use when searching
|
|
|
|
for packages in '\--sync' mode. The exception to this is the options section,
|
|
|
|
which defines global options.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
Example
|
2007-07-01 17:58:46 -04:00
|
|
|
-------
|
2009-01-13 00:19:21 -05:00
|
|
|
|
2007-07-01 17:58:46 -04:00
|
|
|
--------
|
|
|
|
#
|
|
|
|
# pacman.conf
|
|
|
|
#
|
|
|
|
[options]
|
|
|
|
NoUpgrade = etc/passwd etc/group etc/shadow
|
|
|
|
NoUpgrade = etc/fstab
|
|
|
|
|
2008-01-10 01:12:51 -05:00
|
|
|
[core]
|
2010-10-11 19:23:16 -04:00
|
|
|
Include = {sysconfdir}/pacman.d/core
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
[custom]
|
|
|
|
Server = file:///home/pkgs
|
|
|
|
--------
|
|
|
|
|
2008-08-07 14:11:20 -04:00
|
|
|
NOTE: Each directive must be in CamelCase. If the case isn't respected, the
|
|
|
|
directive won't be recognized. For example. noupgrade or NOUPGRADE will not
|
|
|
|
work.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
Options
|
2007-07-01 17:58:46 -04:00
|
|
|
-------
|
2007-07-16 12:57:02 -04:00
|
|
|
*RootDir =* path/to/root::
|
2008-01-06 23:18:08 -05:00
|
|
|
Set the default root directory for pacman to install to. This option is
|
|
|
|
used if you want to install a package on a temporary mounted partition
|
|
|
|
which is "owned" by another system, or for a chroot install.
|
2008-01-15 07:48:27 -05:00
|
|
|
*NOTE*: If database path or logfile are not specified on either the
|
|
|
|
command line or in linkman:pacman.conf[5], their default location will
|
|
|
|
be inside this root path.
|
2007-07-16 12:57:02 -04:00
|
|
|
|
|
|
|
*DBPath =* path/to/db/dir::
|
2008-01-06 23:18:08 -05:00
|
|
|
Overrides the default location of the toplevel database directory. A
|
2010-10-11 19:23:16 -04:00
|
|
|
typical default is ``{localstatedir}/lib/pacman/''. Most users will not need to set
|
2008-01-06 23:18:08 -05:00
|
|
|
this option. *NOTE*: if specified, this is an absolute path and the root
|
2008-06-08 14:50:01 -04:00
|
|
|
path is not automatically prepended.
|
2007-07-16 12:57:02 -04:00
|
|
|
|
|
|
|
*CacheDir =* path/to/cache/dir::
|
2008-01-06 23:18:08 -05:00
|
|
|
Overrides the default location of the package cache directory. A typical
|
2010-10-11 19:23:16 -04:00
|
|
|
default is ``{localstatedir}/cache/pacman/pkg/''. Multiple cache directories can be
|
2008-01-06 23:18:08 -05:00
|
|
|
specified, and they are tried in the order they are listed in the config
|
|
|
|
file. If a file is not found in any cache directory, it will be downloaded
|
2008-01-15 07:48:27 -05:00
|
|
|
to the first cache directory with write access. *NOTE*: this is an absolute
|
2008-06-08 14:50:01 -04:00
|
|
|
path, the root path is not automatically prepended.
|
2008-01-06 23:18:08 -05:00
|
|
|
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*LogFile =* '/path/to/file'::
|
2008-06-08 14:50:01 -04:00
|
|
|
Overrides the default location of the pacman log file. A typical default
|
2010-10-11 19:23:16 -04:00
|
|
|
is ``{localstatedir}/log/pacman.log''. This is an absolute path and the root directory
|
2008-06-08 14:50:01 -04:00
|
|
|
is not prepended.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*HoldPkg =* package ...::
|
|
|
|
If a user tries to '\--remove' a package that's listed in `HoldPkg`,
|
2007-07-01 17:58:46 -04:00
|
|
|
pacman will ask for confirmation before proceeding.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*IgnorePkg =* package ...::
|
2007-07-01 17:58:46 -04:00
|
|
|
Instructs pacman to ignore any upgrades for this package when performing
|
2007-07-16 12:57:02 -04:00
|
|
|
a '\--sysupgrade'.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2008-01-28 13:49:27 -05:00
|
|
|
*SyncFirst =* package ...::
|
|
|
|
Instructs pacman to check for newer version of these packages before any
|
|
|
|
sync operation. The user will have the choice to either cancel the current
|
2009-10-04 10:48:56 -04:00
|
|
|
operation and upgrade these packages first or go on with the current
|
|
|
|
operation. This option is typically used with the 'pacman' package.
|
|
|
|
*NOTE*: when a `SyncFirst` transaction takes place, no command line flags
|
|
|
|
(e.g. '\--force') are honored. If this is not ideal, disabling `SyncFirst`
|
|
|
|
and performing a manual sync of the involved packages may be required.
|
2008-01-28 13:49:27 -05:00
|
|
|
|
2007-11-09 20:13:28 -05:00
|
|
|
*IgnoreGroup =* group ...::
|
|
|
|
Instructs pacman to ignore any upgrades for all packages in this
|
|
|
|
group when performing a '\--sysupgrade'.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*Include =* path::
|
2007-07-01 17:58:46 -04:00
|
|
|
Include another config file. This file can include repositories or
|
2010-05-18 08:32:02 -04:00
|
|
|
general configuration options. Wildcards in the specified paths will get
|
|
|
|
expanded based on linkman:glob[7] rules.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2009-07-22 00:03:25 -04:00
|
|
|
*Architecture =* auto | i686 | x86_64 | ...::
|
|
|
|
If set, pacman will only allow installation of packages of the given
|
|
|
|
architecture (e.g. 'i686', 'x86_64', etc). The special value 'auto' will
|
|
|
|
use the system architecture, provided by in ``uname -m''. If unset, no
|
|
|
|
architecture checks are made. *NOTE*: packages with the special
|
|
|
|
architecture 'any' can always be installed, as they are meant to be
|
|
|
|
architecture independent.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*XferCommand =* /path/to/command %u::
|
2007-07-01 17:58:46 -04:00
|
|
|
If set, an external program will be used to download all remote files.
|
|
|
|
All instances of `%u` will be replaced with the download URL. If present,
|
|
|
|
instances of `%o` will be replaced with the local filename, plus a
|
2007-07-16 12:57:02 -04:00
|
|
|
``.part'' extension, which allows programs like wget to do file resumes
|
2007-07-01 17:58:46 -04:00
|
|
|
properly.
|
2007-07-16 12:57:02 -04:00
|
|
|
+
|
2007-07-01 17:58:46 -04:00
|
|
|
This option is useful for users who experience problems with built-in
|
|
|
|
http/ftp support, or need the more advanced proxy support that comes with
|
|
|
|
utilities like wget.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*NoUpgrade =* file ...::
|
2007-07-01 17:58:46 -04:00
|
|
|
All files listed with a `NoUpgrade` directive will never be touched during
|
2009-06-16 06:34:16 -04:00
|
|
|
a package install/upgrade, and the new files will be installed with a
|
|
|
|
'.pacnew' extension.
|
2008-03-09 15:23:53 -04:00
|
|
|
These files refer to files in the package archive, so do not include the
|
|
|
|
leading slash (the RootDir) when specifying them.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*NoExtract =* file ...::
|
2007-07-01 17:58:46 -04:00
|
|
|
All files listed with a `NoExtract` directive will never be extracted from
|
|
|
|
a package into the filesystem. This can be useful when you don't want part
|
|
|
|
of a package to be installed. For example, if your httpd root uses an
|
2007-07-16 12:57:02 -04:00
|
|
|
'index.php', then you would not want the 'index.html' file to be extracted
|
|
|
|
from the 'apache' package.
|
2008-03-09 15:23:53 -04:00
|
|
|
These files refer to files in the package archive, so do not include the
|
|
|
|
leading slash (the RootDir) when specifying them.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2011-01-29 13:10:05 -05:00
|
|
|
*CleanMethod =* KeepInstalled &| KeepCurrent::
|
2008-02-16 10:01:13 -05:00
|
|
|
If set to `KeepInstalled` (the default), the '-Sc' operation will clean
|
|
|
|
packages that are no longer installed (not present in the local database).
|
|
|
|
If set to `KeepCurrent`, '-Sc' will clean outdated packages (not present in
|
|
|
|
any sync database).
|
|
|
|
The second behavior is useful when the package cache is shared among
|
|
|
|
multiple machines, where the local databases are usually different, but the
|
2011-01-29 13:10:05 -05:00
|
|
|
sync databases in use could be the same. If both values are specified,
|
|
|
|
packages are only cleaned if not installed locally and not present in any
|
|
|
|
known sync database.
|
2008-02-16 10:01:13 -05:00
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
*UseSyslog*::
|
2007-07-01 17:58:46 -04:00
|
|
|
Log action messages through syslog(). This will insert log entries into
|
2010-10-11 19:23:16 -04:00
|
|
|
``{localstatedir}/log/messages'' or equivalent.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-02 16:30:39 -04:00
|
|
|
*ShowSize*::
|
2007-07-16 12:57:02 -04:00
|
|
|
Display the size of individual packages for '\--sync' and '\--query' modes.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-10-19 13:17:53 -04:00
|
|
|
*UseDelta*::
|
|
|
|
Download delta files instead of complete packages if possible. Requires
|
2009-02-19 13:12:34 -05:00
|
|
|
the xdelta3 program to be installed.
|
2007-10-19 13:17:53 -04:00
|
|
|
|
2007-11-09 19:54:18 -05:00
|
|
|
*TotalDownload*::
|
|
|
|
When downloading, display the amount downloaded, download rate, ETA,
|
2008-03-30 12:00:53 -04:00
|
|
|
and completed percentage of the entire download list rather
|
2007-11-09 19:54:18 -05:00
|
|
|
than the percent of each individual download target. The progress
|
|
|
|
bar is still based solely on the current file download.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2010-11-16 01:54:30 -05:00
|
|
|
*CheckSpace*::
|
|
|
|
Performs an approximate check for adequate available disk space before
|
|
|
|
installing packages.
|
|
|
|
|
2007-07-01 17:58:46 -04:00
|
|
|
Repository Sections
|
|
|
|
-------------------
|
|
|
|
Each repository section defines a section name and at least one location where
|
|
|
|
the packages can be found. The section name is defined by the string within
|
|
|
|
square brackets (the two above are 'current' and 'custom'). Locations are
|
2007-07-16 12:57:02 -04:00
|
|
|
defined with the 'Server' directive and follow a URL naming structure. If you
|
|
|
|
want to use a local directory, you can specify the full path with a ``file://''
|
2007-07-01 17:58:46 -04:00
|
|
|
prefix, as shown above.
|
|
|
|
|
2008-01-10 01:12:51 -05:00
|
|
|
A common way to define DB locations utilizes the 'Include' directive. For each
|
|
|
|
repository defined in the configuration file, a single 'Include' directive can
|
|
|
|
contain a file that lists the servers for that repository.
|
|
|
|
|
|
|
|
--------
|
|
|
|
[core]
|
|
|
|
# use this repository first
|
|
|
|
Server = ftp://ftp.archlinux.org/core/os/arch
|
|
|
|
# next use servers as defined in the mirrorlist below
|
2010-10-11 19:23:16 -04:00
|
|
|
Include = {sysconfdir}/pacman.d/mirrorlist
|
2008-01-10 01:12:51 -05:00
|
|
|
--------
|
|
|
|
|
|
|
|
During parsing, pacman will define the `$repo` variable to the name of the
|
|
|
|
current section. This is often utilized in files specified using the 'Include'
|
2009-08-19 12:35:32 -04:00
|
|
|
directive so all repositories can use the same mirrorfile. pacman also defines
|
|
|
|
the `$arch` variable to the value of `Architecture`, so the same mirrorfile can
|
|
|
|
even be used for different architectures.
|
2008-01-10 01:12:51 -05:00
|
|
|
|
|
|
|
--------
|
2009-08-19 12:35:32 -04:00
|
|
|
Server = ftp://ftp.archlinux.org/$repo/os/$arch
|
2008-01-10 01:12:51 -05:00
|
|
|
--------
|
|
|
|
|
|
|
|
The order of repositories in the configuration files matters; repositories
|
|
|
|
listed first will take precedence over those listed later in the file when
|
|
|
|
packages in two repositories have identical names, regardless of version
|
|
|
|
number.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
Using Your Own Repository
|
|
|
|
-------------------------
|
|
|
|
If you have numerous custom packages of your own, it is often easier to generate
|
2007-07-16 12:57:02 -04:00
|
|
|
your own custom local repository than install them all with the '\--upgrade'
|
2007-07-01 17:58:46 -04:00
|
|
|
option. All you need to do is generate a compressed package database in the
|
2007-07-16 12:57:02 -04:00
|
|
|
directory with these packages so pacman can find it when run with '\--refresh'.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
repo-add /home/pkgs/custom.db.tar.gz /home/pkgs/*.pkg.tar.gz
|
|
|
|
|
|
|
|
The above command will generate a compressed database named
|
2007-07-16 12:57:02 -04:00
|
|
|
'/home/pkgs/custom.db.tar.gz'. Note that the database must be of the form
|
|
|
|
'{treename}.db.tar.gz', where '{treename}' is the name of the section defined in
|
2007-07-01 17:58:46 -04:00
|
|
|
the configuration file. That's it! Now configure your custom section in the
|
|
|
|
configuration file as shown in the config example above. Pacman will now use your
|
|
|
|
package repository. If you add new packages to the repository, remember to
|
2007-07-16 12:57:02 -04:00
|
|
|
re-generate the database and use pacman's '\--refresh' option.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
For more information on the repo-add command, see ``repo-add \--help'' or
|
2007-12-29 01:24:15 -05:00
|
|
|
linkman:repo-add[8].
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
2007-12-29 01:24:15 -05:00
|
|
|
linkman:pacman[8], linkman:libalpm[3]
|
2007-07-01 17:58:46 -04:00
|
|
|
|
|
|
|
include::footer.txt[]
|