On 2010/10/09 00:30, viq wrote: > On Fri, Oct 08, 2010 at 10:09:05PM +0100, Stuart Henderson wrote: > > On 2010/10/08 18:15, viq wrote: > > > I was thinking myself of a script that would delete all existing built > > > packages of what is listed by out-of-date, but did not look at that yet. > > > > viq, make SUBDIRLIST=/tmp/outofdate clean=package (or clean=all) would > > probably do the trick for you here. > > From a glance at bsd.port.mk it does not seem to clean the older > versions of the package (say, 1.1.13 will remain when the ports tree was > updated to 1.2.3).
It can't, as we don't know the names of these packages/subpackages. > I was pondering maybe some way to figure out base > package names, and then strip the version number This will cause problems for things where we carry several versionss (e.g. mutt, postfix). pkg_add -u will only pick the newest ones anyway so it doesn't really hurt to keep old versions around..
