1. which httpd
/usr/bin/httpd
2.rpm -q -f /usr/bin/httpd
name
3.rpm -e name
如果有依赖:
rpm -e --allmatches name