CentOS 7のデフォルトでインストールされるcurlは7.29.0です。
1 2 3 4 |
# curl -V curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets |
HTTP2プロトコルを試したくてcurlのアップデートを探したらcity-fan repositoryにありました。
city-fan.org yum repositories
http://www.city-fan.org/ftp/contrib/yum-repo/
但しこのrepositoryはCentOS wikiの説明を読むと使うなとあります(^^;
Available Repositories for CentOS
https://wiki.centos.org/AdditionalResources/Repositories
City-Fan – Supplies repos for various CentOS/RHEL versions and all appear to have no regard for overwriting packages from base/updates without warning. Enabled by default, contains lots of packages that overwrite base packages. That includes various system libraries including libcurl and will break yum as soon as it’s installed! Do not use.
AdditionalResources/Repositories (最終更新日時 2017-06-25 12:55:08 更新者 TimothyLee)
でも本家curlサイトではcity-fanにリンクが貼られているんですよね。
Releases and Downloads
https://curl.haxx.se/download.html
Redhat RHEL7 x86_64 RPM 7.55.1 binary SSL SSH Paul Howarth
https://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/
今回は仮想マシンの検証環境なので躊躇なくインストールしてみました(^^
- Install city-fan repository
- Install epel-release repository
- Update curl
デフォルトで有効になっています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# rpm -ivh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel7.noarch.rpm Retrieving http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel7.noarch.rpm warning: /var/tmp/rpm-tmp.oBerKB: Header V3 DSA/SHA1 Signature, key ID b56a8bac: NOKEY Preparing... ################################# [100%] Updating / installing... 1:city-fan.org-release-1-13.rhel7 ################################# [100%] # cat /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 [city-fan.org-debuginfo] name=city-fan.org debuginfo repository for Red Hat Enterprise Linux (and clones) $releasever ($basearch) #baseurl=http://www.city-fan.org/ftp/contrib-debug/rhel$releasever/$basearch mirrorlist=http://www.city-fan.org/ftp/contrib-debug/mirrorlist-rhel$releasever enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org [city-fan.org-source] name=city-fan.org source repository for Red Hat Enterprise Linux (and clones) $releasever #baseurl=http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/source mirrorlist=http://mirror.city-fan.org/ftp/contrib/yum-repo/source-mirrorlist-rhel$releasever enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org |
1 |
# yum -y install epel-release |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# yum info curl Installed Packages Name : curl Arch : x86_64 Version : 7.29.0 Release : 42.el7 Size : 527 k Repo : installed From repo : base Summary : A utility for getting files from remote servers (FTP, HTTP, and others) URL : http://curl.haxx.se/ License : MIT Description : curl is a command line tool for transferring data with URL syntax, supporting : FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, : SMTP, POP3 and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP : uploading, HTTP form based upload, proxies, cookies, user+password : authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer : resume, proxy tunneling and a busload of other useful tricks. Available Packages Name : curl Arch : x86_64 Version : 7.55.1 Release : 5.0.cf.rhel7 Size : 475 k Repo : city-fan.org/7 Summary : Utility for getting files from remote servers (FTP, HTTP, and others) URL : https://curl.haxx.se/ License : MIT Description : curl is a command line tool for transferring data with URL syntax, supporting : FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, : SMTP, POP3 and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP : uploading, HTTP form based upload, proxies, cookies, user+password : authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer : resume, proxy tunneling and a busload of other useful tricks. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# yum update curl Resolving Dependencies --> Running transaction check ---> Package curl.x86_64 0:7.29.0-42.el7 will be updated ---> Package curl.x86_64 0:7.55.1-5.0.cf.rhel7 will be an update --> Processing Dependency: libcurl(x86-64) >= 7.55.1-5.0.cf.rhel7 for package: curl-7.55.1-5.0.cf.rhel7.x86_64 --> Processing Dependency: libmetalink.so.3()(64bit) for package: curl-7.55.1-5.0.cf.rhel7.x86_64 --> Running transaction check ---> Package libcurl.x86_64 0:7.29.0-42.el7 will be updated ---> Package libcurl.x86_64 0:7.55.1-5.0.cf.rhel7 will be an update --> Processing Dependency: libssh2(x86-64) >= 1.8.0 for package: libcurl-7.55.1-5.0.cf.rhel7.x86_64 --> Processing Dependency: libpsl.so.0()(64bit) for package: libcurl-7.55.1-5.0.cf.rhel7.x86_64 ---> Package libmetalink.x86_64 0:0.1.3-4.rhel7 will be installed --> Running transaction check ---> Package libpsl.x86_64 0:0.7.0-1.el7 will be installed --> Processing Dependency: libicuuc.so.50()(64bit) for package: libpsl-0.7.0-1.el7.x86_64 --> Processing Dependency: libicudata.so.50()(64bit) for package: libpsl-0.7.0-1.el7.x86_64 ---> Package libssh2.x86_64 0:1.4.3-10.el7_2.1 will be updated ---> Package libssh2.x86_64 0:1.8.0-5.0.cf.rhel7 will be an update --> Running transaction check ---> Package libicu.x86_64 0:50.1.2-15.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================== Package Arch Version Repository Size =========================================================================================================== Updating: curl x86_64 7.55.1-5.0.cf.rhel7 city-fan.org 475 k Installing for dependencies: libicu x86_64 50.1.2-15.el7 base 6.9 M libmetalink x86_64 0.1.3-4.rhel7 city-fan.org 25 k libpsl x86_64 0.7.0-1.el7 city-fan.org 45 k Updating for dependencies: libcurl x86_64 7.55.1-5.0.cf.rhel7 city-fan.org 424 k libssh2 x86_64 1.8.0-5.0.cf.rhel7 city-fan.org 103 k Transaction Summary =========================================================================================================== Install ( 3 Dependent packages) Upgrade 1 Package (+2 Dependent packages) Total download size: 7.9 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. warning: /var/cache/yum/x86_64/7/city-fan.org/packages/libmetalink-0.1.3-4.rhel7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID b56a8bac: NOKEY Public key for libmetalink-0.1.3-4.rhel7.x86_64.rpm is not installed (1/6): libmetalink-0.1.3-4.rhel7.x86_64.rpm | 25 kB 00:00:01 (2/6): libicu-50.1.2-15.el7.x86_64.rpm | 6.9 MB 00:00:02 (3/6): libpsl-0.7.0-1.el7.x86_64.rpm | 45 kB 00:00:02 (4/6): libssh2-1.8.0-5.0.cf.rhel7.x86_64.rpm | 103 kB 00:00:01 (5/6): curl-7.55.1-5.0.cf.rhel7.x86_64.rpm | 475 kB 00:00:03 (6/6): libcurl-7.55.1-5.0.cf.rhel7.x86_64.rpm | 424 kB 00:00:04 ----------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 7.9 MB 00:00:04 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org Importing GPG key 0xB56A8BAC: Userid : "city-fan.org software librarian <software@city-fan.org>" Fingerprint: 2f04 deae a32c 0963 b696 9a95 e0be 69c9 b56a 8bac Package : city-fan.org-release-1-13.rhel7.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Updating : libssh2-1.8.0-5.0.cf.rhel7.x86_64 1/9 Installing : libicu-50.1.2-15.el7.x86_64 2/9 Installing : libpsl-0.7.0-1.el7.x86_64 3/9 Updating : libcurl-7.55.1-5.0.cf.rhel7.x86_64 4/9 Installing : libmetalink-0.1.3-4.rhel7.x86_64 5/9 Updating : curl-7.55.1-5.0.cf.rhel7.x86_64 6/9 Cleanup : curl-7.29.0-42.el7.x86_64 7/9 Cleanup : libcurl-7.29.0-42.el7.x86_64 8/9 Cleanup : libssh2-1.4.3-10.el7_2.1.x86_64 9/9 Verifying : libmetalink-0.1.3-4.rhel7.x86_64 1/9 Verifying : libicu-50.1.2-15.el7.x86_64 2/9 Verifying : libcurl-7.55.1-5.0.cf.rhel7.x86_64 3/9 Verifying : libpsl-0.7.0-1.el7.x86_64 4/9 Verifying : curl-7.55.1-5.0.cf.rhel7.x86_64 5/9 Verifying : libssh2-1.8.0-5.0.cf.rhel7.x86_64 6/9 Verifying : libssh2-1.4.3-10.el7_2.1.x86_64 7/9 Verifying : libcurl-7.29.0-42.el7.x86_64 8/9 Verifying : curl-7.29.0-42.el7.x86_64 9/9 Dependency Installed: libicu.x86_64 0:50.1.2-15.el7 libmetalink.x86_64 0:0.1.3-4.rhel7 libpsl.x86_64 0:0.7.0-1.el7 Updated: curl.x86_64 0:7.55.1-5.0.cf.rhel7 Dependency Updated: libcurl.x86_64 0:7.55.1-5.0.cf.rhel7 libssh2.x86_64 0:1.8.0-5.0.cf.rhel7 Complete! |
1 2 3 4 5 |
# curl -V curl 7.55.1 (x86_64-redhat-linux-gnu) libcurl/7.55.1 NSS/3.28.4 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.21.1 Release-Date: 2017-08-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy Metalink PSL |
ちょっと強引だったかな。
今のところyumも使えるし特に問題は無いようです。