libpkg initial release

Andrew Turner andrew at fubar.geek.nz
Tue Nov 8 21:17:20 PST 2005


Announcing the first release of libpkg

I have been working on a library to work with packages. It uses
libarchive to extract the package directly to the correct location.

Pros:
* It appears to be faster than using pkg_add because it extracts the
files directly to the correct location rather than to a temporary
location then copy to the correct location.

Problems:
* It can only install packages not uninstall or create them.
* Can't get a list of installed packages.
* There is no dependency handling.
* Doesn't always follow style(9).
* Not all possible lines in +CONTENTS are handled.
* @exec lines in +CONTENTS are not executed.
* A failed install will leave files with no package.

There is a demo in the demo sub directory that will install one or more
given packages to "./fakeroot".

libpkg contains a 3 main concepts:
* Package Repository - A collection of installable packages.
* Package Database - A collection of installed packages.
* Package - A single package.

To install a package you retrieve it from the pkg_repo then send it to
the pkg_db. The pkg_db will install the package and register it.

libpkg is available from
https://developer.berlios.de/project/showfiles.php?group_id=5252

MD5 (libpkg-0.1.20051109.tar.bz2) = bc4e8fb5bddc7b4baa25572197e4038c
MD5 (libpkg-0.1.20051109.tar.gz) = 94999c21160abd9368ad951d63950b4a
SHA256 (libpkg-0.1.20051109.tar.bz2) =
466b25900b661441208146cce58ea1999fa898e767a087e1ad3da30aa91648b2
SHA256 (libpkg-0.1.20051109.tar.gz) =
6205abf1e2cda486bb5101ce3abf6706d294ecc53231f41c462bdd646345df8c

There is anonymous subversions avaliable by using either of:
svn checkout svn://svn.berlios.de/libpkg/tags/libpkg-0.1.20051109
svn checkout
http://svn.berlios.de/svnroot/repos/libpkg/tags/libpkg-0.1.20051109

I would like to thank Tim Kientzle for sending me the his origional
libpkg which parts of this are based on.




More information about the freebsd-ports mailing list