Linux學習-通過光碟配置本地yum源
本例通過虛擬機器Centos6系統完成
- 先確認光碟機已存在光碟,並且裝置的狀態是已連線。
- 掛載光碟到本地目錄
#掛載光碟到本地目錄
[root@localhost ~]# mount /dev/sr0 /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
- 進入到/etc/yum.repos.d目錄,配置repo檔案
[root@localhost mnt]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# mkdir bak
[root@localhost yum.repos.d]# mv *.repo bak
[root@localhost yum.repos.d]# vi local.repo
#local.repo檔案內容
[CentOS-dvd]
name=Centos $releasever - DVD
baseurl=file:///mnt/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/REM-GPG-KEY-CentOS-6
#複製REM-GPG-KEY-CentOS-6檔案到/etc/pki/rpm-gpg/目錄
[root@localhost mnt]# cp RPM-GPG-KEY-CentOS-6 /etc/pki/rpm-gpg/REM-GPG-KEY-CentOS-6
[root@localhost yum.repos.d]# yum makecache
- 安裝軟體測試
[root@localhost mnt]# yum install -y man
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package man.x86_64 0:1.6f-39.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
man x86_64 1.6f-39.el6 CentOS-dvd 265 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 265 k
Installed size: 389 k
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/REM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
From : /etc/pki/rpm-gpg/REM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : man-1.6f-39.el6.x86_64 1/1
Verifying : man-1.6f-39.el6.x86_64 1/1
Installed:
man.x86_64 0:1.6f-39.el6
Complete!
- 軟體安裝成功,yum源配置成功
相關文章
- Linux 本地yum源配置Linux
- Linux下配置本地yum源Linux
- Linux系統配置本地yum源Linux
- linux配置本地ISO的yum源Linux
- 不需上網,本地光碟yum源的搭建
- 小凡帶你搭建本地的光碟yum源
- redhat6.6配置光碟為yum源Redhat
- Linux yum 本地源Linux
- Linux本地yum配置Linux
- yum本地源及網路源配置
- linux配置本地yum源 centos7.9為例LinuxCentOS
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- 搭建本地yum源,使用安裝光碟的rpm作為yum源的檔案
- RedHat8 配置本地yum源Redhat
- linux配置本地yum安裝--FTP yumLinuxFTP
- Linux系統本地yum源環境配置記錄Linux
- 【Linux】Linux軟體安裝管理2 使用安裝光碟配置本地yum倉庫Linux
- linux 配置yum 源Linux
- ▲▲▲▲▲▲▲▲▲▲▲yum源的配置(本地和ftp)▲▲▲▲▲▲▲▲▲▲▲▲▲vFTP
- RedHat Linux 本地Yum源安裝RedhatLinux
- linux本地關盤做yum源Linux
- linux yum源配置方法Linux
- 本地yum源搭建
- 本地搭建yum源
- 【Linux】Linux軟體安裝管理5 掛載本地iso光碟映象、配置yum軟體倉庫Linux
- 【轉】linux上建立本地yum源Linux
- centos同步yum源到本地,建立本地網路yum源CentOS
- Linux yum源配置以及yum命令講解Linux
- linux 5&6&7 本地yum配置Linux
- 配置本地yum源及安裝必要的包
- CentOS使用iso映象檔案配置本地yum源CentOS
- 12C安裝及本地YUM源配置
- RHEL6.5使用安裝光碟搭建本地YUM
- Linux 網路yum源配置Linux
- Oracle Enterprise Linux 6.0配置本地yumOracleLinux
- 配置yum源
- 在Linux作業系統上使用光碟搭建yum源Linux作業系統
- rhel 5.x 將YUM指定為光碟--yum配置格式示例