Linux-CentOS7中升级Curl
文章目录
在安装Homebrew时,提示curl版本过低,无法安装。
使用yum update也无法升级curl,经过查找资料决定使用第三方。
1.首先安装epel-release(其他找不到的rpm包也可以去下载)
yum -y install epel-release 2.安装curl的rpm包
wget http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-2-2.rhel7.noarch.rpm
rpm -ivh city-fan.org-release-2-2.rhel7.noarch.rpm3.将[city-fan.org]的enable值修改为1
vim /etc/yum.repos.d/city-fan.org.repo[city-fan.org]
name=city-fan.org repository for Red Hat Enterprise Linux (and clones) $releasever ($basearch)
#baseurl=http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch
mirrorlist=http://mirror.city-fan.org/ftp/contrib/yum-repo/mirrorlist-rhel$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org4.更新curl
yum update curl --enablerepo=city-fan.org -y5.安装完成,检查版本
curl --version
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论