Skip to content
BENIBIX Learn

Debian Package (.deb)

Infrastructure⌨️ Linux & the Command LinePackage Management

Also known as .deb File, deb Package, dpkg

One file that holds an app for Debian. Its name ends in .deb.

Think of it like

Think of it like a flat box of parts for a chair. The parts and the steps are all in the box.

Example

Lucy downloads a chat app as a .deb from the maker's site. She installs it with apt, which also pulls in what it needs.

Why it matters

It is the unit APT moves around. Knowing it explains what install and upgrade really do.

Definition

A Debian package is one file, ending in .deb, that holds a program for Debian or Ubuntu. Inside are the program's files and a list of what it needs. It also says where each file goes. APT downloads these for you, but some makers offer a .deb on their own website. The low-level tool that unpacks them is called dpkg.

Example code

bash
sudo apt install ./chat-app_2.1_amd64.deb
The ./ tells APT it is a file in this folder, not a name in the list.
Each box APT downloads is a .deb file. dpkg unpacks it into place.

Common mistake

Installing a .deb from a site you do not trust. It runs as root while it installs.

Key takeaways

  1. 1
    One file. The program and its needs list.
  2. 2
    APT fetches them. Most come from the list.
  3. 3
    Trust the source. It installs with root power.

Learn it properly