4 ms·
> Look at GNU/Linux: there are only 2 or 3 variations for everything. Mostly false. For package management on Linux I can think of 4 just off the top of my he
by sime2009 7y ago
> Look at GNU/Linux: there are only 2 or 3 variations for everything.
Mostly false.
For package management on Linux I can think of 4 just off the top of my head:
* apt
* rpm
* apk
* pacman
There are bound to be more and this is not counting other approaches like AppImage and Snap.
- benbristow 7y agoDon't forget portage for Gentoo and zypper for OpenSUSE
- de_watcher 7y agoTotally different. He said "switch from npm to yarn". I can't imagine the phrase "switch from apt to rpm". The difference here is that there is the whole layer of distribution maintainers who do the actual work to ensure compatibility and quality. AppImage and Snap are different beasts emerged from the need to bundle proprietary software. There are around two of them like I've said.
- pluma 7y agoOkay, how many node package managers do you think there are for the npm registry? Bower? Nope, it used github. Entropic? Nope, federated as an alternative to npm Inc's monopoly. JSPM? Nope, it loads modules directly off the web. Pnpm? Ah, yes, this one is actually a replacement for the npm client like yarn although with much less traction. So we have npm, yarn and pnpm. Compare that to apt, aptitude, apt-get, dpkg, synaptic, gdpm, gnome-apt, dselect, wajig, PackageKit, kpackage and gdebi. Sure, most of these are GUI tools or somehow build on low-level tools like apt-get but the point is that "Linux doesn't suffer from fragmentation but JS package management does" is absurd. EDIT: This doesn't even go into there being at least three popular mutually incompatible package systems for Linux (Arch/RedHat/Debian) and every distro having its own registry (or "repository").
- Fnoord 7y agoEmerge/portage, nix, ... Even macOS already has Homebrew (Linuxbrew is the Linux equiv), Fink (derived from APT), and MacPorts on top of the App Store and package managers for programming languages like NPM (NodeJS), Cargo (Rust), Gem (Ruby). A nice command to upgrade all of these is Topgrade [1] which does all the upgrades for you, including even Tmux plugins. Of course it comes at the same price of a rolling distribution. Things will break occasionally. As for NPM since the company behind NPM is commercial, and it is centralized, it shouldn't be a surprise that there's alternatives. [1] https://github.com/r-darwish/topgrade https://github.com/r-darwish/topgrade
- Vogtinator 7y agorpm and apt act on two different layers, either you replace apt with dpkg or rpm with dnf/yum/yast/zypper