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