[root@hf-01 Packages]# cd [root@hf-01 ~]# cp -r /etc/yum.repos.d /etc/yum.repos.d.bak [root@hf-01 ~]# cd /etc/yum.repos.d [root@hf-01 yum.repos.d]# rm -rf ./* [root@hf-01 yum.repos.d]# vi dvd.repo
[root@hf-01 yum.repos.d]# yum clean all 已加載插件:fastestmirror Loading mirror speeds from cached hostfile 沒有已啓用的源。 執行 "yum repolist all" 查看您擁有的源。 您能夠用 yum-config-manager --enable <源名> 來啓用源 [root@hf-01 yum.repos.d]#
[root@hf-01 yum.repos.d]# yum list 已加載插件:fastestmirror Loading mirror speeds from cached hostfile 已安裝的軟件包 GConf2.x86_64 3.2.6-8.el7 @base ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @anaconda NetworkManager.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 @anaconda NetworkManager-glib.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 @anaconda NetworkManager-tui.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 @anaconda OpenEXR-libs.x86_64 1.7.1-7.el7 @base 只截取了一小段 Availsble Packages //能夠安裝的包 389-ds-base.x86_64 1.3.5.10-11.el7 dvd
最右側以 @ 開頭的,表示已經安裝過的rpm包
yum本地倉庫,方便使用本地的光盤做爲他的倉庫,作爲它的依賴的包git