NetBSDfr / pkgin

pkgin's official github repository
129 stars 40 forks source link

pkgin(1) -- A tool to manage pkgsrc binary packages.

SYNOPSIS

pkgin [-dfFhpPvVyn] [-l _limitchars] [-c _chrootpath] [-t _logfile] command [package ...]

DESCRIPTION

The pkgin command is aimed at being an apt / yum like tool for managing pkgsrc(7) binary packages. It relies on pkg_summary(5) for installation, removal and upgrade of packages and associated dependencies, using a remote repository.

OPTIONS

The following command line arguments are supported:

The pkgin utility provides several commands:

STATUS FLAGS

When using the -l flag along with the list command, the following status flag must be set:

ENVIRONMENT

PKG_REPOS The PKG_REPOS environment variable can be pointed to a suitable repository or a list of space separated repositories in order to override /usr/pkg/etc/pkgin/repositories.conf

FILES

EXAMPLES

Setup the initial database:

# echo ftp://ftp.fr.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All > /usr/pkg/etc/pkgin/repositories.conf
# pkgin update
processing local summary...
updating database: 100%
downloading pkg_summary.bz2: 100%
processing remote summary (ftp://ftp.fr.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All)...
updating database: 100%

Listing all packages available in the repository:

# pkgin avail | more
[...]
autoconf-2.63        Generates automatic source code configuration scripts
aumix-gtk-2.8nb3     Set mix levels (ncurses and GTK+ 2.0 interfaces)
aumix-2.8nb7         Set mix levels (ncurses interface only)
august-0.63b         Simple Tk-based HTML editor
audacity-1.2.6nb3    Audio editor
[...]

Install packages and their dependencies:

# pkgin install links eterm
nothing to upgrade.
11 packages to be installed: tiff-3.8.2nb4 png-1.2.35 libungif-4.1.4nb1 libltdl-1.5.26 jpeg-6bnb4 pcre-7.8 perl-5.10.0nb5 libast-0.6.1nb3 imlib2-1.4.2nb1 links-2.2nb1 eterm-0.9.4nb1 (25M to download, 64M to install)
proceed ? [y/N]

Remove packages and their reverse dependencies:

# pkgin remove links eterm
2 packages to delete: links-2.2nb1 eterm-0.9.4nb1
proceed ? [y/N]

Remove orphan dependencies:

# pkgin autoremove
in order to remove packages from the autoremove list, flag those with the -k modifier.
9 packages to be autoremoved: libast-0.6.1nb3 pcre-7.8 imlib2-1.4.2nb1 tiff-3.8.2nb4 png-1.2.35 libungif-4.1.4nb1 libltdl-1.5.26 perl-5.10.0nb5 jpeg-6bnb4
proceed ? [y/N]

SEE ALSO

pkg_add(1), pkg_info(1), pkg_summary(5), pkgsrc(7)

AUTHORS

CONTRIBUTORS

BUGS

We're hunting them.