# Debian Package (.deb)

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

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** .deb File, deb Package, dpkg

## 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.

## 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

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.

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Advanced Package Tool (APT)](https://learn.benibix.com/term/infrastructure/apt)
- [Unattended Upgrades](https://learn.benibix.com/term/infrastructure/unattended-upgrades)
- [Software Package](https://learn.benibix.com/term/development/software-package)
- [Package Registry](https://learn.benibix.com/term/development/package-registry)

## Taught in

- [APT and .deb Packages](https://learn.benibix.com/learn/infrastructure-linux/apt-and-deb-packages): Linux CLI, 7/10

![Three steps from left to right. First, apt update fetches a fresh list of packages from an online store of packages. Second, apt install downloads one .deb box and the boxes it needs. Third, the files are unpacked onto the server. Below, a box marked every day shows unattended upgrades running the same steps for security fixes.](https://learn.benibix.com/diagrams/inf3-apt.svg)

---

Source: https://learn.benibix.com/term/infrastructure/debian-package
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
