yum命令总结

1.查看是否安装某软件:yum list installed mysql*

tingshuai.yts@OceanBase036188 APP$ yum list installed mysql*
Loaded plugins: branch, security
Installed Packages
mysql.x86_64                                      5.1.52-1.el6_0.1                               @redhat.6u2.base.x86_64
mysql-devel.x86_64                                5.1.52-1.el6_0.1                               @redhat.6u2.base.x86_64
mysql-libs.x86_64                                 5.1.52-1.el6_0.1                               @redhat.6u2.base.x86_64
mysql-server.x86_64                               5.1.52-1.el6_0.1                               @redhat.6u2.base.x86_64

2.查看安装包:yum list mysql*

tingshuai.yts@OceanBase036188 APP$ yum list mysql*
Loaded plugins: branch, security
Installed Packages
mysql.x86_64                                         5.1.52-1.el6_0.1                            @redhat.6u2.base.x86_64
mysql-devel.x86_64                                   5.1.52-1.el6_0.1                            @redhat.6u2.base.x86_64
mysql-libs.x86_64                                    5.1.52-1.el6_0.1                            @redhat.6u2.base.x86_64
mysql-server.x86_64                                  5.1.52-1.el6_0.1                            @redhat.6u2.base.x86_64
Available Packages
MySQL-python.x86_64                                  1.2.3-0.3.c1.1.el6                          redhat.6u2.base.x86_64 
mysql++.x86_64                                       3.2.0-1.el6                                 alibase.6Server.x86_64 
mysql++-debuginfo.x86_64                             3.2.0-1.el6                                 alibase.6Server.x86_64 
mysql++-devel.x86_64                                 3.2.0-1.el6                                 alibase.6Server.x86_64 
mysql++-manuals.x86_64                               3.2.0-1.el6                                 alibase.6Server.x86_64 
mysql-bench.x86_64                                   5.1.52-1.el6_0.1                            redhat.6u2.base.x86_64 
mysql-connector-java.x86_64                          1:5.1.12-2.el6                              redhat.6u2.base.x86_64 
mysql-connector-odbc.x86_64                          5.1.5r1144-7.el6                            redhat.6u2.base.x86_64 
mysql-devel.i686                                     5.1.52-1.el6_0.1                            redhat.6u2.base.x86_64 
mysql-libs.i686                                      5.1.52-1.el6_0.1                            redhat.6u2.base.x86_64 
mysql-test.x86_64                                    5.1.52-1.el6_0.1                            redhat.6u2.base.x86_64 

 1.查看软件包的依赖信息
yum deplist libcurl

使用yum deplist来查看libcurl依赖,当然也可以使用
rpm -qf /usr/lib/libcurl.so

2.查看那些软件依赖libcurl

yum search libcurl

posted @ 2015-04-25 11:19  yts1dx  阅读(277)  评论(0编辑  收藏  举报