News

pkgmanager - a package manager for pkgsrc

pkgmanager is a work-in-progress package manager for pkgsrc. Its primary reason for existence is to enable the user to upgrade a pkgsrc installation with a minimum of hassle.

Starting with version 0.8.0, pkgmanager now includes a proper man page (src, txt, html), which is now the authorative source of documentation.

Installation/usage instructions

Install pkgsrc-wip if you haven't already. make install in wip/pkgmanager.

Attempts to install it manually are not 'supported', as it is somewhat complicated.

At the moment wip/pkgmanager is somewhat of an ugly hack; in part because the cl-port and cl-ppcre dependencies should be broken up into actual packages in pkgsrc-wip, and in part because the installation of pkgmanager itself is klunky at best. This will be fixed in the future.

Assuming you are starting with a system that already has a huge number of packages installed, you now want to go through them manually and figure out which top-level packages you are interested in and add them to the wanted list. For example:

  pkgmanager want shells/zsh wm/ion3-devel editors/emacs net/lftp www/firefox www/opera multimedia/mplayer

It is important to note that the whole point of doing this is to list only those top-level packages you actually want. If you were to script the addition of ALL packages to the wanted list, pkgmanager would not function very well (for one thing it would break as soon as some package is renamed or removed).

Please read the manpage for additional details.

When you are done, you can safely see what pkgmanager wants to do:

  pkgmanager sync

It will prompt before actually doing anything destructive to your system. It would be good, especially the first time you run pkgmanager, to perform some level of manual sanity checking to make sure pkgmanager won't remove things you want that take hours to rebuild.

pkgmanager itself is safe to interrupt at any time during an upgrade. Simply re-running pkgmanager again will cause the upgrade process to resume from where it left off. But be aware:

TODO

Partial future TODO:

Other wishlist items:

Obtaining pkgmanager

The recommended method of installation is to use wip/pkgmanager (see usage instructions above).

Development is version controlled using bzr. Previously the code's main repository was in darcs. That repository was converted on 2008-05-06.

You may wish to use bzr to branch/pull the main development branch, or browse a checked out copy of it.

Versions / changelog

A detailed changelog is implicitly available in the darcs repository. Major changes will be listed here.

NOTE: The use of wip/pkgmanager in pkgsrc-wip is strongly recommended (see above). The tarballs require significant manual intervention to get working. If you still want to get the tarballs, they are available here.

Contact

Author: peter.schuller@infidyne.com