A deep clone of a MacPorts setup (especially the uid/gid of created users/groups)?

Daniel J. Luke dluke at geeklair.net
Thu Sep 12 21:04:44 UTC 2024


On Sep 10, 2024, at 4:20 PM, Gerben Wierda <gerben.wierda at rna.nl> wrote:
> Basically, my plan is to compare the local database (/var/db/dslocal/nodes/Default) to see which items have been created by MacPorts installs, copy these over so that a next MacPorts install would find the users already created
> 
> But dscl cannot really do import/output so copying the plists is probably the easiest option. I don't know if such a file based approach works (nothing changed elsewhere on the system?)

I've done file copying like this when migrating some shell users from one macOS install to another (both with different hardware and different OS releases) - it should work (but YMMV).

-- 
Daniel J. Luke



More information about the macports-users mailing list