RHEL有时候使用自定义的YUM源是很方便的事情. yum install createrepo createrepo /your/repo/directory/ 不过由于粗心,本人在使用时遇到很郁闷的坑,错误如下: [root@localhost rpms]# yum install openssl Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Ha
RedHat系统 1.挂载镜像光盘[root@localhost ~]# mount /dev/sr0 /media/cdrom/ 2.创建本地yum源仓库[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]# vim yum.repo[RedHat_server]name=RedHat repobaseurl=file:///media/cdromenabled=1gpgcheck=0gpgkey=file:/
CentOS系统 1.挂载镜像光盘[root@localhost ~]# mount /dev/sr0 /media/cdrom/ 2.创建本地yum源仓库[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]# vim yum.repo[local_server]name=CentOS repobaseurl=file:///media/cdromenabled=1gpgcheck=0#gpgkey=file:/