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 ...
./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
版权声明:本文为博主原创文章,转载请附上博文链接!