#!/bin/bash # $1 packagename if pacman -Qi $1 &>/dev/null then exit 1 else exit 0 fi