As others have pointed out you can do this, but there are at least two major advantages to the way Linux distributions use package managers:
-
Shared libraries - on Windows most binaries will have their own code libraries rolled into them, which means that every program which uses that library has installed a copy of it on your hard drive, which is highly inefficient and wastes a lot of hard drive space, and means that when a new version of the library is released you still have to wait for each program developer to implement it in a new version of their binary. On Linux, applications installed via the package manager can share a single copy of common dependencies like code libraries, and that library can be updated separately from the applications that use it.
-
Easy updating - on Windows you would have to download new versions of each program individually and install them when a new version is released. If you don’t do this regularly in today’s internet-dependent world, you expose your system to a lot of vulnerabilities. With a Linux package manager you can simply issue the update command (e.g.
sudo apt upgrade
) and the package manager will download all the new versions of the applications and install them for you.
Like the castle in its corner
In a medieval game
I foresee terrible trouble
And I stay here just the same…