It may be that assuming you are pointing to /usr/ports/packages/i386/all, for 
instance, that pkg_add -u -D update might do something relevant.  Also, without 
any particular virtue claimed, I offer an attachment:

the program does an out-of-date and if there are some literals about conflicts 
in a certain way, it deletes the package.  Now this may actually in a round 
about way do what you want.




________________________________
From: viq <[email protected]>
To: [email protected]
Sent: Fri, October 8, 2010 3:30:59 PM
Subject: Re: understanding out-of-date in infrastructure behavior

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). I was pondering maybe some way to figure out base
package names, and then strip the version number, or delete packages
older than something, or play some games with sqlports, or maybe yet
something else ;)

-- 
viq



      

Attachment: removeoldpackages.py
Description: Binary data

Reply via email to