Reinstalling a port
Ryan Carsten Schmidt
ryandesign at macports.org
Tue Apr 1 16:27:02 UTC 2025
On Apr 1, 2025, at 10:56, Bjarne D Mathiesen wrote:
>
>> On 01/04/2025 10.59, Christoph Kukulies via macports-users wrote:
>> I probably hosed my kicad installation. I downloaded the .dmg from their site and overwrote
>> the binary that I just built and installed from ports yesterday.
>>
>> How can I reinstall the port ?
>
> port -cuNn upgrade --force <port>
>
> You can find this information on the man page under 'upgrade'
That will only reinstall the named port, not its dependencies.
If the Kicad team distributes a dmg that installs into /opt/local it likely includes not only their program but also its dependencies.
The surest way to recover from such an install that overwrote things installed by MacPorts is to uninstall MacPorts and reinstall MacPorts.
If Kicad are distributing such a dmg, please file a bug report with them and ask them to stop that. /opt/local is our prefix and nobody else should be writing into it. They need to pick a different prefix.
More information about the macports-users
mailing list