For what’s its worth, I have been in a similar situation and did at one point try copying over all of MacPorts from my Time Machine backup. That didn’t work, it failed about halfway through due to a permissions error.
In my case I couldn’t rebuild an old version of the port either, because the dependencies no longer worked on my machine. I wound up having to do a full system restore, after manually moving any recently changed files off my machine for later retrieval. So bad news unfortunately. There isn’t an easy bent paper clip method documented anywhere, the hammer method doesn’t work, and I had to resort to a nuclear bomb. I’m hoping there’s an easier way so that I could learn it too, but I don’t have one to provide. > On Jun 23, 2026, at 4:44 PM, Jim Secan <[email protected]> wrote: > > My desire to avoid having to go via git is that I don't "speak" git. I'm a > MacPorts user, not a developer. I spent 20 minutes trying to sort out how to > get this done based on the instructions and what I see when I browse the > repository and have hit a brick wall. For example, the instructions say to > "Replace "686ea4fa0fddeb03fdf2fc04dded68e05181bc95" with the commit you're > interested in" but you have to know a priori where that number comes from, > which I don't. > > Is there no way I can recover using the archive parts I have in my backup > other than via a rebuild using git? I guess one way would be to blow away my > entire current MacPorts installation and copy the whole thing back over from > my backup and then do the update again, this time not cleaning out the > inactive ports. Again, this seems to be using a hammer to fix something that > I think could be fixed with a bent paperclip. > > Jim > Seattle, WA > >>> On 06/23/2026, at 4:09 PM, Nils Breunese <[email protected]> wrote: >>> >>> Jim Secan <[email protected]> wrote: >>> >>> I'd really rather not have to install git and go through the full rebuild >>> process if possible. >> >> You should already have Apple’s Command Line Developer Tools installed, >> which AFAIK include Git (/usr/bin/git). But otherwise installing the git >> port from MacPorts is also not that painful (sudo port install git). When a >> binary package is built and available for redistribution, there is also >> nothing to build really when installing the older port. >> >> Nils >> >
