man > dpkg-realpath(1)

๐Ÿ“› NAME

dpkg-realpath โ€” print the resolved pathname with DPKG_ROOT support

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ” Resolve pathname relative to rootdpkg-realpath /path/to/fileResolves a pathname using DPKG_ROOT or / as the root directory
๐Ÿ” Resolve with custom rootdpkg-realpath --root /custom/root /path/to/fileResolves pathname relative to a specified root directory
๐Ÿ” NUL-terminated outputdpkg-realpath -z /path/to/fileOutputs result with NUL byte instead of newline (for piping to xargs -0)
โ“ Show helpdpkg-realpath --helpDisplay usage message and exit
โ„น๏ธ Show versiondpkg-realpath --versionDisplay version information and exit

๐Ÿ“‹ SYNOPSIS

dpkg-realpath [optionโ€ฆ] pathname

๐Ÿ“– DESCRIPTION

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 /.

โš™๏ธ OPTIONS

๐Ÿ”น Output Format

๐Ÿ”น Root Directory

๐Ÿ”น Informational

๐ŸŒ ENVIRONMENT

๐Ÿ”— SEE ALSO

dpkg-realpath(1)
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ OPTIONS
๐Ÿ”น Output Format ๐Ÿ”น Root Directory ๐Ÿ”น Informational
๐ŸŒ ENVIRONMENT ๐Ÿ”— SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 19:05 @216.73.216.23
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!