网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

rhel6.4 yum本地yum源配置

时间:2024-10-31 00:20:52

1、mount -o loop 挂载镜像盘[root@mysql5 ~]# cd /zxx_software/[root@mysql5 zxx_software]# lsiso mysql-5.6.22.tar.gz rhel-server-6.4-x86_64-dvd.iso[root@mysql5 zxx_software]# mount -o loop rhel-server-6.4-x86_64-dvd.iso iso/[root@mysql5 zxx_software]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda3 47G 6.7G 38G 16% /tmpfs 940M 72K 940M 1% /dev/shm/dev/sda1 194M 32M 153M 18% /boot/zxx_software/rhel-server-6.4-x86_64-dvd.iso 3.5G 3.5G 0 100% /zxx_software/iso[root@mysql5 zxx_software]#

rhel6.4 yum本地yum源配置

3、修改yumRepo.py配置文件cd /usr/lib/python2.6/site-packages/yum/ vi yumRepo.py 找到 remote = url + ‘/’ + relative 改为 remote = "/zxx_software/iso" + '/' + relative

rhel6.4 yum本地yum源配置
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com