I have to rebuild my OS due to a crappy network stack issue (TKIP keeps breaking wirelessly), and want to back up my MacPorts installation. Correct me if I'm wrong, but I can store /opt with perms on another machine, redo this box, install MacPorts, and move /opt back, and everything should theoretically work, correct? Is there anything else I should do? -- Jay
On Dec 15, 2007, at 23:12, Jay Chandler wrote:
I have to rebuild my OS due to a crappy network stack issue (TKIP keeps breaking wirelessly), and want to back up my MacPorts installation.
Correct me if I'm wrong, but I can store /opt with perms on another machine, redo this box, install MacPorts, and move /opt back, and everything should theoretically work, correct?
Is there anything else I should do?
Presumably that would work. You could tar it all up so that there's only a single file to move back and forth, and no chance of losing the permissions in the process.
On Dec 16, 2007 6:12 AM, Jay Chandler <lists@sequestered.net> wrote:
Correct me if I'm wrong, but I can store /opt with perms on another machine, redo this box, install MacPorts, and move /opt back, and everything should theoretically work, correct?
No. MacPorts itself and quite a number of ports install things outside /opt. You will have to move these as well, but getting them all together will be painful. http://trac.macports.org/projects/macports/wiki/FAQ#HowdoIremoveoruninstallM... has an (incomplete) list of those locations outside /opt. Regards, Marc
On Dec 16, 2007, at 04:57, Marc André Selig wrote:
On Dec 16, 2007 6:12 AM, Jay Chandler wrote:
Correct me if I'm wrong, but I can store /opt with perms on another machine, redo this box, install MacPorts, and move /opt back, and everything should theoretically work, correct?
No. MacPorts itself and quite a number of ports install things outside /opt. You will have to move these as well, but getting them all together will be painful.
http://trac.macports.org/projects/macports/wiki/ FAQ#HowdoIremoveoruninstallMacPorts has an (incomplete) list of those locations outside /opt.
We should complete the list if it's incomplete. What's missing? To get MacPorts itself and most ports, you should back up /opt/local and /Library/Tcl/macports1.0. Some ports may install in other places, like /Applications/MacPorts or /Library/LaunchDaemons or even other places. "port contents foo" will show you where a given port foo installs its files, so ideally you should check "port contents" for each installed port and back up each of those.
On Dec 16, 2007, at 7:01 AM, Ryan Schmidt wrote:
To get MacPorts itself and most ports, you should back up /opt/local and /Library/Tcl/macports1.0. Some ports may install in other places, like /Applications/MacPorts or /Library/LaunchDaemons or even other places. "port contents foo" will show you where a given port foo installs its files, so ideally you should check "port contents" for each installed port and back up each of those.
As an alternative ... if you're using image mode (the default) there will be (hard-linked) copies of everything inside of /opt/local/var/ macports/software So, you could deactivate all of your installed ports, copy over /opt/ local, and then activate all the ports you want. This should put back any files in /opt/local or elsewhere that were installed by MacPorts. If you're using archive mode (with or without image mode), you could just copy the archives of the ports you want to keep, put them back in the right place, and have port install from them (as it won't have to download source and build the ports in order to install them). -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (4)
-
Daniel J. Luke
-
Jay Chandler
-
Marc André Selig
-
Ryan Schmidt