PKG_SUBST(1)
β¨ pkg_subst(1) β¨
okay bestie, welcome to the pkg_subst manual page β section 1 of the General Commands Manual, if we're being official about it π
πΈ NAME πΈ
pkg_subst β literally just substituting variables' values in files, that's the whole vibe π
π¦ SYNOPSIS π¦
pkg_subst [-ci] [-B basedir] [-D name[=value]] [-g group] [-m mode]
[-o owner] [file ...]
π DESCRIPTION π
so pkg_subst is the little icon that lives inside the ports tree and swaps out variable values β and it uses the exact same conventions as pkg_create(1), no cap, same rules, same energy π«Ά
things like ${VAR} get replaced with the variable's value, and which value that is comes from the -D name[=value] options. iykyk β¨
the options are as follows, bestie:
-B basedirβ drop a basedir where we actually know the file properties, okay? and hear me when i say: it is forbidden to copy files from elsewhere without-m mode. like, genuinely not allowed, don't do it π-cβ copy and substitute. the number of file arguments must be even β they pair up assrc1 dest1,src2 dest2... and everysrcfile gets substituted and copied into its matchingdestfile. cute lil couples π-D name[=value]β define name to value, or to1if you don't hand it a value. defaults slay π-g groupβ change the group of the destination file to group-iβ ignore the changes to group or owner that failed. be unbothered, it's a lifestyle β¨-m modeβ change the mode of the destination file to mode-o ownerβ change the owner of the destination file to owner
and if you pass no file arguments at all, pkg_subst acts as a filter from stdin to stdout. main character pipe energy π§
β οΈ okay important one: without-c, each file is backed up asfile.beforesubstbefore the substitution happens. your og file stays safe, we love a backup arc π
π SEE ALSO π
install(1), pkg_create(1) β go read those too, they're giving related β¨
and that's the page, bestie π this one's the Debian edition, dated June 26, 2018 β PKG_SUBST(1) before and after, periodt π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2010 Marc Espie <espie@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms