Merge pull request #20 from pavel-mironchik/apt-autoremove
The `--cleanup` option also uses an `apt autoremove` command.pull/22/head
commit
dece414ae3
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue