AI Hints
Home›Linux Tutorial›Installing Software
Linux · Lesson 76 of 120

Package Managers

Installing software the Linux way.

⏱ 2 min read▶ Video at 1:41:03🎓 Free
Watch this lesson in the Linux courseWatch on YouTube ↗Full Linux course

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.

Package Managers
From the video: Package Managers
  • 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.

Packagessoftware, ready to install
Repositoriesofficial, trusted servers
Dependenciesinstalled automatically
Updateseverything at once

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.

DistributionPackage manager
Ubuntu, Debianapt
Fedora, Red Hatdnf
Archpacman
macOSbrew (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
Next up: apt: Installing Software — update and install