Centos

如何使用 Yum 在 CentOS 上安裝 alpine?

  • July 27, 2018

如何更新/刷新或添加 repos 到 Yum 以安裝 alpine 郵件客戶端?

thufir@arrakis:~ $ 
thufir@arrakis:~ $ ll /etc/yum.repos.d/
total 20
-rw-r--r-- 1 root root 2139 Sep 28  2013 CentOS-Base.repo
-rw-r--r-- 1 root root  718 May 31  2013 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  630 May 31  2013 CentOS-Media.repo
-rw-r--r-- 1 root root 3664 May 31  2013 CentOS-Vault.repo
-rw-r--r-- 1 root root  293 May 31  2013 schmooze.repo
thufir@arrakis:~ $ 
thufir@arrakis:~ $ cat /etc/redhat-release 
CentOS release 6.4 (Final)
thufir@arrakis:~ $ 
thufir@arrakis:~ $ yum search alpine
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* base: centos.eecs.wsu.edu
* extras: mirror.spro.net
* updates: mirror.hostduplex.com
schmooze-commercial                                                                                                          171/171
Warning: No matches found for: alpine
No Matches found
thufir@arrakis:~ $ 

做:

$ sudo yum install epel-release
$ sudo yum install alpine

第一個將 EPEL 添加到您的儲存庫列表中,並且 EPEL 提供了 alpine。

**注意:**還要確保在以下位置啟用了 repo /etc/yum.repos.d/epel.repo

enabled=1

或者從命令行:

$ sudo yum-config-manager --enable epel

引用自:https://unix.stackexchange.com/questions/336877