yum源搭建

时间:2023-03-10 05:03:07
yum源搭建

1:vim /etc/yum.repo.d/ll.repo

[local]   这里不能有空格,如[local yum]

name=local

baseurl=file:///yum

gpgcheck=0

enabled=1

2:mount /mnt/hgfs/software/Centos...  /yum -o loop   software为共享目录

3:yum clean all

4:yum makecache

安装完VMware tools后,mount /mnt/hgfs/共享目录的时候,找不到共享的目录

1:vmware-hgfsclient 查看共享的目录

yum源搭建

2:mount -t vmhgfs .host:/共享的目录 /mnt/hgfs

yum源搭建

3:报错

安装open-vm-dkms  但是只要Ubuntu系统可以用sudo apt-get install open-vm-dkms

Centos 暂时的办法只有重启系统,再重新来一次,因为yum还不能用