Portmaster

From TykWiki
Revision as of 14:23, 3 December 2009 by Tykling (talk | contribs)
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.

Reinstall all ports

To reinstall (recompile and install) all installed ports, and at the same time upgrade the outdated ports I run the following command:

# portmaster -af

This should be done after upgrading the OS. Portmaster will give you a nice list with the actions it has performed after it finishes.


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.