Hi! My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over? Bengt Nilsson
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt: sudo rm -rf /opt/local If you've got a slow connection and enough disk space, you might want to preserve one directory containing the original source code for packages that have already been downloaded: sudo mv /opt/local/var/db/dports/distfiles /opt/distfiles sudo rm -rf /opt/local [... reinstall MacPorts, but don't install any packages yet ...] sudo mv /opt/distfiles/* /opt/local/var/db/dports/distfiles/ sudo rmdir /opt/distfiles This should not hurt even if some of those files are corrupt, since the freshly installed port system will check their signatures before using them. It might waste some disk space, though. Regards, Marc
26 sep 2006 kl. 12.11 skrev Marc André Selig:
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
Yes, I have some other stuff on /opt/local. I thought this was the MacOSX (and Linux?) standard for non-system add-ons, and not dedicated to macports only. Whenever I have installed opensource I have directed it to /opt/local rather than /usr/local.
sudo rm -rf /opt/local
If you've got a slow connection and enough disk space, you might want to preserve one directory containing the original source code for packages that have already been downloaded:
sudo mv /opt/local/var/db/dports/distfiles /opt/distfiles sudo rm -rf /opt/local [... reinstall MacPorts, but don't install any packages yet ...] sudo mv /opt/distfiles/* /opt/local/var/db/dports/distfiles/ sudo rmdir /opt/distfiles
This should not hurt even if some of those files are corrupt, since the freshly installed port system will check their signatures before using them. It might waste some disk space, though.
Regards, Marc
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On 26.09.2006, at 12:25, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
Yes, I have some other stuff on /opt/local. I thought this was the MacOSX (and Linux?) standard for non-system add-ons, and not dedicated to macports only. Whenever I have installed opensource I have directed it to /opt/ local rather than /usr/local.
I don't know much about Mac OS X file system standards, but it certainly makes things easier to have a separate hierarchy dedicated to ports based installations, no matter what the standard says. :) That said, if your port system is at least somewhat working, you should still be able to find out which files were installed from MacPorts: for i in `port installed | awk 'NR>1 {print $1}'`; do port contents $i | awk 'NR>1 {print $0}'; done This will not cover the files used by MacPorts itself, only those installed by it. To get an idea of what files are created by the ports system itself, you might want to move /opt out of the way for a minute, then install MacPorts, do a selfupdate, install a sample port, then have a look at the newly created /opt hierarchy. I'm afraid that cutting something out of a directory tree is always a hassle. That's why we use MacPorts. ;) Regards, Marc
On Sep 26, 2006, at 5:11 AM, Marc André Selig wrote:
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
sudo rm -rf /opt/local
Note that some ports such as xorg install files outside of /opt/ local. You can run into trouble reinstalling X11 if you rm /opt/ local before you uninstall the xorg port. Other ports that I know install files outside of /opt/local are the ones in the Aqua category. cheers Mike
If you've got a slow connection and enough disk space, you might want to preserve one directory containing the original source code for packages that have already been downloaded:
sudo mv /opt/local/var/db/dports/distfiles /opt/distfiles sudo rm -rf /opt/local [... reinstall MacPorts, but don't install any packages yet ...] sudo mv /opt/distfiles/* /opt/local/var/db/dports/distfiles/ sudo rmdir /opt/distfiles
This should not hurt even if some of those files are corrupt, since the freshly installed port system will check their signatures before using them. It might waste some disk space, though.
Regards, Marc
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On Sep 26, 2006, at 12:25, Bengt Nilsson wrote:
26 sep 2006 kl. 12.11 skrev Marc André Selig:
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
Yes, I have some other stuff on /opt/local. I thought this was the MacOSX (and Linux?) standard for non-system add-ons, and not dedicated to macports only. Whenever I have installed opensource I have directed it to /opt/ local rather than /usr/local.
/opt/local should be considered to be dedicated to MacPorts. MacPorts assumes it has complete control of this directory and its contents. When I manually compile software for Mac OS X, I put it in /usr/ local. (I know of no reason not to do so.)
27 sep 2006 kl. 17.56 skrev Ryan Schmidt:
On Sep 26, 2006, at 12:25, Bengt Nilsson wrote:
26 sep 2006 kl. 12.11 skrev Marc André Selig:
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
Yes, I have some other stuff on /opt/local. I thought this was the MacOSX (and Linux?) standard for non-system add-ons, and not dedicated to macports only. Whenever I have installed opensource I have directed it to /opt/ local rather than /usr/local.
/opt/local should be considered to be dedicated to MacPorts. MacPorts assumes it has complete control of this directory and its contents. When I manually compile software for Mac OS X, I put it in /usr/local. (I know of no reason not to do so.)
Thanks for clarifying this. I will adhere to the rules from now on.
Bengt Nilsson <bengt.nilsson11@spray.se> (BN) wrote:
BN> 26 sep 2006 kl. 12.11 skrev Marc André Selig:
On 26.09.2006, at 08:56, Bengt Nilsson wrote:
My port system seems to be genuinely corrupt on all levels. Is there any simple way to remove ALL ports, including port itself, and do it all over?
Unless you've been manually installing things into /opt:
BN> Yes, I have some other stuff on /opt/local. I thought this was the MacOSX BN> (and Linux?) standard for non-system add-ons, and not dedicated to BN> macports only. BN> Whenever I have installed opensource I have directed it to /opt/local BN> rather than /usr/local.
I think you should uninstall all installed ports, clean them all completely, and then check what is left in /opt/local. Then reinstall all things that are left in /opt/local (and that you can identify as your additional installs and reinstall them in /usr/local. (To prevent unwanted references to leftovers in /opt/local you should rename /opt/local to something else before.) After installing all the other stuff you can remove the /opt/local stuff completely and start a fresh install. -- Piet van Oostrum <piet@cs.uu.nl> URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4] Private email: piet@vanoostrum.org
participants (5)
-
Bengt Nilsson
-
Marc André Selig
-
Michael Thon
-
Piet van Oostrum
-
Ryan Schmidt