Pour rappel, pkgin c'est le gestionnaire de package pour netbsd (un apt-like) développé par iMil@ lui même.
pkgin n'est pas encore dans basesys (et on prie tous pour que ça le soit). Il faut utiliser pkg_add pour ajouter tout ça:
kenny# pkg_add ftp://ftp.netbsd.org//pub/pkgsrc/packages/NetBSD/i386/5.0.1_2009Q3/databases/sqlite3-3.6.17.tgz kenny# pkg_add ftp://ftp.netbsd.org//pub/pkgsrc/packages/NetBSD/i386/5.0.1_2009Q3/pkgtools/pkgin-0.2.5.tgz
pkgin permet de chercher son package de plusieurs façon :
kenny# pkgin av | grep 'xen'
kenny# pkgin se '^xen.*'
Pour illustrer mon propos, je vais tout d'abord installer screen depuis pkgin :
kenny# pkgin se '^screen' kenny# pkgin in screen-4.0.3nb2 calculating dependencies for screen-4.0.3nb2... nothing to upgrade. 1 packages to be installed: screen-4.0.3nb2 (517K to download, 908K to install) proceed ? [y/N] y
et je continue avec zsh :
kenny# pkgin in zsh-4.3.9 calculating dependencies for zsh-4.3.9... nothing to upgrade. 1 packages to be installed: zsh-4.3.9 (2015K to download, 6440K to install) proceed ? [y/N] y downloading packages... downloading zsh-4.3.9.tgz: 100% installing packages... installing zsh-4.3.9... zsh-4.3.9: adding /usr/pkg/bin/zsh to /etc/shells
En fait, on me dit dans l'oreillette 'ouais screen c'est vieux, tmux c'est mieux' Soit, 3 coups de cuillère à pot:
kenny# pkgin in tmux-1.0 calculating dependencies for tmux-1.0... nothing to upgrade. 2 packages to be installed: ncurses-5.7nb3 tmux-1.0 (1300K to download, 6136K to install) proceed ? [y/N] y
et la Yummy! ca gère les dépendances en fait!
maintenant, on vire screen:
kenny# pkgin remove screen 1 packages to delete: screen-4.0.3nb2 proceed ? [y/N] y
commençons par mettre à jour la base de package:
kenny# pkgin up database for ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All is up-to-date
et mettons tout à jour:
kenny# pkgin fug calculating dependencies for ncurses-5.7nb3... calculating dependencies for pkgin-0.2.5... calculating dependencies for sqlite3-3.6.17... calculating dependencies for tmux-1.0... calculating dependencies for zsh-4.3.9... nothing to do.
C'était une petite intro à pkgin