How to run massive portmaster update without repeated interruptions?

Thomas Mueller mueller23 at
Sat Oct 27 08:04:48 UTC 2012

On 27 October 2012 12:21, Thomas Mueller <mueller6727 at> wrote:
> When updating many ports with portmaster, I get frequent interruptions with a prompt such as
> ===>>> Delete gstreamer-0.10.35.tar.bz2? y/n [n]

>How do I avoid this inefficiency?  I don't see any way to say "yes, and please don't ask again!"

> My /usr/local/etc/portmaster.rc is

> PM_LOG=/var/log/portm.log

>I don't remember this ever happening when I used portupgrade.

> Tom

Robert Backhaus <robbak at> responded:

> What it is asking you is permission to delete old distfiles. You have
> two options to add to your portmaster.rc:

> To always remove them without asking, or

> To never delete them. Your distfiles directory will quickly get
> massive if you don't do something about stale distfiles.

I saw that in 'man portmaster' and /usr/local/etc/portmaster.rc.sample , 
but I thought the files I was prompted for on deletion were the built
packages rather than the distfiles.  Examining /usr/packages/All and
/BETA1/usr/ports/distfiles showed me that those files in question were
outdated distfiles.

So I added DONT_SCRUB_DISTFILES=Dopt to /usr/local/etc/portmaster.rc in
another virtual terminal when I was prompted on deletion.  This had no effect
on the current paused portmaster run but will hopefully work on subsequent
portmaster runs.

Keeping stale distfiles is bad cyber housekeeping and leaves a lot of useless


More information about the freebsd-ports mailing list