Package Management
dpkg-divert
Diverts file installation path.
Ubuntu
Debian
Mint
Pop!_OS
Elementary OS
Kali
Verified: 2025-09-09
Syntax
$dpkg-divert [OPTIONS] --add FILE
Examples
$dpkg-divert --add --package mypackage --divert /usr/bin/original /usr/bin/custom
Typical use cases
?
Standard usage
dpkg-divert --help
Note
For package file override.
Export