dpkg-realpath(1) | dpkg suite | dpkg-realpath(1) |
dpkg-realpath - print the resolved pathname with DPKG_ROOT support
dpkg-realpath [option...] pathname
dpkg-realpath is a tool (since dpkg 1.20.1) to resolve a pathname, that takes the dpkg(1) root directory into account, either implicitly from the DPKG_ROOT environment variable or from the command-line --root or --instdir options, and returns an absolute pathname relative to the root directory. The root directory must not be prefixed to the pathname to be resolved.
This is intended to be used by other dpkg helpers, or by maintainer scripts instead of using realpath(1) or readlink(1) to canonicalize pathnames, as these latter commands do not support canonicalization relative to a different root than /.
2023-09-13 | 1.20.13 |