From the course: Hands-On Linux: Build Real Command Line Confidence from Scratch

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

What is a package manager in Linux?

What is a package manager in Linux?

On Windows, you go to a website, download a .exe, click next six times, uncheck the toolbar you tried to sync in, and hope for the best. Linux doesn't do that. Linux has package managers. And once you've used one, you'll wonder why every operating system doesn't work this way. So what is it? A package manager is a tool that installs, updates, and removes software for you. It handles everything from downloading the program, putting files in the right places, pulling in any other software it depends on, and cleaning up when you uninstall. One command, done. Since you're on Fedora, your package manager is DNF. That's the one that we'll use. But the concept is the same everywhere. Ubuntu has APT, Arch has Pacman, OpenSUSE has Zipper. Different names, same idea. Let's install a program. How about Htop, a way nicer system monitor than top. Let's do sudo dnf install htop. It'll show you what it's going to install, how big it is, and ask you to confirm. Hit y, hit y again. Now we can type in…

Contents