3 ms·
I've been using Linux for the past 18 years or so, but damn do the M1 macs look interesting. How does one manage packages on a mac?
by tasuki 4y ago
I've been using Linux for the past 18 years or so, but damn do the M1 macs look interesting. How does one manage packages on a mac?
- Squarex 4y agoyou could use nix
- nishanths 4y agosome more choices: MacPorts, pkgsrc
- Chiron1991 4y agoExcluding 3rd party tools like Homebrew, one dosn't. The native 'package manager' is the Apple App Store. You can also manually download and install .dmg files of applications (much like .deb or .rpm).
- lockhouse 4y agomacOS also has .pkg installer packages that are native. The only issue is that there is no uninstall functionality built in to them unless the package provides their own. https://en.wikipedia.org/wiki/Installer_(macOS) https://en.wikipedia.org/wiki/Installer_(macOS)
- mdaniel 4y agoThat actually bugged me so much that I made a script to use the manifest to blow away declared files and dirs PKGID="${1:-}" PKG_ROOT="$(pkgutil --pkg-info "$PKGID" \ | awk -F: '/location:/{print $2}' \ | sed -e 's,^[ \t]*,/,')" pkgutil --only-files --files "$PKGID" \ | join_paths_0 "$PKG_ROOT" \ | xargs -0 $dry_run rm -v pkgutil --only-dirs --files "$PKGID" \ | sort -r \ | join_paths_0 "$PKG_ROOT" \ | xargs -0 $dry_run rmdir pkgutil --forget "$PKGID" It still leaves detritus, but is better than "oh well, guess I'm stuck with Rando Thing 0.9beta forever"
- dlivingston 4y agoWith Homebrew, frankly. That's the Mac equivalent to apt. I've also had success with Anaconda (specifically, miniconda / miniforge) - it's not just for Python! It's great for creating disposable development environments (i.e., I need HDF5, but only for this project). Other than that, your toolchain is what Apple gives you, and upgrades in ~parity with XCode.