Package managers: apt and dnf, repositories
Sign in to read this lesson
On Linux you do not download a program from a website and install it — the package manager brings it from a trusted repository together with its dependencies, updates it and removes it. In this lesson we study Ubuntu's apt in detail and briefly compare it with dnf from the Red Hat family.
What you will learn
- A package is a program + configuration files + a list of dependencies;
.debon Ubuntu,.rpmon Red Hat. - A repository is a signed server that stores packages; its list lives in
/etc/apt/sources.list.d/. sudo apt updaterefreshes the list,sudo apt upgradeupdates the packages — update first.apt install,apt remove,apt purge(with configuration),apt autoremove(unneeded dependencies).apt search,apt show,dpkg -l,dpkg -L package— search and check what is installed.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.