Simple deb-package installer

Package yad must be installed. Note! Dpkg does not install dependecies, so some packages are safer install via command line using command sudo apt install ./packagename_here.deb.

The script:

#!/bin/bash
yad --width=400 --center --buttons-layout=center --borders=5 --text-align=center --title="INFO" --text="Select deb-package for installation" --button=gtk-ok:1 --center
FILE=`yad --file --width=1000`
if [ $? = 0 ];
then
yad --center --width=500 --height=100 --text-align=center --text="Your selection is: $FILE"
x-terminal-emulator -e /bin/bash -c "sudo dpkg -i $FILE || x-terminal-emulator -e sudo apt-get -f install" || \
echo "#################"
else exit 0
fi

#!/bin/bash
if pidof bash | grep [0-9] > /dev/null
then
yad --width=400 --center --buttons-layout=center --borders=5 --text-align=center --title="INFO" --text="READY" --button=gtk-ok:1 --center
fi

deb-installer.zip