Package Managers
Installing software the Linux way.
On Windows or a Mac, you often install software by searching the web, downloading an installer, and clicking next, next, finish. Linux has a much better way. One command, from a trusted source.

- Search, download, click next?
- Linux has a better way
- One command, a trusted source
What a package manager does
A package manager is like an app store you use from the terminal. Software comes in packages. The package manager downloads them from official servers, called repositories, checks they haven't been tampered with, installs anything else they need, and can update everything at once, later.
Different distros, different tools
Each family of distributions has its own package manager. Ubuntu and Debian use APT. Fedora and Red Hat use DNF. Arch uses pac man. And on a Mac, many people use Homebrew. The ideas are the same everywhere. We'll use APT.
| Distribution | Package manager |
|---|---|
| Ubuntu, Debian | apt |
| Fedora, Red Hat | dnf |
| Arch | pacman |
| macOS | brew (Homebrew) |
Summary
A package manager installs software from trusted repositories, with its dependencies, in one command. On Ubuntu, it's APT. Next, let's install something.
Key takeaways- Packages and repositories
- Dependencies handled
- Ubuntu: apt