Merge pull request #20 from pavel-mironchik/apt-autoremove

The `--cleanup` option also uses an `apt autoremove` command.
pull/22/head
Michele Locati 2019-05-17 09:54:55 +02:00 committed by GitHub
commit dece414ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View File

@ -24,7 +24,7 @@ RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
```
`install-php-extensions` will install all the required APT packages.
If you want to remove the APT development packages (which shouldn't be needed after the PHP extensions have been installed), you can use the `--cleanup` option (**EXPERIMENTAL**):
If you want to remove the APT development packages (which shouldn't be needed after the PHP extensions have been installed) and other no longer required packages, you can use the `--cleanup` option (**EXPERIMENTAL**):
```
install-php-extensions --cleanup gd xdebug
```

View File

@ -574,6 +574,11 @@ then
fi
fi
done
if test -n "${DO_APT_REMOVE}"
then
printf '### REMOVING NO LONGER REQUIRED PACKAGES ###\n'
DEBIAN_FRONTEND=noninteractive apt autoremove -y
fi
if test -n "${UNNEEDED_APT_PACKAGES}"
then
printf '### REMOVING UNNEEDED APT PACKAGES ###\n'