Doubly Active PHP

Joshua Root jmr at macports.org
Mon Sep 9 15:10:53 UTC 2024


> When I type ‘port installed’, I notice I have 2 php8* ports (php82 @8.2.23_0 and php83 @8.3.11_0) and both are active.
> Here is the list of php ports I have:
>    php82 @8.2.23_0+libedit (active)
>    php82-gd @8.2.23_0 (active)
>    php82-mbstring @8.2.23_0 (active)
>    php82-mcrypt @1.0.7_0 (active)
>    php82-mysql @8.2.23_0+mysqlnd (active)
>    php82-openssl @8.2.23_0 (active)
>    php82-zip @1.22.3_0 (active)
>
>    php83 @8.3.11_0+libedit (active)
>    php83-apache2handler @8.3.11_0 (active)
>    php83-curl @8.3.11_0 (active)
>    php83-exif @8.3.11_0 (active)
>    php83-iconv @8.3.11_0 (active)
>    php83-imagick @3.7.0_1 (active)
>    php83-mbstring @8.3.11_0 (active)
>    php83-mysql @8.3.11_0+mysqlnd (active)
>    php83-pspell @8.3.11_0 (active)
>
>    php_select @1.0_1 (active)
>    phpmyadmin @5.2.1_0+php82 (active)
>
> Some of the ports are duplicated e.g. php8*-mysql, others are not.
>
> Is the above list to be expected?
> Why do I have 2 php8* ports?
> Should I do anything at all?

There are really only two reasons a port is installed:

1. Someone ran 'port install' to install that specific port, or

2. Some other port depends on it.

You can check whether any other installed port needs a given port with 
'port dependents', e.g. 'port dependents php82-gd'. If a port has no 
dependents and you don't need it for any other reason, it's fine to 
uninstall it. See 
<https://guide.macports.org/#using.common-tasks.finddepending> for more 
info.

- Josh



More information about the macports-users mailing list