rpm -ql httpd #[搜索rpm包]--list所有文件安装目录
rpm -q mysql //查询程序是否安装
关于rpm详细用法
参考
http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/10/08/2203153.html