Currently - i'm checking to see if a single package exists like so:
Code:
rpm -qa --qf "%{n}-%{v}.%{arch}\n"|grep -i glibc-2.5.i386
if [ $? -eq 0 ]
then
rpm -e glibc-2.5.i386
fi
I really need to check for two packages, because I only really want to remove it if both packages exist. Is there a way to do this in a single if statement? I know I can use two nested if statements, but would really like to minimize it.