Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tonight I'm going to read about pkgsrc and tomorrow give a try. It has active community last time I used it few years ago. Seems to have also binaries available at http://pkgsrc.joyent.com/install-on-osx/


  My quick notes on how to get started with pkgsrc
  
  More info:	http://pkgsrc.org/
  			http://wiki.netbsd.org/pkgsrc/pkgsrc_64bit_osx/
  			
  # Download pkgsrc
  curl -O https://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.bz2
  # validate shasum
  $ curl -O https://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.bz2.SHA1
  $ cat pkgsrc.tar.bz2.SHA1
  $ shasum pkgsrc.tar.bz2
  # extract pkgsrc archive. Mine lives at ~/Work and I also install built packages under Work.
  $ tar jxvf pkgsrc.tar.bz2
  # bootstrap
  $ cd pkgsrc/bootstrap
  $ ./bootstrap --abi=64 --prefer-pkgsrc=yes --unprivileged --compiler=clang --prefix="$HOME/Work/pkg"
  # append prefix/bin to your PATH
  $ cat ~/.bash_profile
  export PATH="$PATH:$HOME/Work/pkg/bin"
  # re-login to make PATH effective
  # Example build of dos2unix (poor example because lots of dependencies like perl...)
  $ cd pkgsrc/converters/dos2unix/
  $ bmake install
  ...
  ===> Installing binary package of dos2unix-7.3.3
  
  $ file ~/Work/pkg/bin/dos2unix
  /Users/petri/Work/pkg/bin/dos2unix: Mach-O 64-bit executable x86_64


You can find homebrew uninstall info from here

https://github.com/Homebrew/brew/blob/master/share/doc/homeb...

  # I did:
  
  # remove all packages
  $ for f in $(brew list); do brew remove "$f"; done
  
  # download uninstall script
  $ curl -O https://raw.githubusercontent.com/Homebrew/install/master/uninstall
  # review script
  # run uninstall script
  $ chmod +x uninstall
  $ ./uninstall
  ...
  
  # review
  /usr/local/bin/
  /usr/local/etc/
  /usr/local/lib/
  /usr/local/share/
  
  # I removed
  $ rm -rf /usr/local/share/ /usr/local/etc/
  
  # Restore permissions
  
  $ sudo chmod 0755 /usr/local
  $ sudo chgrp wheel /usr/local




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: