Linux CentOS7 安裝源更新-IUS源
前言全局說明
IUS源,是一個社區(qū)維護的軟件源,全名是Inline with Upstream Stable,官網(wǎng)為https://ius.io/
通過github組織社區(qū)https://github.com/iuscommunity
IUS被git幫助文檔推薦作為centos等系統(tǒng)
安裝新版本git的第三方源:https://git-scm.com/download/linux
安裝IUS是直接安裝軟件包,并不像SCL還帶了虛擬環(huán)境的概念。所以使用起來相對簡單。
一、說明
1.1 環(huán)境:
CentOS-7-x86_64-DVD-2009
二、源
2.1 IUS直接訪問速度不是很理想,可以設置國內鏡像:
IUS Vault:https://vault.ius.io
IUS 站點根目錄為:https://dl.iuscommunity.org/pub/ius/
對應的阿里云鏡像為:https://mirrors.aliyun.com/ius/
鏡像列表:https://mirrors.iuscommunity.org/mirrors
清華大學鏡像:https://mirrors.tuna.tsinghua.edu.cn/ius/ (停更)
同濟大學鏡像:https://mirrors.tongji.edu.cn/ius/
2.2 其他軟件源:
http://www.rzrgm.cn/mawanglin2008/p/3532247.html
2.3 中國高校教育網(wǎng)及科技網(wǎng)開源鏡像列表
https://lug.org.cn/doku.php?id=china-edu-open-source-mirrors
三、下載源配置文件
3.1 aliyun源
sudo curl -o /etc/yum.repos.d/ius-archive-7.repo https://mirrors.aliyun.com/ius/ius-archive-7.repo
或
sudo wget -O /etc/yum.repos.d/ius-archive-7.repo https://mirrors.aliyun.com/ius/ius-archive-7.repo
四、替換源
4.1 命令替換 aliyun 源
編輯 /etc/yum.repos.d/ius.repo,將官方網(wǎng)址修改為鏡像地址
sed -i "s|repo.ius.io|mirrors.aliyun.com/ius|g" /etc/yum.repos.d/ius.repo
4.2 repo文件內容:
[ius]
name = IUS for Enterprise Linux 7 - $basearch
baseurl = https://mirrors.aliyun.com/ius/7/$basearch/
enabled = 1
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
[ius-debuginfo]
name = IUS for Enterprise Linux 7 - $basearch - Debug
baseurl = https://mirrors.aliyun.com/ius/7/$basearch/debug/
enabled = 0
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
[ius-source]
name = IUS for Enterprise Linux 7 - Source
baseurl = https://mirrors.aliyun.com/ius/7/src/
enabled = 0
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
五、rpm 方式安裝
5.1 阿里云下載
wget https://mirrors.aliyun.com/ius/ius-release-el7.rpm
5.2 阿里云安裝
rpm -i ius-release-el7.rpm
六、更新 yum 緩存
sudo yum clean all
sudo yum makecache
免責聲明:本號所涉及內容僅供安全研究與教學使用,如出現(xiàn)其他風險,后果自負。
參考、來源:
https://cn.bing.com/search?pglt=43&q=centos7升級git&cvid=c44f5a0e14654734b18545d1ef3abb95&gs_lcrp=EgRlZGdlKgYIABBFGDkyBggAEEUYOTIGCAEQABhAMgYIAhAAGEAyBggDEAAYQDIGCAQQABhAMgYIBRAAGEAyBggGEAAYQDIGCAcQABhAMgYICBAAGEDSAQkxMTM3OGowajGoAgCwAgA&FORM=ANNTA1&PC=U531
http://www.rzrgm.cn/wswind/p/10729610.html
http://www.rzrgm.cn/f-ck-need-u/p/8494992.html
https://blog.csdn.net/omaidb/article/details/126462236
作者:悟透
原文鏈接:http://www.rzrgm.cn/wutou/p/19170785
來源:博客園
著作權歸原作者所有。商業(yè)轉載請聯(lián)系作者獲得授權,非商業(yè)轉載請注明出處。
浙公網(wǎng)安備 33010602011771號