yum源模版
vi /etc/yum.repos.d/xxx.repo
[rhel-server]
name=serverbaseurl=file:///media/disk/Serverenabled=1gpgcheck=0[rhel-cluster]
name=clusterbaseurl=file:///media/disk/Clusterenabled=1gpgcheck=0[rhel-clusterstorage]
name=clusterstoragebaseurl=file:///media/disk/ClusterStorageenabled=1
提示:在 /etc/yum.repos.d/ 下如发现没有其他的 .repo文件应将其删除
以下是一些简单的yum命令:
yum clean allyum listyum install ***yum search ***yum remove ***yum grouplistyum groupinstall ***配置网络yum源
[rhel-server]name=serverbaseurl=ftp://192.168.1.1/pub/disk/Serverenabled=1gpgcheck=0~
yum更新后”/usr/bin/yum”, line 29, in ?的解决办法
#yum clean all
#rm -f /var/lib/rpm/__db*#rpm –rebuilddb#yum update