[MacPorts] #51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++"
#51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++" ---------------------------+-------------------- Reporter: tamas.fulop@… | Owner: jmpp@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: website | Version: 2.3.4 Keywords: | Port: ---------------------------+-------------------- On page [https://trac.macports.org/wiki/LibcxxOnOlderSystems#LionandMountainLion], could you please add a one- or two-sentence help to the part "uninstall all ports that use C++"? Those having many hundreds of ports but not being experts would appreciate it ("Start with a new install of MacPorts" being a frightening option, and upgrading the OS probably excluded). Thank you! -- Ticket URL: <https://trac.macports.org/ticket/51552> MacPorts <https://www.macports.org/> Ports system for OS X
#51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++" ----------------------------+-------------------------------- Reporter: tamas.fulop@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: guide | Version: Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Changes (by mf2k@…): * owner: jmpp@… => macports-tickets@… * version: 2.3.4 => * component: website => guide Old description:
On page [https://trac.macports.org/wiki/LibcxxOnOlderSystems#LionandMountainLion], could you please add a one- or two-sentence help to the part "uninstall all ports that use C++"? Those having many hundreds of ports but not being experts would appreciate it ("Start with a new install of MacPorts" being a frightening option, and upgrading the OS probably excluded). Thank you!
New description: On page wiki:LibcxxOnOlderSystems#LionandMountainLion, could you please add a one- or two-sentence help to the part "uninstall all ports that use C++"? Those having many hundreds of ports but not being experts would appreciate it ("Start with a new install of MacPorts" being a frightening option, and upgrading the OS probably excluded). Thank you! -- -- Ticket URL: <https://trac.macports.org/ticket/51552#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++" ----------------------------+-------------------------------- Reporter: tamas.fulop@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: wiki | Version: Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Changes (by ryandesign@…): * component: guide => wiki Comment: It's not easy to provide additional guidance. MacPorts does not know which ports use C++, so it's difficult to help you identify them. One way would be: for each file the port installed (i.e. the output of `port -q contents`), check `otool -L` to see if the file links with libc++ or libstdc++. If it does, that port uses C++. Since it is difficult to identify which ports use C++ and just uninstall them, it's simpler to uninstall all ports, then reinstall the ones you want. I wouldn't immediately exclude the possibility of upgrading your OS. In my opinion, that would be the best way to proceed, if your Mac supports it. It looks like all Macs that support 10.8 can be upgraded to 10.9, 10.10 or 10.11, and it's free to do so. There are a handful of older Macs that cannot be upgraded past 10.7; if you're using one of those, then you'll have to continue on with the wiki page instructions. -- Ticket URL: <https://trac.macports.org/ticket/51552#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++" ----------------------------+-------------------------------- Reporter: tamas.fulop@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: wiki | Version: Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by tamas.fulop@…): Thank you for the additional information. Now the difficulty is clearer (the shell script I would write to automatize this process should make no mistake). Reinstalling all the ports will be safer. Upgrading the OS (especially by four versions) would break so many things and would set back my productivity so considerably that I always do it only when support for the current OS has died out comparably seriously. (For my type of work and usage, OS 10.3 was already satisfactory...) Nevertheless, thank you for your suggestion. -- Ticket URL: <https://trac.macports.org/ticket/51552#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51552: Page LibcxxOnOlderSystems: some help with "uninstall all ports that use C++" ----------------------------+-------------------------------- Reporter: tamas.fulop@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: wiki | Version: Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by ken.cunningham.webuse@…): This was useful (from Jeremy Hu) {{{ which installed ports are using c++: grep -R 'c++' /opt/local and port provides .. ? =/ }}} that gave a moderately long list of files, from which it wasn't too hard to do {{{ port provides XYZ }}} and figure out which ports they belonged to. In the end, on my system with hundreds of ports installed, it all came down to less than a dozen c++ ports, although it took 1/2 an hour to figure them all out. That was much faster than just bulldozing the whole installation, however. -- Ticket URL: <https://trac.macports.org/ticket/51552#comment:4> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts