#!/bin/bash TEXTDOMAIN=la-tools TEXTDOMAINDIR=./ name="Anki" if dpkg -l | grep anki | grep ii then echo $"$name is already installed" zenity --info --title $"Information" --text $"$name is already installed" exit fi wget -O /tmp/anki.deb http://ankisrs.net/download/mirror/anki-2.0.28.deb apt-get install mplayer -y if dpkg -i /tmp/anki.deb -y then zenity --info --title $"Success" --text $"$name successfully installed" else zenity --error --title $"Error" --text $"An error occurred while installing $name" fi rm /tmp/anki.deb