Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The procedure for uninstalling MacPorts involves deleting many directory subtrees, including /opt/local. I was suspicious of this; the directories in /opt/local have the same names as many found in / on Linux systems (bin, lib, var, and so on), and they could easily hold some things that were not installed by MacPorts. Without looking through it all, how can I be sure there's nothing else that I might need there?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

The only way to be absolutely certain is of course to look through all the subdirectories and check if there's something you don't want to delete there. However, can you think of any other program that might have something installed under /opt/local? /opt/local is a very unusual location to store software. Mac OS X doesn't use it, so you can be reasonably certain that there will be no OS X apps in there. UNIX programs would usually lie in /usr or in first-order subdirectories of /opt (e.g. /opt/java, /opt/mozilla, etc)

Think of the ways in which you've installed software, and check where they put things by default. But unless you put something there manually, it's highly unlikely that something non-MacPorts found its way into /opt/local.

share|improve this answer
    
Okay…I'll just move it aside for now, wait a few weeks or so, and see if anything breaks… –  Blacklight Shining Aug 12 '12 at 23:26

I have deleted the folder in order to get rid of macports and replace with homebrew.

Please be aware that this may have an effect if you delete the whole folder as it is used by different applications.

rm -rf /opt/"directory to macports"

and be careful if you have to use sudo, that you don't delete anything that may effect something else.

share|improve this answer
    
Are you kidding me, I'm sure most fairly advanced people have /opt/X11. –  ksh Oct 19 at 20:21
    
It would be dependent upon directory and mine is rerouted for varying reason's however, it is understood that some apps use it. It would be based on setup up, looking back at it, I should not have written that at all. I was less advanced and could have corrupted his machine. True apologies. –  meeb0 Oct 21 at 14:20
    
No worries, whenever I look back at my old questions, answers, and comments I feel like a moron. I'm just pointing this out to prevent someone from wiping their /opt when it possibly contains important stuff. –  ksh Oct 21 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.