From 7048109c0a2840957421588219d5a82eeda2d780 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 21 Sep 2020 22:24:54 +0300 Subject: update --- src/docs/Environment-Variables.html | 63 ++++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 19 deletions(-) (limited to 'src/docs/Environment-Variables.html') diff --git a/src/docs/Environment-Variables.html b/src/docs/Environment-Variables.html index 2482e37..27c35c7 100644 --- a/src/docs/Environment-Variables.html +++ b/src/docs/Environment-Variables.html @@ -2,7 +2,12 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts and no Back-Cover Texts. +A copy of the license is included in the section entitled "GNU Free +Documentation License." --> @@ -14,6 +19,7 @@ Licensed under Gnu Free Documentation License. --> + @@ -42,7 +48,7 @@ ul.no-bullet {list-style: none}

-Next: , Previous: , Up: Package Manager  

+Next: , Previous: , Up: Package Manager   [Contents]


2.2 Environment Variables

@@ -56,37 +62,45 @@ alter the behaviour of cpt:
CPT_PATH

Set the locations of your repositories. This is set similar to the 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: -

+

+
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: , Previous: , Up: Package Manager  

+Next: , Previous: , Up: Package Manager   [Contents]

-- cgit v1.2.3