Next: , Previous: , Up: Configuration   [Contents][Index]


3.2 Environment Variables

Since there is no configuration file for ‘cpt’, the package manager is configured through environment variables. These can be set per operation, or be set to your shell configuration or ‘~/.profile’. Here are the environment variables that alter the behaviour of ‘cpt’, some of them have separate sections to provide detailed information.

CPT_PATH

Set the locations of your repositories. It is similar to the PATH variable.

CPT_CACHE

The cache directory for ‘cpt’. Default: $XDG_CACHE_HOME/cpt.

CPT_CHOICE

If this is set to 0, a package installation will be aborted on conflicts.

CPT_COLOR

If this is set to 1, ‘cpt’ tools will be forced to display coloured output. If set to 0, they will be forced to display them without colours. Otherwise, ‘cpt’ will output colour as long as it is outputting to a terminal.

CPT_DEBUG

If set to 1, temporary directories will not be removed after the operation.

CPT_DOWNLOADER

The tool to be used to download package sources. One of ‘curl’, ‘wget’, ‘wget2’, ‘axel’, ‘aria2c’. Defaults to the first one found in that order.

CPT_FETCH

If set to 0, cpt-update will not fetch repositories.

CPT_FORCE

If set to 1, ‘cpt’ tools will force operation.

CPT_HOOK

Absolute path to the package manager hook file.

CPT_KEEPLOG

If set to 1, ‘cpt’ will keep logs regardless of operation success.

CPT_PID

Set the temporary build directory name.

CPT_PROMPT

If set to 0, ‘cpt’ will not prompt you for anything.

CPT_REPO_CACHE

If set to 0, ‘cpt’ will not use or write repository information cache.

CPT_ROOT

If this variable is set, ‘cpt’ will assume the given path as the system root.

CPT_TEST

If set to 1, cpt-build will run tests whenever available.

CPT_TMPDIR

The directory to create the temporary directories.

CPT_VERBOSE

If this variable is set to 1, the package manager will print more information.


Next: Hooks, Previous: CPT Base, Up: Configuration   [Contents][Index]