seebise 发表于 2013-03-07 11:52

RHEL5 配置本地光盤YUM

丟入系統光盤

mount /dev/cdrom /mnt

如果ISO文件則
mount -o loop 9660 /pathtoyouriso    /mnt
vi /etc/yum.repos.d/aeon.repo


name=Server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=


name=Cluster
baseurl=file:///mnt/Cluster
enabled=1
gpgcheck=0
gpgkey=


name=ClusterStorage
baseurl=file:///mnt/ClusterStorage
enabled=1
gpgcheck=0
gpgkey=


name=VT
baseurl=file:///mnt/VT
enabled=1
gpgcheck=0
gpgkey=



#You can set group_package_types to optional in /etc/yum.conf. Refer to man yum.conf for details.

vi /etc/yum.conf

group_package_types=mandatory,default,optional



yum grouplist


例子:

yum groupinstall 'X Window System'

yum groupinstall -y 'Clustering' 'Cluster Storage'

seebise 发表于 2013-03-07 15:40

本帖最后由 seebise 于 2013-03-07 15:43 编辑

RHEL6


vi /etc/yum.repos.d/local.repo


name=Server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0

name=HighAvailability
baseurl=file:///mnt/HighAvailability
enabled=1
gpgcheck=0

name=LoadBalancer
baseurl=file:///mnt/LoadBalancer
enabled=1
gpgcheck=0

name=ResilientStorage
baseurl=file:///mnt/ResilientStorage
enabled=1
gpgcheck=0

name=ScalableFileSystem
baseurl=file:///mnt/ScalableFileSystem
enabled=1
gpgcheck=0


#You can set group_package_types to optional in /etc/yum.conf. Refer to man yum.conf for details.

vi /etc/yum.conf

group_package_types=mandatory,default,optional


例子:
yum install 'GNOME Desktop Environment'

franktys 发表于 2014-05-11 17:29

http://blog.sina.com.cn/u/2961538482

http://blog.sina.com.cn/s/blog_b0857db20101jaj0.html

http://blog.sina.com.cn/s/blog_b0857db20101jaij.html

http://blog.sina.com.cn/s/blog_b0857db20101jaig.html

http://blog.sina.com.cn/s/blog_b0857db20101jaif.html

http://blog.sina.com.cn/s/blog_b0857db20101jaic.html

http://blog.sina.com.cn/s/blog_b0857db20101jaia.html

http://blog.sina.com.cn/s/blog_b0857db20101jai9.html

http://blog.sina.com.cn/s/blog_b0857db20101jahb.html

http://blog.sina.com.cn/s/blog_b0857db20101jah2.html

http://blog.sina.com.cn/s/blog_b0857db20101jagm.html

http://blog.sina.com.cn/s/blog_b0857db20101jagh.html

http://blog.sina.com.cn/s/blog_b0857db20101jag9.html

http://blog.sina.com.cn/s/blog_b0857db20101jag5.html




页: [1]
查看完整版本: RHEL5 配置本地光盤YUM