1 2 3 4 5 6 7 8 9
#!/bin/bash # $1 packagename if pacman -Qi $1 &>/dev/null then exit 1 else exit 0 fi