Script that checks whether software is installed on Ubuntu. If you have installed it continues with the command sequence. if you do not ask if the user wants to install anyway
Example:
if (programa1=Instalado, programa2=instalado); then
continua script;
else
echo "Voce precisa do programa1 e ele não está instalado, deseja continuar
assim mesmo?"
"sim"
continua script
"não"
Sai do script
I know that for DEB you can do this, used the control but would like to use a script.