For more information read crux handbook Package management front-end: prt-get and Introduction to pkgutils.
Test configuration by runing prt-get as user installing ports that are related;
$ prt-get depinst prt-utils prt-get-bashcompletion
Before build software get latest version of port collections;
$ sudo ports -u
When coming from install or there is to much updates, I prefer to update gcc, glibc, libtool and binutils before doing a sysup;
$ prt-get update gcc $ prt-get update glibc $ prt-get update libtool $ prt-get update binutils
Rebuild any revision dependency;
$ prt-get update -fr $(revdep)
Build and install updated versions of ports;
$ prt-get sysup
$ prt-get depinst git
Installing using pkgmk;
$ cd /usr/ports/opt/git $ sudo -H -u pkgmk fakeroot pkgmk -d
Clone this documentation;
$ git clone https://github.com/s1lvino/sysdoc.git
Install sysdoc port collection;
$ sudo cp sysdoc/ports/sysdoc.httpup /etc/ports/
Edit /etc/prt-get.conf to activate sysdoc collection;
prtdir /usr/ports/sysdoc # the following line enables the user maintained contrib collection prtdir /usr/ports/contrib
Get sysdoc ports;
$ sudo ports -u sysdoc
$ prt-get info port_name
List files port install into system;
$ pkginfo -l package_name
Discover to wich port a file belongs;
$ pkginfo -o filename
$ prt-get depends port_name
Example how to get ports installed from contrib. Maybe there is a "cleaner" way to this, for now is ok;
prt-get printf "%p %i %n %v\n" | grep "/usr/ports/contrib yes"Systools Index
This is part of the c9-doc Manual. Copyright (C) 2016 Silvino Silva. See the file Gnu Free Documentation License for copying conditions.