Application Package Management, Package Index, Package Manager

Linux application packaging and Distribution:

  • DEB packaging
  • RPM packaging
  • Tarball / Source code

Package Managers

  • apk (Alpine Systems)
  • apt (Debian Systems)
  • dpkg (Debian Systems)
  • snap (Ubuntu Systems)
  • yum (RPM Systems)

Package Index

Package index is a database of available packages

  • /etc/apt/sources.list
  • /etc/apt/sources.list.d (Directory)

Package Managers

apt

  • Update Package Index: apt update
  • Install package: apt install <application>
  • Uninstall package: apt remove <application>
  • Upgrade packages: apt upgrade

dpkg

dpkg – Debian systems and doesn’t automatically download packages

  • List packages: dpkg -l
  • Install package using file: dpkg -i <application.deb>
  • Uninstall package: dpkg -r <application>

Source Installation

  • Most applications provide makefiles for installation
  • A makefile contains instructions for how an application should be compiled
  • Systemd can then be used to tell the OS how the compiled application should be started and run
Scroll to Top