制作源¶ yum 源¶ 1 2 3 4 5 6 7 8 9 10 11 12# 初始化 yum 源 createrepo /opt/rpms # 更新 yum 源 createrepo --update /opt/rpms # repo 文件 [customrepo] name=CustomRepository baseurl=file:///opt/rpms enabled=1 gpgcheck=0 参考文献¶ How to Create Your Own Repositories for Packages Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7 How To Install createrepo on Ubuntu 18.04 作者: aisuhua