ubuntu – request for automatic installation of the package (apt)

When you enter a command (ie. svn) and it is not installed, you receive the following message:

The command & # 39; svn & # 39; is not installed but can be installed with:

sudo apt install subversion

Is there a way to add an auto-install feature at the end of the prompt, d. H.

The command & # 39; svn & # 39; is not installed but can be installed with:

sudo apt install subversion

Do you want to install it now? [Y/n]