如果系统上没有ISO文件,需要将ISO文件挂载到到本地,然后将其拷贝到本地的一个文件夹中,假设为/oracle文件夹。
操作如下图:
然后创建本地yum源如下图:
在清理缓存后,获取yum源时,报错。找不到repomd.xml文件。
这时需要使用createrepo命令创建本地yum源。
这个命令执行完后,/oracle文件夹会多一个/repodata文件夹。
然后在获取yum源的缓存,就OK了。