From 7048109c0a2840957421588219d5a82eeda2d780 Mon Sep 17 00:00:00 2001
From: Cem Keylan
-Next: Hooks, Previous: Usage, Up: Package Manager Set the locations of your repositories. This is set similar to the
2.2 Environment Variables
@@ -56,37 +62,45 @@ alter the behaviour of cpt
:
CPT_PATH
PATH
variable.
-
XDG_CACHE_HOME
Unless this is set, the ~/.cache directory will be used instead. -
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. Default: 1 -
CPT_COMPRESS
Program used to compress package tarballs. The values should be the default suffixes for the program. Available values are: -
gz
zst
bz2
xz
Default: gz
-
CPT_DEBUG
If this is set to 1, temporary build directories will not be removed after the given operation. Default: unset -
CPT_FETCH
If this is set to 0, cpt-update
will not fetch the repositories.
This behaviour can also be achieved by adding -n or --no-fetch
as an argument. Default: 0
-
CPT_FORCE
If this is set to 1, some of the cpt
tools will continue regardless of
errors or skip certain checks. Here are some examples:
@@ -107,11 +121,13 @@ as an argument to those utilities.
CPT_HOOK
Location for the hook file See Hooks. Default: unset -
CPT_KEEPLOG
Normally, logs are deleted if the package is built successfully. If set to 1, logs will be kept even when the packages are built as intended. Default: 0 -
CPT_PID
If this variable is set, the temporary files will be created with this variable
as the suffix, instead of the PID of the cpt
process. The advantage
@@ -119,38 +135,47 @@ is that you can know exactly where the build directory is located, while the
disadvantage is that there will be issues with multiple operations at the
same time. So the best way to use this variable is during one-time cpt
calls.
-
CPT_PID=mesa cpt b mesa
By running the above, you will know that the created build directories will end with the *-mesa suffix. -
+ +CPT_PROMPT
If set to 0, the package manager will not prompt you for anything and will continue with the default action. This behaviour can also be achieved by adding -y or --no-prompt as an argument to some utilities. Default: 1 -
CPT_ROOT
If this variable is set, cpt
will assume this as the system root, and
will install/remove/update/list packages assuming this is the system root.
This behaviour can also be achieved by adding --root as an argument to some utilities.
-
CPT_TEST
If set to 1, cpt-build
will run tests where a package has the
test build file. This behaviour can also be achieved by adding -t or --test
as an argument to cpt-build
. Default: 0
-
CPT_TMPDIR
The directory to create the build files. This can be changed (for example to
/tmp) for building on RAM, saving SSD space, etc. Default: $CPT_CACHE
-
-Next: Hooks, Previous: Usage, Up: Package Manager
+Next: Hooks, Previous: Usage, Up: Package Manager [Contents]