How To Install Dpkg On Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian And MacOS?

How To Install Dpkg On Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian And MacOS?

dpkg

Debian package manager.

Maintainer: Dpkg Developers



Section: admin

Install dpkg

  • Debian apt-get install dpkg Click to copy
  • Ubuntu apt-get install dpkg Click to copy
  • Alpine OS apk add dpkg Click to copy
  • Kali Linux apt-get install dpkg Click to copy
  • Fedora dnf install dpkg Click to copy
  • Raspbian apt-get install dpkg Click to copy
  • macOS brew install dpkg Click to copy

Debian package manager.

How to use dpkg?

Below are few example commands for dpkg that you can use in the terminal.

Install a package:
dpkg -i path/to/file.debClick to copy
Remove a package:
dpkg -r package_nameClick to copy
List installed packages:
dpkg -l patternClick to copy
List package contents:
dpkg -L package_nameClick to copy
List contents of a local package file:
dpkg -c path/to/file.debClick to copy
Find out which package owns a file:
dpkg -S file_nameClick to copy
Install the latest version of dpkg in Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian and macOS from terminal. To install the dpkg just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of dpkg from the respository and install it in your computer/server.