Portmaster

From TykWiki
Revision as of 00:18, 11 March 2009 by Tykling (talk | contribs) (first draft of a portmaster article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This article is about Portmaster, my ports management tool of choice.

Automatically delete old distfiles

Portmaster works like a charm with the default configuration. Only thing that annoyed me after a while is the fact that Portmaster doesn't delete old distfiles without asking first - so I would start a large upgrade, answer all the make config screens that Portmaster is clever enough to show me all at once, and then go do something else. Only to come back and see Portmaster waiting for my OK to delete libsomething-1.2.3.tar.bz2 (which has already been replaced by a new installed version). I can see why this may be nice for some people, but I want it to delete old distfiles without asking me:

/usr/local/etc/portmaster.rc:

ALWAYS_SCRUB_DISTFILES=dopt

That's it. There is a lot of [other options] of course, but like I said, the defaults are fine for me. Eventually I will update this page with more Portmaster commands.