yum使用的一些问题

1. 软件安装: yum -y  install xxx  , -y表示安装过程中全部选yes

2. 如果出现database disk image is malformed则先执行 yum clean dbcache

3. 安装epel时出现Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

     则编辑/etc/yum.repos.d/epel.repo, 去掉baseurl的注释, 给mirrorlist加上注释

4. 安装rz sz命令: yum -y install lrzsz

5. 安装gcc命令:

    yum -y install gcc

    yum -y instal gcc-c++

6. yum安装pcre和zlib失败了, 只能用传统的方式安装

     wget http://zlib.net/zlib-1.2.8.tar.gz

     tar zxvf ...

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

     ./configure

     make

     make install

7.查找已安装的软件

   yum info installed | grep jdk

   另一个查找已安装软件的命令: rpm -qa | grep jdk

8.卸载软件

   yum remove jdk
--------------------- 
作者:yf.z 
来源:CSDN 
原文:https://blog.csdn.net/zyf_balance/article/details/46741025 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/mynamepg/article/details/83783762