Linux下YUM命令
1、列出所有可以安裝的軟件包 www.2cto.com
[root@localhost ~]# yum list
2、查詢軟件包
httpd [root@localhost ~]# yum search httpd
3、列出軟件包信息
httpd.i686 [root@localhost ~]# yum info httpd
4、列出所有軟件包信息 www.2cto.com
[root@localhost ~]# yum info
5、安裝軟件包
httpd.i686 [root@localhost ~]# yum install httpd
6、列出已經安裝的軟件包
[root@localhost ~]# yum list installed
7、列出可更新的軟件包
[root@localhost ~]# yum list updates
8、清除yum緩存目錄下的所有數據
[root@localhost ~]# yum clean all
9、更新軟件包
[root@localhost ~]# yum update httpd
10、卸載軟件包
httpd [root@localhost ~]# yum remove httpd
11、清除yum緩存目錄[/var/cache/yum]下的軟件包
[root@localhost ~]# yum clean packages