1. 程式人生 > 其它 >使用ISO檔案搭建本地yum源

使用ISO檔案搭建本地yum源

技術標籤:Linux環境搭建yumlinux

進入 cd /etc/yum.repos.d
顯示目錄下內容 ls
連線檔案並列印到標準輸出裝置上 cat ns7-adv.repo

新建檔案 touch dm.repo
開啟檔案 vim dm.repo
插入 i

[dm]
name=dm
baseurl=file:///mnt
gpgcheck=0
enabled=1

退出 esc
儲存 :wq

載入USB模組 modprobe usb-storage
U盤的裝置 fdisk -l

掛載Linux系統外的檔案 mount /dev/sdd /mnt

進入 cd /etc/yum.repos.d
刪除 rm -rf ns7-adv.repo

列出所有可安裝的軟體清單 yum list all

網路配置 cd /etc/sysconfig/network-scripts/