Holding a package at a given version

Daniel J. Luke dluke at geeklair.net
Mon Aug 1 08:51:25 PDT 2016

On Aug 1, 2016, at 11:44 AM, Adam Mercer <ram at macports.org> wrote:
> Sometimes I want to hold a given package at a specific version, is
> there a way to do this with port?

You need to set up a local repository where you can 'freeze' the port version at the one you want.

[ideally you wouldn't have to do this ever, though]

> Currently I use something like the following:
> $ sudo port upgrade outdated and not gnuplot
> however that only works if none of the outdated ports have a
> dependency on gnuplot.

Another way to do it would be to run upgrade like 'normal' and then force deactivate the new version + activate the old version (with the caveat that this might break things)

Daniel J. Luke

More information about the macports-users mailing list