Skip to content

Commit eaf6c3a

Browse files
authored
add new vars
1 parent 4c2dff2 commit eaf6c3a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pages/dev/pacstall-101/Variables.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ import { Callout } from 'nextra/components'
1919
| `AARCH` | Current architecture running (alternate) | `$ echo $HOSTTYPE` | `armhf` uses `armv7h`, and `i386` uses `i686`, instead of `HOSTTYPE` |
2020
| `NCPU` | User overridable core count | `$ nproc` or set by `${PACSTALL_BUILD_CORES}`. | Use this unconditionally in place of `nproc`. |
2121
| `DISTRO` | Value of the current (parent) distro and codename | `$base:$codename`, such as `ubuntu:jammy` or `debian:bookworm` | Should only be used inside of packaging functions. Use distro enhanced variables instead. If current distro is based on `ubuntu` or `debian`, this will be the version it is based on. |
22+
| `DNUM` | Version of the current (parent) distro | `$version`, such as `22.04` or `12` | See above. Value is directly associated with `DISTRO`. |
2223
| `CDISTRO` | Value of the current distro and codename | `$base:$codename`, such as `ubuntu:jammy` or `linuxmint:elsie` | Should only be used inside of packaging functions. Use distro enhanced variables instead, based on `DISTRO`. If current distro is `ubuntu` or `debian`, this will usually be the same as `CDISTRO`. |
24+
| `CDNUM` | Version of the current distro | `$version`, such as `22.04` or `5` | See above. Value is directly associated with `CDISTRO`. |
2325
| `KVER` | Current kernel version running | `$ uname -r` | |
2426
| `PACSTALL_USER` | User who invokes pacstall | `$ logname 2> /dev/null \|\| echo "${SUDO_USER:-${USER:-$(whoami)}}"` | |
2527

0 commit comments

Comments
 (0)