by rgoulter · 4y ago · 0 comments
What were you trying to do such that the way the docs said to do it was wrong?
"package manager" is literally in the first sentence.
Nix does have equivalents to "apt install <package>", etc... but, it's prone to "I forgot I did that / I didn't know I did that", and problems arising from that. (Other distribution package managers like apt-get or pacman require installing packages as root; but with nix packages should be installed as non-root. And the nix command to update installed packages isn't intuitive).
What's typically encouraged is to instead install packages as part of the NixOS configuration, or as part of a home-manager configuration.
Or, just using commands like "nix shell nixpkgs#<package>", which just adds the program to the path in the current shell, without installing it. (Which is a neat feature of nix).