linux yum源配置方法
yum簡介
yum = Yellow dog Updater, Modified
主要功能是更方便的新增/刪除/更新RPM包.
它能自動解決包的倚賴性問題.
它能便於管理大量系統的更新問題
當前linux版本 rhel7.0
前提
mount DVD光碟到/mnt 因為配置時候路徑名裡面不能有空格,否則不能識別
[root@LiuZhen mnt]# mount /dev/sr0 /mnt
在目錄/etc/yum.repos.d/建立檔案 檔名.repo
也可以VI直接編輯
[root@LiuZhen mnt]# cat> /etc/yum.repos.d/dvd.repo<< EOF
> [testyum]
> name=dvd
> baseurl=
> enable=1
> EOF
編輯完成,檢視一下
[root@LiuZhen mnt]# cat /etc/yum.repos.d/dvd.repo
[testyum]
name=dvd
baseurl=
enable=1
匯入release相關檔案
[root@LiuZhen mnt]# rpm --import RPM-GPG-KEY-redhat-release
以上已經配置完成,安裝dovecot進行測試
安裝dovecot包檔案
[root@LiuZhen mnt]# yum -y install dovecot
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package dovecot.x86_64 1:2.2.10-4.el7 will be installed
--> Processing Dependency: libclucene-core.so.1()(64bit) for package: 1:dovecot-2.2.10-4.el7.x86_64
--> Processing Dependency: libclucene-shared.so.1()(64bit) for package: 1:dovecot-2.2.10-4.el7.x86_64
--> Running transaction check
---> Package clucene-core.x86_64 0:2.3.3.4-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
dovecot x86_64 1:2.2.10-4.el7 testyum 3.2 M
Installing for dependencies:
clucene-core x86_64 2.3.3.4-11.el7 testyum 528 k
Transaction Summary
==================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 3.7 M
Installed size: 12 M
Downloading packages:
------------------------------------------------------------------------------------------------------------------
Total 59 MB/s | 3.7 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : clucene-core-2.3.3.4-11.el7.x86_64 1/2
Installing : 1:dovecot-2.2.10-4.el7.x86_64 2/2
testyum/productid | 1.6 kB 00:00:00
Verifying : 1:dovecot-2.2.10-4.el7.x86_64 1/2
Verifying : clucene-core-2.3.3.4-11.el7.x86_64 2/2
Installed:
dovecot.x86_64 1:2.2.10-4.el7
Dependency Installed:
clucene-core.x86_64 0:2.3.3.4-11.el7
Complete!
Public key for dovecot-2.2.10-4.el7.x86_64.rpm is not installed
檢視包安裝結果
[root@LiuZhen ~]# rpm -qa dovecot
dovecot-2.2.10-4.el7.x86_64
刪除包操作
[root@LiuZhen mnt]# yum -y remove dovecot
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package dovecot.x86_64 1:2.2.10-4.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Removing:
dovecot x86_64 1:2.2.10-4.el7 @testyum 9.7 M
Transaction Summary
==================================================================================================================
Remove 1 Package
Installed size: 9.7 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : 1:dovecot-2.2.10-4.el7.x86_64 1/1
Verifying : 1:dovecot-2.2.10-4.el7.x86_64 1/1
Removed:
dovecot.x86_64 1:2.2.10-4.el7
Complete!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27771627/viewspace-1223153/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux yum源配置以及yum命令講解Linux
- Linux系統配置本地yum源Linux
- linux配置本地ISO的yum源Linux
- yum本地源和外網源的配置方法
- yum 配置源
- 配置yum源
- CentOS 配置yum源CentOS
- yum源配置大全
- linux配置本地yum源 centos7.9為例LinuxCentOS
- Linux學習-通過光碟配置本地yum源Linux
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- linux yum 源部署Linux
- CentOS6.9配置yum源CentOS
- oel 7 本地yum源配置
- Centos 7 常用yum源配置CentOS
- Centos系統配置yum源CentOS
- CentOS6.8配置yum源CentOS
- centos7.5配置yum源CentOS
- RHEL7 yum源配置
- CentOS7--配置yum源CentOS
- Linux CentOS 7 更新yum源LinuxCentOS
- 小知識:CentOS配置yum源/解決yum源失效問題CentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- redhat 5.5 配置網路yum源Redhat
- centos-7.6配置本地yum源CentOS
- CentOS7 配置 163 yum 源CentOS
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- 02_2__配置本地YUM源
- RedHat8 配置本地yum源Redhat
- linux6 聯網yum 源Linux
- linux CentOS更換 ali YUM源LinuxCentOS
- CentOS7配置yum國內源CentOS
- CentOS8配置阿里雲YUM源CentOS阿里
- Centos8.x yum 源配置 解決 yum 不可用CentOS
- linux 5&6&7 本地yum配置Linux
- Vmware配置Centos7配置yum源(新手小白福音)CentOS
- Linux系統CentOS6 7 8更換阿里yum源的方法LinuxCentOS阿里
- postgresql的yum安裝及配置方法SQL
- CentOS7 yum源修改為阿里,配置阿里epel源CentOS阿里