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
|
|
|
-------
|
|
|
|
--------
|
|
|
|
#
|
|
|
|
# pacman.conf
|
|
|
|
#
|
|
|
|
[options]
|
|
|
|
NoUpgrade = etc/passwd etc/group etc/shadow
|
|
|
|
NoUpgrade = etc/fstab
|
|
|
|
|
|
|
|
[current]
|
|
|
|
Include = /etc/pacman.d/current
|
|
|
|
|
|
|
|
[custom]
|
|
|
|
Server = file:///home/pkgs
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
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::
|
|
|
|
Set the default root directory for pacman to install to.
|
|
|
|
|
|
|
|
*DBPath =* path/to/db/dir::
|
2007-07-01 17:58:46 -04:00
|
|
|
Overrides the default location of the toplevel database directory.
|
2007-07-16 12:57:02 -04:00
|
|
|
The default is ``/var/lib/pacman/''.
|
|
|
|
|
|
|
|
*CacheDir =* path/to/cache/dir::
|
|
|
|
Overrides the default location of the package cache directory. The default
|
|
|
|
is ``/var/cache/pacman/pkg/''. Multiple cache directories can be 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 to the
|
|
|
|
first cache directory with write access.
|
2007-07-01 17:58:46 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*LogFile =* '/path/to/file'::
|
|
|
|
Log actions directly to a file. Default is ``/var/log/pacman.log''.
|
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
|
|
|
|
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
|
|
|
|
general configuration options.
|
|
|
|
|
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-02 16:30:39 -04:00
|
|
|
*NoPassiveFtp*::
|
2007-07-01 17:58:46 -04:00
|
|
|
Disables passive ftp connections when downloading packages. (aka Active Mode)
|
|
|
|
|
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
|
|
|
|
a package install/upgrade. Do not include the leading slash when specifying
|
|
|
|
files.
|
|
|
|
|
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.
|
2007-07-01 17:58:46 -04: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
|
2007-07-16 12:57:02 -04:00
|
|
|
``/var/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
|
|
|
|
the xdelta program to be installed.
|
|
|
|
|
2007-11-09 19:54:18 -05:00
|
|
|
*TotalDownload*::
|
|
|
|
When downloading, display the amount downloaded, download rate, ETA,
|
|
|
|
and completed percentage of the entire download list list rather
|
|
|
|
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
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
The order of repositories in the file matters; repositories listed first will
|
2007-07-16 12:57:02 -04:00
|
|
|
take precedence over those listed later in the file when packages in two
|
2007-07-01 17:58:46 -04:00
|
|
|
repositories have identical names, regardless of version number.
|
|
|
|
|
|
|
|
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[]
|