aboutsummaryrefslogtreecommitdiff
path: root/docs/docs/Environment-Variables.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs/Environment-Variables.html')
-rw-r--r--docs/docs/Environment-Variables.html63
1 files changed, 44 insertions, 19 deletions
diff --git a/docs/docs/Environment-Variables.html b/docs/docs/Environment-Variables.html
index 2482e37..27c35c7 100644
--- a/docs/docs/Environment-Variables.html
+++ b/docs/docs/Environment-Variables.html
@@ -2,7 +2,12 @@
<html>
<!-- Copyright (C) 2020 Cem Keylan
-Licensed under Gnu Free Documentation License. -->
+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." -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -14,6 +19,7 @@ Licensed under Gnu Free Documentation License. -->
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Package-Manager.html" rel="up" title="Package Manager">
<link href="Hooks.html" rel="next" title="Hooks">
<link href="cpt_002dbuild.html" rel="prev" title="cpt-build">
@@ -42,7 +48,7 @@ ul.no-bullet {list-style: none}
<body lang="en">
<span id="Environment-Variables"></span><div class="header">
<p>
-Next: <a href="Hooks.html" accesskey="n" rel="next">Hooks</a>, Previous: <a href="Usage.html" accesskey="p" rel="prev">Usage</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; </p>
+Next: <a href="Hooks.html" accesskey="n" rel="next">Hooks</a>, Previous: <a href="Usage.html" accesskey="p" rel="prev">Usage</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="Environment-Variables-1"></span><h3 class="section">2.2 Environment Variables</h3>
@@ -56,37 +62,45 @@ alter the behaviour of <code>cpt</code>:
<dt><code>CPT_PATH</code></dt>
<dd><p>Set the locations of your repositories. This is set similar to the <code>PATH</code>
variable.
-</p></dd>
+</p>
+</dd>
<dt><code>XDG_CACHE_HOME</code></dt>
<dd><p>Unless this is set, the <samp>~/.cache</samp> directory will be used instead.
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_CACHE</code></dt>
<dd><p>The cache directory for <code>cpt</code>. Default: <samp>$XDG_CACHE_HOME/cpt</samp>
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_CHOICE</code></dt>
<dd><p>If this is set to 0, a package installation will be aborted on conflicts.
Default: 1
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_COMPRESS</code></dt>
<dd><p>Program used to compress package tarballs. The values should be the default
suffixes for the program. Available values are:
-</p><ul>
+</p>
+<ul>
<li> <code>gz</code>
</li><li> <code>zst</code>
</li><li> <code>bz2</code>
</li><li> <code>xz</code>
</li></ul>
<p>Default: <code>gz</code>
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_DEBUG</code></dt>
<dd><p>If this is set to 1, temporary build directories will not be removed after the
given operation. Default: unset
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_FETCH</code></dt>
<dd><p>If this is set to 0, <code>cpt-update</code> will not fetch the repositories.
This behaviour can also be achieved by adding <samp>-n</samp> or <samp>--no-fetch</samp>
as an argument. Default: 0
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_FORCE</code></dt>
<dd><p>If this is set to 1, some of the <code>cpt</code> tools will continue regardless of
errors or skip certain checks. Here are some examples:
@@ -107,11 +121,13 @@ as an argument to those utilities.
</dd>
<dt><code>CPT_HOOK</code></dt>
<dd><p>Location for the hook file See <a href="Hooks.html">Hooks</a>. Default: unset
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_KEEPLOG</code></dt>
<dd><p>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
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_PID</code></dt>
<dd><p>If this variable is set, the temporary files will be created with this variable
as the suffix, instead of the PID of the <code>cpt</code> 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 <code>cpt</code>
calls.
-</p><div class="example">
+</p>
+<div class="example">
<pre class="example">CPT_PID=mesa cpt b mesa
</pre></div>
+
<p>By running the above, you will know that the created build directories will end
with the <tt>*-mesa</tt> suffix.
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_PROMPT</code></dt>
<dd><p>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 <samp>-y</samp> or <samp>--no-prompt</samp>
as an argument to some utilities.
Default: 1
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_ROOT</code></dt>
<dd><p>If this variable is set, <code>cpt</code> 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 <samp>--root</samp> as an argument to some utilities.
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_TEST</code></dt>
<dd><p>If set to 1, <code>cpt-build</code> will run tests where a package has the
<samp>test</samp> build file. This behaviour can also be achieved by adding <samp>-t</samp> or <samp>--test</samp>
as an argument to <code>cpt-build</code>. Default: 0
-</p></dd>
+</p>
+</dd>
<dt><code>CPT_TMPDIR</code></dt>
<dd><p>The directory to create the build files. This can be changed (for example to
/tmp) for building on RAM, saving SSD space, etc. Default: <code>$CPT_CACHE</code>
-</p></dd>
+</p>
+</dd>
</dl>
+
+
<hr>
<div class="header">
<p>
-Next: <a href="Hooks.html" accesskey="n" rel="next">Hooks</a>, Previous: <a href="Usage.html" accesskey="p" rel="prev">Usage</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; </p>
+Next: <a href="Hooks.html" accesskey="n" rel="next">Hooks</a>, Previous: <a href="Usage.html" accesskey="p" rel="prev">Usage</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>