pkg_improved

About

The current pkg-tools uses some ineffective ways of keeping track installed packages and it's information, so the goal is to make a self contained project replicating the original pkg_* programs with the use of the BerkeleyDB as a cache for making certain operations a lot faster. Adding additional fields for the package install date and a more useful size information (human readable) could also be needed.

Milestones

If you have any suggestions or disagreements please contact me at <andenore AT SPAMFREE FreeBSD DOT org>

Changes

Converter:

Info:

Add:

Delete:

Lib:

Create:

Packinglist:

Fixed bugs which exists in -CURRENT and possibly earlier versions:

Testing

If you would like to test the improved pkg_install tools here's what to do:

  1. Download the latest patch for your release at http://home.no.net/andenore/patches/ into "/usr/src/usr.sbin/pkg_install/"

  2. cd to '/usr/src/usr.sbin/pkg_install'
  3. Apply the patch with "patch -p1 < the_patch.diff"

  4. Run "make && make install" to install the tools.

  5. Run pkg_convert(1) with no arguments to build the cache.
  6. After this you can use the programs like before.

If you notice any bugs your input will be greatly valued and please contact me.

<!> NB. If you do get this:

duckjen# make
===> lib (all)
"../Makefile.inc", line 3: Cannot open /usr/share/mk/bsd.own.mk
"../Makefile.inc", line 17: Cannot open ../Makefile.inc
make: fatal errors encountered -- cannot continue
*** Error code 1

You are probably not compiling from /usr/src/usr.sbin/pkg_install/ and Makefile.inc will try to .include "../Makefile.inc" so comment out this line and specify BINDIR.

# Inherit BINDIR from one level up.
#.include "../Makefile.inc"
BINDIR?= /usr/sbin

AndersNore/pkg_improved (last edited 2008-08-23T10:30:41+0000 by AndersNore)