Package Management
Last updated
Was this helpful?
Last updated
Was this helpful?
Modern Linux distributions primarly use a Software Manager, a centralized system, automating installing, updating, configuring and uninstalling software.
The package manager stores the program's executable, libraries and configuration into a single archive, called a package.
Two prevelant format standards are .deb
(for Debian distros) and .rpm
(for RedHat distros).
On desktop invironments there is a GUI package management system.
Programs depend on third party libraries. Those dependencies are handled by the package manager automatically.
📌
There are many package management tools, but two of them are primarly used.
dpkg
- low level tool
apt
- commandline package manager. It provides commands for searching, managing, querying information about packages.
rpm
- low level tool
yum
- packaging system used by RedHat distros
Some software do not have a package for the used distribution. The alternative is to download the source code of the programs and compile it.
First thing, install the tools necessary to build the software:
Instead of sudo make install
, checkinstall
tool can be used.
It keeps track of all files installed by a "make install", creates rpm/deb package with those files and adds it to the installed packages database.
📌
Install git
manually ():