ports updates and lists local ports collections; sources are defined in /etc/ports/.
ports --update # rsync (pull) port files ports --list ports --diff # list version differences between local and installed ports
prt-get is used to install and uninstall ports; it also provides searching, inspecting and listing of dependency trees - it is a high level abstraction to pkgmk and pkgadd.
prt-get sysup --log # update all outdated ports prt-get isinst python prt-get search -vv python prt-get info -vv python prt-get install python # install port prt-get deptree python # view dependency tree prt-get depinst python # install with all dependencies prt-get update python prt-get remove python
One of the best parts of crux's port system is that there is plenty of room for customization; the end points are simple bash scripts, perfect for documenting the exact steps required during installation.
pkgmk generates ports from a ./Pkgfile, which can then be installed with pkgadd.
pkgmk -d --install # download, build and install package pkgmk --download-only # fetch source files pkgmk --clean
/etc/prt-get.conf is the configuration file for prt-get; local port preferences can be declared with the prtdir variable.
prtdir /usr/ports/local # directories are searched in declared order prtdir /usr/ports/[local]:[port1][, port2] # select specific ports
httpup sync http://myhost/ports/tks6 /usr/ports/tks6
Some ports come with convenience scripts to automate setup; like creating new users - they are only run when specifically requested, but can be very convenient when setting up trusted ports.
prt-get [dep]install nginx --install-scripts # run both --pre-install --post-install
2018 - Élő László hello at bald dot cat