42 | | |
43 | | There is in additional possibility to use our new [http://distfiles.macports.org distfiles mirror], which is automatically used as of the 1.7.0 release. |
44 | | If a fetch fails with MacPorts 1.6.x, try: |
45 | | {{{ |
46 | | sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/<portname> port -v fetch <portname> |
47 | | }}} |
48 | | |
49 | | Unless it's a port that starts with p5-, py-, py25-, or rb-, in which case you use one of the following: |
50 | | {{{ |
51 | | sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/perl5 port -v fetch p5-<rest_of_portname> |
52 | | sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/python port -v fetch py-<rest_of_portname> |
53 | | sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/python port -v fetch py25-<rest_of_portname> |
54 | | sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/ruby port -v fetch rb-<rest_of_portname> |
55 | | }}} |
164 | | == Inactive port can't be removed even though a newer version is installed == |
165 | | If, after upgrading a port, you find you can't remove the older, inactive, version because {{{port}}} tells you it is a dependency of another port, this is a bug in MacPorts 1.6 and earlier. The recommended fix is to upgrade to MacPorts 1.7.0 or later. |
166 | | |
167 | | In 1.6, the workaround is to force it: {{{sudo port -f uninstall <port> @<older_version>}}} (replacing <port> with the port name and <older_version> with the version string for the older version). For example, if you've upgraded libpng recently, a {{{port installed libpng}}} may show |
168 | | {{{ |
169 | | libpng @1.2.30_0 |
170 | | libpng @1.2.31_0 (active) |
171 | | }}} |
172 | | Running {{{sudo port uninstall libpng}}} or {{{sudo port uninstall libpng @1.2.30_0}}} will complain that other ports depend on libpng and you can't uninstall. Simply add a -f to get it to go: {{{sudo port -f uninstall libpng @1.2.30_0}}}. Just make sure you remove the older, inactive version. |
173 | | |