dpkg is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
dpkg -l 'nginx*'dpkg is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
dpkg [options] actiondpkg is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
dpkg -l 'nginx*'Show command help and options where supported.
dpkg --help| Option / clause | Description |
|---|---|
-i <file.deb> | Install a local Debian package file. |
-r / -P <package> | Remove a package; -P also purges its configuration. |
-l [pattern] | List installed packages, optionally filtered by a pattern. |
-L <package> | List files installed by a package. |
-S <path> | Find the package that owns a file path. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.