关于linux:LinuxCentOS7中升级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.rpm

3.将[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.org

4.更新curl

yum update curl --enablerepo=city-fan.org -y

5.装置实现,查看版本

curl --version

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理