diff options
Diffstat (limited to 'core/prtget.html')
-rw-r--r-- | core/prtget.html | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/core/prtget.html b/core/prtget.html new file mode 100644 index 0000000..5d6d714 --- /dev/null +++ b/core/prtget.html @@ -0,0 +1,161 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>5. Prt-get tool</title> + </head> + <body> + + <a href="index.html">Core Doc Index</a> + + <h1>5. Prt-get tool</h1> + + <p>For more information read crux handbook: + <a href="https://crux.nu/Handbook3-1#ntoc20">Package management front-end: prt-get</a> + </p> + + <p>For more information read crux handbook: + <a href="https://crux.nu/Main/Handbook3-2#ntoc14">Introduction to pkgutils</a>.</p> + + <dl> + <dt>pkgmk(8)</dt> + + <dd>Makes a software package. A package is an archive of + files (.pkg.tar.gz, .pkg.tar.bz2 or .pkg.tar.xz) + that can be installed using pkgadd(8).</dd> + + <dt>pkgadd(8)</dt> + + <dd>install a software package. A package is an + archive of files (.pkg.tar.gz).</dd> + + <dt>pkginfo(8)</dt> + + <dd>Displays information about software packages that + are installed on the system or that reside in a + particular directory.</dd> + + <dt>pkgrm(8)</dt> + + <dd>Removes/uninstalls a previously installed software + packages.</dd> + + <dt>prt-get(8)</dt> + + <dd>prt-get is a package management tool which + provides additional functionality to crux' package + management system. It works with the local ports tree + and is therefore fully compatible with ports(8) and + pkgmk(8)/pkgadd(8)</dd> + </dl> + + + <p>Test configuration by runing prt-get as user installing + ports that are related;</p> + + <pre> + $ prt-get depinst prt-utils prt-get-bashcompletion + </pre> + + <h2 id="sysup">3.1. Update System</h2> + + <p>Before build software get latest version of port collections;</p> + + <pre> + $ sudo ports -u + </pre> + + <p>When coming from install or there is to much updates, I prefer to + update gcc, glibc, libtool and binutils before doing a sysup;</p> + + <pre> + $ prt-get update gcc + $ prt-get update glibc + $ prt-get update libtool + $ prt-get update binutils + </pre> + + <p>Rebuild any revision dependency;</p> + + <pre> + $ prt-get update -fr $(revdep) + </pre> + + <p>Build and install updated versions of ports;</p> + + <pre> + $ prt-get sysup + </pre> + + <h2 id="depinst">3.2. Install port and dependencies</h2> + + <pre> + $ prt-grt depinst iw + $ prt-get depinst gnupg + $ prt-get depinst shorewall + $ prt-get depinst logrotate + # samhain at this point add /etc/logrotate.d/samhain + $ prt-get -if depinst samhain + $ prt-get depinst dnsmasq + $ prt-get depinst tmux + $ prt-get depinst git + </pre> + + <h3 id="sysdoc">3.3. Activate Sysdoc ports</h3> + + <p>Clone this documentation;</p> + + <pre> + $ git clone https://github.com/s1lvino/sysdoc.git + </pre> + + <p>Install sysdoc port collection;</p> + + <pre> + $ sudo cp sysdoc/ports/sysdoc.httpup /etc/ports/ + </pre> + + <p>Edit /etc/prt-get.conf to activate sysdoc collection;</p> + + <pre> + prtdir /usr/ports/sysdoc + # the following line enables the user maintained contrib collection + prtdir /usr/ports/contrib + </pre> + + <p>Get sysdoc ports;</p> + + <pre> + $ sudo ports -u sysdoc + </pre> + + <h2 id="info">3.4. Show port information</h2> + + <pre> + $ prt-get info port_name + </pre> + + <h2 id="depends">3.5. Show port dependencies</h2> + + <pre> + $ prt-get depends port_name + </pre> + + <h2 id="printf">3.6. Print information</h2> + + <p>Example how to get ports installed from contrib. Maybe there is + a "cleaner" way to this, for now is ok;</p> + + <pre> + prt-get printf "%p %i %n %v\n" | grep "/usr/ports/contrib yes" + </pre> + + <a href="index.html">Systools Index</a> + <p>This is part of the SysDoc Manual. + Copyright (C) 2016 + Silvino Silva. + See the file <a href="fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + </body> +</html> |