Hi, Why not just type: (rpm -q postfix > /dev/null && rpm -e postfix && echo "REMOVED") rpm@xxxxxxxxxxxxxxxxx wrote: > HI, > > I have problem when i remove some package from my redhat > linux PC that not installed it give the error > > [root@devendra > ~]# rpm -e postfix > error: package postfix is not installed > > i also try this :- > > [root@devendra ~]# rpm -e postfix > 2>&1 > /dev/null > error: package postfix is not installed > > i want that the commnad rpm -e don't give any error. > if > package installed or not . how i do this > > Regards > Devendra > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/ _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list