Is it safe to rm -rf /var/macports?

1

So its all in the title,

I've installed a cpuminer from Sourceforge and the file was corrupted. Now when I look for the name of the file I found something in /var/macpports.

Since I'm not using any macports installation, can I run rm -rf /var/macports or is there something I should know about this folder ?

Baldráni

Posted 2016-08-04T10:19:41.117

Reputation: 123

Answers

2

If you are not using macports anymore, it is safe for you to delete the /var/macports

It was supposed to contain installer packages that you install from macports

Refer to uninstalling macports & Cleanup my macports installation

pun

Posted 2016-08-04T10:19:41.117

Reputation: 5 311

4

Read the full article here.

These are for MacPorts runtime data. The sub folders are:

build

It used during the building of ports. It normally contains empty folders.

distfiles

The downloaded sources of each build port.

packages

Contains the binary archives of each installed port.

registry

Contains detailed information about each installed ports.

software

Contains the archive of installed software in compressed format.

sources

Contains the Macport sources in different subfolders in different format.

Now removing/uninstalling MacPorts can be a drastic step, and depending on the issue you are experiencing, you may not need to do so. Please ask on the macports-users mailing list first, if you're unsure.

Animesh Patra

Posted 2016-08-04T10:19:41.117

Reputation: 2 188

Asking for answers to be accepted are frowned upon. They add unnecessary noise to the comment section. You should consider improving this answer, you mention a link, answers which contain a link should reference the material from the link and quote all relevant information. If there is no relevant information to quote (i.e. its a download link) then specify the fact, links which are not quoted really shouldn't be provided though. – Ramhound – 2016-08-06T09:27:00.263