rhel6.4 yum本地yum源配置

2025-05-06 15:11:20

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源配置
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢