Downgrade Package in Macports

mac-osx

I am using Macports 1.7.1, and I don't want the latest port version, since it does not play nice with some other packages I want to build from source.

How can I force a particular version of a package installed from within macports "port" tool?

Best Answer

The old version of your software is likely still around. Check this by running:

port installed PACKAGE

where PACKAGE is what you want to downgrade. This will list out the "fully-qualified" name of the ports that match. You'll see the active port and the old, inactive port. You can switch them by doing something akin to this procedure:

port deactivate PACKAGE@CURRENT_REVISION+VARIANTS

port activate PACKAKGE@OLD_REVISION+VARIANTS

Related Topic