non-root package manager
$ pkgbrew install editors/emacs-nox11
$ pkgbrew deinstall editors/emacs-nox11
$ pkgbrew replace editors/emacs-nox11
$ pkgbrew show-options editors/emacs24
$ pkgbrew search emacs
$ pkgbrew tap <username>/<repository> # Github
$ pkgbrew untap <username>/<repository>
$ pkgbrew update # for all repository
For example,
$ pkgbrew tap NetBSD/pkgsrc-wip
$ pkgbrew help
$ export MAKE_JOBS=4 # Optional
$ wget -O- https://raw.githubusercontent.com/tani/pkgbrew/master/bin/installer | /bin/sh
$ echo 'export PATH=$HOME/.pkgbrew/bin:$PATH' >> ~/.bashrc
$ echo 'export MANPATH=$HOME/.pkgbrew/man:$MANPATH' >> ~/.bashrc
- NetBSD
- Solaris
- Linux (test environment)
- Darwin(Mac OS X) (Travis CI)
- FreeBSD
(see also pkgsrc.org)
- wget or curl
- gcc (and libstdc++)
- libncurses-devel
- zlib and zlib-devel
This software is written only in /bin/sh and awk, which means that POSIX compatibe.
$ sudo apt-get install build-essential
Set the CC variable in the environment before the script the starts. (export CC=clang
)
TANIGUCHI Masaya
Copyright(c) 2016-2020 TANIGUCHI Masaya
BSD License (2 clause)