Linux

Why do we need package managers? Why not simply creating archives and publish them?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Package managers allow you to manage packages lifecycle as in installing, removing and updating the packages.

In addition, you can specify in a spec how a certain package will be installed - where to copy the files, which commands to run prior to the installation, post the installation, etc.