From 4e17951802512afba9e5c792b3ea9c8ea9ada559 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Tue, 23 Aug 2016 00:30:40 +0100 Subject: prtget renamed to package management --- core/index.html | 14 ++--- core/package.html | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ core/prtget.html | 161 -------------------------------------------------- 3 files changed, 180 insertions(+), 168 deletions(-) create mode 100644 core/package.html delete mode 100644 core/prtget.html (limited to 'core') diff --git a/core/index.html b/core/index.html index 6092df4..a70efda 100644 --- a/core/index.html +++ b/core/index.html @@ -78,14 +78,14 @@ -
  • 2. Prt-get tool +
  • 2. Package Management
  • diff --git a/core/package.html b/core/package.html new file mode 100644 index 0000000..f84df88 --- /dev/null +++ b/core/package.html @@ -0,0 +1,173 @@ + + + + + 5. Package Management + + + + Core Doc Index + +

    5. Package Management

    + +

    For more information read crux handbook Package management + front-end: + prt-get + and Introduction to + pkgutils.

    +

    + + +
    +
    pkgmk(8)
    + +
    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).
    + +
    pkgadd(8)
    + +
    install a software package. A package is an + archive of files (.pkg.tar.gz).
    + +
    pkginfo(8)
    + +
    Displays information about software packages that + are installed on the system or that reside in a + particular directory.
    + +
    pkgrm(8)
    + +
    Removes/uninstalls a previously installed software + packages.
    + +
    prt-get(8)
    + +
    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)
    +
    + + +

    Test configuration by runing prt-get as user installing + ports that are related;

    + +
    +        $ prt-get depinst prt-utils prt-get-bashcompletion
    +        
    + +

    3.1. Update System

    + +

    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
    +        
    + +

    3.2. Install port and dependencies

    + +
    +        $ prt-get depinst git
    +        
    + +

    Installing using pkgmk;

    + +
    +        $ cd /usr/ports/opt/git
    +        $ sudo -H -u pkgmk fakeroot pkgmk -d
    +        
    + +

    3.3. Ports collections

    + +

    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
    +        
    + +

    3.4. Show port information

    + +
    +        $ 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
    +        
    + +

    3.5. Show port dependencies

    + +
    +        $ prt-get depends port_name
    +        
    + +

    3.6. Print information

    + +

    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 SysDoc Manual. + Copyright (C) 2016 + Silvino Silva. + See the file Gnu Free Documentation License + for copying conditions.

    + + + diff --git a/core/prtget.html b/core/prtget.html deleted file mode 100644 index 5d6d714..0000000 --- a/core/prtget.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - 5. Prt-get tool - - - - Core Doc Index - -

    5. Prt-get tool

    - -

    For more information read crux handbook: - Package management front-end: prt-get -

    - -

    For more information read crux handbook: - Introduction to pkgutils.

    - -
    -
    pkgmk(8)
    - -
    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).
    - -
    pkgadd(8)
    - -
    install a software package. A package is an - archive of files (.pkg.tar.gz).
    - -
    pkginfo(8)
    - -
    Displays information about software packages that - are installed on the system or that reside in a - particular directory.
    - -
    pkgrm(8)
    - -
    Removes/uninstalls a previously installed software - packages.
    - -
    prt-get(8)
    - -
    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)
    -
    - - -

    Test configuration by runing prt-get as user installing - ports that are related;

    - -
    -        $ prt-get depinst prt-utils prt-get-bashcompletion
    -        
    - -

    3.1. Update System

    - -

    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
    -        
    - -

    3.2. Install port and dependencies

    - -
    -        $ 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
    -        
    - -

    3.3. Activate Sysdoc ports

    - -

    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
    -        
    - -

    3.4. Show port information

    - -
    -        $ prt-get info port_name
    -        
    - -

    3.5. Show port dependencies

    - -
    -        $ prt-get depends port_name
    -        
    - -

    3.6. Print information

    - -

    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 SysDoc Manual. - Copyright (C) 2016 - Silvino Silva. - See the file Gnu Free Documentation License - for copying conditions.

    - - - -- cgit 1.4.1-2-gfad0