dak | Debian's archive maintenance scripts | Mehr ...
This is a collection of archive maintenance scripts used by the Debian project. . You don't want to use this if you only have a few hundred packages to maintain. Look at mini-dinstall or debarchiver or maybe even apt-ftparchive for this. . This is for a big archive, but there it is the best you can get. . You need a running postgresql, but as this can be on some other host its only a Suggests - install package postgresql if you want it local.