How to best clean old Perl installations directories

Arno Hautala arno at alum.wpi.edu
Mon Jul 2 07:43:15 PDT 2012


On Mon, Jul 2, 2012 at 9:54 AM, Rodolfo Aramayo <raramayo at gmail.com> wrote:
>
> /opt/local/lib/perl5/
> I have the following directories:
>
> [...]
>
> Why where the Perl 5.12 directories not removed?
> Is there a safe way or proper way to removed these directories?

Are those directories empty?
Do you still need any of the p5.12 ports? They wouldn't have been
automatically removed by just installing the 5.14 versions.

You should be able to see what ports are installed with:
port installed p5.12-*

You could then remove all of those, except for any that are deps of
other installed ports with:
port -p uninstall p5.12

The '-p' should keep the uninstall going even if there are some that
can't be removed.

In general, you should only interact with MacPorts installed files
through the port command. It's typically best to not manually cleanup
the opt directory.

-- 
arno  s  hautala    /-|   arno at alum.wpi.edu

pgp b2c9d448


More information about the macports-users mailing list