John Smith asked:
(In order to skip the are you sure warning of the disk space)
apt-get install php && echo Y
but it does not work. It still asks for the warning.
What I can do?
The man page says you should use the
-y, --yes, --assume-yes Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package or removing an essential package, occurs then apt-get will abort.
That is to say:
apt-get -y install php
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.