RPM工具命令使用

[root@sky9896 /]# rpm  -q httpd  #检查httpd包是否安装

httpd-2.2.15-55.el6.centos.2.x86_64

[root@sky9896 /]# rpm -ql httpd   #查看软件安装路径

/etc/httpd

/etc/httpd/conf

/etc/httpd/conf.d

/etc/httpd/conf/httpd.conf

......

[root@sky9896 /]# rpm -qi httpd  #查看软件安装的版本信息

Name        : httpd                        Relocations: (not relocatable)

Version     : 2.2.15                            Vendor: CentOS

扫描二维码关注公众号,回复: 3032467 查看本文章

Release     : 55.el6.centos.2               Build Date: 2016年11月19日 星期六 07时49分40秒

Install Date: 2016年11月23日 星期三 14时26分52秒      Build Host: c1bm.rdu2.centos.org

Group       : System Environment/Daemons    Source RPM: httpd-2.2.15-55.el6.centos.2.src.rpm

Size        : 3137674                          License: ASL 2.0

Signature   : RSA/SHA1, 2016年11月19日 星期六 19时31分59秒, Key ID 0946fca2c105b9de

Packager    : CentOS BuildSystem <http://bugs.centos.org>

URL         : http://httpd.apache.org/

Summary     : Apache HTTP Server

Description :

The Apache HTTP Server is a powerful, efficient, and extensible

web server.

[root@sky9896 /]# rpm -qa|grep httpd  #检查httpd相关的软件是否安装

httpd-tools-2.2.15-55.el6.centos.2.x86_64

httpd-2.2.15-55.el6.centos.2.x86_64

[root@sky9896 /]# rpm -e httpd   #卸载httpd软件

[root@sky9896 /]# rpm -ivh  httpd-2.2.15-55.el6.x86_64.rpm  #安装httpd软件

[root@sky9896 /]# rpm -Uvh  httpd-2.2.15-55.el6.x86_64.rpm  #升级httpd软件

猜你喜欢

转载自blog.51cto.com/sky9896/2169698