This section lists some of the variables defined by the package manager that can be used in scripts. These variables usually cannot be defined by the user, so they are not part of the variables section above.
Package manager version.
Location of the CPT system configuration directory. This is usually either ‘/etc/cpt’ or ‘PREFIX/etc/cpt’.
Location of the package database without the root (‘var/db/cpt/installed’).
Location of the package manager database, making use of the current ‘$CPT_ROOT’ (‘$CPT_ROOT/$pkg_db’). This is the database you probably want to use.
Location of the file that defines the base packages.
If for some reason, your script interacts with the directories created and managed by the package manager you should use the following variables instead of the user assigned variables such as ‘$CPT_CACHE’ or ‘$CPT_TMPDIR’. The variables below are the ones used for package operations (which are assigned by using a combination of user-assigned values and their fallbacks).
Cache directory used by the package manager.
Directory containing downloaded sources for packages.
Directory where logs are saved.
Directory where built package tarballs are saved.
Temporary directory for the package manager operations.