使用 yum 安装最新版 cURL

一般的 Linux 系统都自带了 cURL,但是版本都不是最新的,有的时候我们可能要用最新的版本,但是使用 yum update 的时候又显示没有更新。今天给大家介绍一个 yum repo,可以更新到最新的 cURL 版本。

1、创建一个 repo 文件:

vi /etc/yum.repos.d/city-fan.repo

2、把以下内容复制到找个 repo 文件中:

[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0

3、运行 yum 更新:

yum clean all
yum update curl

使用 yum 安装最新的 cURL 版本的方法

可以使用 curl -V 查看一下版本信息。使用 yum 管理就是比较方便。这个方法适合 RHEL 和 CentOS 的 Linux 版本。

发表回复

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>