Files

1.2 KiB
Raw Permalink Blame History

📦 dpkg Debian Package Manager

dpkg is the package manager for Debian-based Linux distributions. It is used to install, remove, and manage .deb packages directly.

📘 Basic Syntax

dpkg [<option>...] <command>

🌐 Finding Packages

You can browse and search for Debian packages at pkgs.org.


📋 Listing Installed Packages

dpkg -l
dpkg --list

📥 Installing a Package

dpkg -i <package.deb>
dpkg --install <package.deb>

⚠️ If there are missing dependencies, run:

apt install -f

📂 Viewing Package Contents

dpkg -c <package.deb>
dpkg --contents <package.deb>

Getting Package Info

dpkg -I <package.deb>
dpkg --info <package.deb>

📁 Listing Installed Files

dpkg -L <package-name>
dpkg --listfiles <package-name>

🧹 Removing a Package (and its config files)

dpkg -p <package-name>
dpkg --purge <package-name>

📝 Checking Package Status

dpkg -s <package-name>
dpkg --status <package-name>

🔧 Reconfiguring a Package

dpkg-reconfigure <package-name>