Skip to content

Instantly share code, notes, and snippets.

@jasontedor
Created February 13, 2019 21:11
Show Gist options
  • Save jasontedor/991c2bf2f5ec84a05fd9d2204b56f230 to your computer and use it in GitHub Desktop.
Save jasontedor/991c2bf2f5ec84a05fd9d2204b56f230 to your computer and use it in GitHub Desktop.
Dealing with libcurl TLS 1.2 problems on Centos 6.6
16:06:01 [jason@totoro:~/src/elastic/elasticsearch] retention-lease-ccr(+53/-0)+ 1 ± docker run --rm -it centos:6.6 /bin/bash
[root@3d2b8c58426b /]# yum install wget
Loaded plugins: fastestmirror
Setting up Install Process
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:01
extras | 3.4 kB 00:00
extras/primary_db | 27 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.0 MB 00:01
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.12-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================
Installing:
wget x86_64 1.12-10.el6 base 484 k
Transaction Summary
==============================================================================================================================================================================================================================
Install 1 Package(s)
Total download size: 484 k
Installed size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
wget-1.12-10.el6.x86_64.rpm | 484 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-6.el6.centos.12.2.x86_64 (@CentOS/$releasever)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : wget-1.12-10.el6.x86_64 1/1
install-info: No such file or directory for /usr/share/info/wget.info.gz
Verifying : wget-1.12-10.el6.x86_64 1/1
Installed:
wget.x86_64 0:1.12-10.el6
Complete!
[root@3d2b8c58426b /]# cat > /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[root@3d2b8c58426b /]# yum install elasticsearch
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirror.cisp.com
* extras: mirror.cisp.com
* updates: mirror.cisp.com
https://artifacts.elastic.co/packages/6.x/yum/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elasticsearch-6.x. Please verify its path and try again
[root@3d2b8c58426b /]# rm /etc/yum.repos.d/elasticsearch.repo
rm: remove regular file `/etc/yum.repos.d/elasticsearch.repo'? y
[root@3d2b8c58426b /]# yum update libcurl curl nss
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirror.cisp.com
* extras: mirror.cisp.com
* updates: mirror.cisp.com
Resolving Dependencies
--> Running transaction check
---> Package curl.x86_64 0:7.19.7-37.el6_5.3 will be updated
---> Package curl.x86_64 0:7.19.7-53.el6_9 will be an update
---> Package libcurl.x86_64 0:7.19.7-37.el6_5.3 will be updated
---> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be an update
---> Package nss.x86_64 0:3.16.1-14.el6 will be updated
--> Processing Dependency: nss = 3.16.1-14.el6 for package: nss-sysinit-3.16.1-14.el6.x86_64
--> Processing Dependency: nss(x86-64) = 3.16.1-14.el6 for package: nss-tools-3.16.1-14.el6.x86_64
---> Package nss.x86_64 0:3.36.0-9.el6_10 will be an update
--> Processing Dependency: nss-util >= 3.36.0 for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.14.3-22 for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: nspr >= 4.19.0 for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.33)(64bit) for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.24)(64bit) for package: nss-3.36.0-9.el6_10.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.36.0-9.el6_10.x86_64
--> Running transaction check
---> Package nspr.x86_64 0:4.10.6-1.el6_5 will be updated
---> Package nspr.x86_64 0:4.19.0-1.el6 will be an update
---> Package nss-softokn.x86_64 0:3.14.3-17.el6 will be updated
---> Package nss-softokn.x86_64 0:3.14.3-23.3.el6_8 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.14.3-23.3.el6_8 for package: nss-softokn-3.14.3-23.3.el6_8.x86_64
---> Package nss-sysinit.x86_64 0:3.16.1-14.el6 will be updated
---> Package nss-sysinit.x86_64 0:3.36.0-9.el6_10 will be an update
---> Package nss-tools.x86_64 0:3.16.1-14.el6 will be updated
---> Package nss-tools.x86_64 0:3.36.0-9.el6_10 will be an update
---> Package nss-util.x86_64 0:3.16.1-3.el6 will be updated
---> Package nss-util.x86_64 0:3.36.0-1.el6 will be an update
--> Running transaction check
---> Package nss-softokn-freebl.x86_64 0:3.14.3-17.el6 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.3.el6_8 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================
Updating:
curl x86_64 7.19.7-53.el6_9 base 197 k
libcurl x86_64 7.19.7-53.el6_9 base 169 k
nss x86_64 3.36.0-9.el6_10 updates 865 k
Updating for dependencies:
nspr x86_64 4.19.0-1.el6 base 114 k
nss-softokn x86_64 3.14.3-23.3.el6_8 base 262 k
nss-softokn-freebl x86_64 3.14.3-23.3.el6_8 base 168 k
nss-sysinit x86_64 3.36.0-9.el6_10 updates 53 k
nss-tools x86_64 3.36.0-9.el6_10 updates 460 k
nss-util x86_64 3.36.0-1.el6 base 72 k
Transaction Summary
==============================================================================================================================================================================================================================
Upgrade 9 Package(s)
Total download size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): curl-7.19.7-53.el6_9.x86_64.rpm | 197 kB 00:00
(2/9): libcurl-7.19.7-53.el6_9.x86_64.rpm | 169 kB 00:00
(3/9): nspr-4.19.0-1.el6.x86_64.rpm | 114 kB 00:00
(4/9): nss-3.36.0-9.el6_10.x86_64.rpm | 865 kB 00:00
(5/9): nss-softokn-3.14.3-23.3.el6_8.x86_64.rpm | 262 kB 00:00
(6/9): nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64.rpm | 168 kB 00:00
(7/9): nss-sysinit-3.36.0-9.el6_10.x86_64.rpm | 53 kB 00:00
(8/9): nss-tools-3.36.0-9.el6_10.x86_64.rpm | 460 kB 00:00
(9/9): nss-util-3.36.0-1.el6.x86_64.rpm | 72 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 695 kB/s | 2.3 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : nspr-4.19.0-1.el6.x86_64 1/18
Updating : nss-util-3.36.0-1.el6.x86_64 2/18
Updating : nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 3/18
Updating : nss-softokn-3.14.3-23.3.el6_8.x86_64 4/18
Updating : nss-3.36.0-9.el6_10.x86_64 5/18
Updating : nss-sysinit-3.36.0-9.el6_10.x86_64 6/18
Updating : libcurl-7.19.7-53.el6_9.x86_64 7/18
Updating : curl-7.19.7-53.el6_9.x86_64 8/18
Updating : nss-tools-3.36.0-9.el6_10.x86_64 9/18
Cleanup : nss-tools-3.16.1-14.el6.x86_64 10/18
Cleanup : curl-7.19.7-37.el6_5.3.x86_64 11/18
Cleanup : libcurl-7.19.7-37.el6_5.3.x86_64 12/18
Cleanup : nss-3.16.1-14.el6.x86_64 13/18
Cleanup : nss-sysinit-3.16.1-14.el6.x86_64 14/18
Cleanup : nss-softokn-3.14.3-17.el6.x86_64 15/18
Cleanup : nss-util-3.16.1-3.el6.x86_64 16/18
Cleanup : nspr-4.10.6-1.el6_5.x86_64 17/18
Cleanup : nss-softokn-freebl-3.14.3-17.el6.x86_64 18/18
Verifying : nss-sysinit-3.36.0-9.el6_10.x86_64 1/18
Verifying : nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 2/18
Verifying : nss-util-3.36.0-1.el6.x86_64 3/18
Verifying : nss-softokn-3.14.3-23.3.el6_8.x86_64 4/18
Verifying : nss-tools-3.36.0-9.el6_10.x86_64 5/18
Verifying : nspr-4.19.0-1.el6.x86_64 6/18
Verifying : nss-3.36.0-9.el6_10.x86_64 7/18
Verifying : curl-7.19.7-53.el6_9.x86_64 8/18
Verifying : libcurl-7.19.7-53.el6_9.x86_64 9/18
Verifying : curl-7.19.7-37.el6_5.3.x86_64 10/18
Verifying : nss-sysinit-3.16.1-14.el6.x86_64 11/18
Verifying : libcurl-7.19.7-37.el6_5.3.x86_64 12/18
Verifying : nspr-4.10.6-1.el6_5.x86_64 13/18
Verifying : nss-tools-3.16.1-14.el6.x86_64 14/18
Verifying : nss-util-3.16.1-3.el6.x86_64 15/18
Verifying : nss-3.16.1-14.el6.x86_64 16/18
Verifying : nss-softokn-3.14.3-17.el6.x86_64 17/18
Verifying : nss-softokn-freebl-3.14.3-17.el6.x86_64 18/18
Updated:
curl.x86_64 0:7.19.7-53.el6_9 libcurl.x86_64 0:7.19.7-53.el6_9 nss.x86_64 0:3.36.0-9.el6_10
Dependency Updated:
nspr.x86_64 0:4.19.0-1.el6 nss-softokn.x86_64 0:3.14.3-23.3.el6_8 nss-softokn-freebl.x86_64 0:3.14.3-23.3.el6_8 nss-sysinit.x86_64 0:3.36.0-9.el6_10 nss-tools.x86_64 0:3.36.0-9.el6_10 nss-util.x86_64 0:3.36.0-1.el6
Complete!
[root@3d2b8c58426b /]# yum install java-1.8.0-openjdk
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.cisp.com
* extras: mirror.cisp.com
* updates: mirror.cisp.com
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.191.b12-0.el6_10 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.191.b12-0.el6_10 for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: fontconfig for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64
--> Running transaction check
---> Package alsa-lib.x86_64 0:1.1.0-4.el6 will be installed
---> Package fontconfig.x86_64 0:2.8.0-5.el6 will be installed
--> Processing Dependency: freetype >= 2.1.4 for package: fontconfig-2.8.0-5.el6.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.8.0-5.el6.x86_64
---> Package giflib.x86_64 0:4.1.6-3.1.el6 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-3.1.el6.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-3.1.el6.x86_64
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.191.b12-0.el6_10 will be installed
--> Processing Dependency: tzdata-java >= 2014f-1 for package: 1:java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el6_10.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el6_10.x86_64
---> Package libX11.x86_64 0:1.6.4-3.el6 will be installed
--> Processing Dependency: libX11-common = 1.6.4-3.el6 for package: libX11-1.6.4-3.el6.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.4-3.el6.x86_64
---> Package libXext.x86_64 0:1.3.3-1.el6 will be installed
---> Package libXi.x86_64 0:1.7.8-1.el6 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el6 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el6 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed
---> Package libpng.x86_64 2:1.2.49-2.el6_7 will be installed
---> Package xorg-x11-fonts-Type1.noarch 0:7.2-11.el6 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.2-11.el6.noarch
--> Running transaction check
---> Package freetype.x86_64 0:2.3.11-17.el6 will be installed
---> Package jpackage-utils.noarch 0:1.7.5-3.16.el6 will be installed
---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed
---> Package libSM.x86_64 0:1.2.1-2.el6 will be installed
---> Package libX11-common.noarch 0:1.6.4-3.el6 will be installed
---> Package libxcb.x86_64 0:1.12-4.el6 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.12-4.el6.x86_64
---> Package ttmkfdir.x86_64 0:3.0.9-32.1.el6 will be installed
---> Package tzdata-java.noarch 0:2018i-1.el6 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.2-11.el6 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64
--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.6-4.el6 will be installed
---> Package libXfont.x86_64 0:1.5.1-2.el6 will be installed
---> Package libfontenc.x86_64 0:1.1.2-3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================
Installing:
java-1.8.0-openjdk x86_64 1:1.8.0.191.b12-0.el6_10 updates 212 k
Installing for dependencies:
alsa-lib x86_64 1.1.0-4.el6 base 389 k
fontconfig x86_64 2.8.0-5.el6 base 186 k
freetype x86_64 2.3.11-17.el6 base 361 k
giflib x86_64 4.1.6-3.1.el6 base 37 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.191.b12-0.el6_10 updates 32 M
jpackage-utils noarch 1.7.5-3.16.el6 base 60 k
libICE x86_64 1.0.6-1.el6 base 53 k
libSM x86_64 1.2.1-2.el6 base 37 k
libX11 x86_64 1.6.4-3.el6 base 587 k
libX11-common noarch 1.6.4-3.el6 base 171 k
libXau x86_64 1.0.6-4.el6 base 24 k
libXext x86_64 1.3.3-1.el6 base 35 k
libXfont x86_64 1.5.1-2.el6 base 145 k
libXi x86_64 1.7.8-1.el6 base 38 k
libXrender x86_64 0.9.10-1.el6 base 24 k
libXtst x86_64 1.2.3-1.el6 base 19 k
libfontenc x86_64 1.1.2-3.el6 base 29 k
libjpeg-turbo x86_64 1.2.1-3.el6_5 base 174 k
libpng x86_64 2:1.2.49-2.el6_7 base 182 k
libxcb x86_64 1.12-4.el6 base 180 k
ttmkfdir x86_64 3.0.9-32.1.el6 base 43 k
tzdata-java noarch 2018i-1.el6 updates 187 k
xorg-x11-font-utils x86_64 1:7.2-11.el6 base 75 k
xorg-x11-fonts-Type1 noarch 7.2-11.el6 base 520 k
Transaction Summary
==============================================================================================================================================================================================================================
Install 25 Package(s)
Total download size: 36 M
Installed size: 113 M
Is this ok [y/N]: y
Downloading Packages:
(1/25): alsa-lib-1.1.0-4.el6.x86_64.rpm | 389 kB 00:00
(2/25): fontconfig-2.8.0-5.el6.x86_64.rpm | 186 kB 00:00
(3/25): freetype-2.3.11-17.el6.x86_64.rpm | 361 kB 00:00
(4/25): giflib-4.1.6-3.1.el6.x86_64.rpm | 37 kB 00:00
(5/25): java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64.rpm | 212 kB 00:00
(6/25): java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el6_10.x86_64.rpm | 32 MB 00:04
(7/25): jpackage-utils-1.7.5-3.16.el6.noarch.rpm | 60 kB 00:00
(8/25): libICE-1.0.6-1.el6.x86_64.rpm | 53 kB 00:00
(9/25): libSM-1.2.1-2.el6.x86_64.rpm | 37 kB 00:00
(10/25): libX11-1.6.4-3.el6.x86_64.rpm | 587 kB 00:00
(11/25): libX11-common-1.6.4-3.el6.noarch.rpm | 171 kB 00:00
(12/25): libXau-1.0.6-4.el6.x86_64.rpm | 24 kB 00:00
(13/25): libXext-1.3.3-1.el6.x86_64.rpm | 35 kB 00:00
(14/25): libXfont-1.5.1-2.el6.x86_64.rpm | 145 kB 00:00
(15/25): libXi-1.7.8-1.el6.x86_64.rpm | 38 kB 00:00
(16/25): libXrender-0.9.10-1.el6.x86_64.rpm | 24 kB 00:00
(17/25): libXtst-1.2.3-1.el6.x86_64.rpm | 19 kB 00:00
(18/25): libfontenc-1.1.2-3.el6.x86_64.rpm | 29 kB 00:00
(19/25): libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm | 174 kB 00:00
(20/25): libpng-1.2.49-2.el6_7.x86_64.rpm | 182 kB 00:00
(21/25): libxcb-1.12-4.el6.x86_64.rpm | 180 kB 00:00
(22/25): ttmkfdir-3.0.9-32.1.el6.x86_64.rpm | 43 kB 00:00
(23/25): tzdata-java-2018i-1.el6.noarch.rpm | 187 kB 00:00
(24/25): xorg-x11-font-utils-7.2-11.el6.x86_64.rpm | 75 kB 00:00
(25/25): xorg-x11-fonts-Type1-7.2-11.el6.noarch.rpm | 520 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.4 MB/s | 36 MB 00:10
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : freetype-2.3.11-17.el6.x86_64 1/25
Installing : fontconfig-2.8.0-5.el6.x86_64 2/25
Installing : libICE-1.0.6-1.el6.x86_64 3/25
Installing : libjpeg-turbo-1.2.1-3.el6_5.x86_64 4/25
Installing : libfontenc-1.1.2-3.el6.x86_64 5/25
Installing : libXfont-1.5.1-2.el6.x86_64 6/25
Installing : 1:xorg-x11-font-utils-7.2-11.el6.x86_64 7/25
Installing : libSM-1.2.1-2.el6.x86_64 8/25
Installing : ttmkfdir-3.0.9-32.1.el6.x86_64 9/25
Installing : xorg-x11-fonts-Type1-7.2-11.el6.noarch 10/25
Installing : libXau-1.0.6-4.el6.x86_64 11/25
Installing : libxcb-1.12-4.el6.x86_64 12/25
Installing : tzdata-java-2018i-1.el6.noarch 13/25
Installing : alsa-lib-1.1.0-4.el6.x86_64 14/25
Installing : libX11-common-1.6.4-3.el6.noarch 15/25
Installing : libX11-1.6.4-3.el6.x86_64 16/25
Installing : libXext-1.3.3-1.el6.x86_64 17/25
Installing : libXi-1.7.8-1.el6.x86_64 18/25
Installing : libXtst-1.2.3-1.el6.x86_64 19/25
Installing : libXrender-0.9.10-1.el6.x86_64 20/25
Installing : giflib-4.1.6-3.1.el6.x86_64 21/25
Installing : jpackage-utils-1.7.5-3.16.el6.noarch 22/25
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el6_10.x86_64 23/25
Installing : 2:libpng-1.2.49-2.el6_7.x86_64 24/25
Installing : 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64 25/25
Verifying : freetype-2.3.11-17.el6.x86_64 1/25
Verifying : fontconfig-2.8.0-5.el6.x86_64 2/25
Verifying : libxcb-1.12-4.el6.x86_64 3/25
Verifying : libSM-1.2.1-2.el6.x86_64 4/25
Verifying : libXfont-1.5.1-2.el6.x86_64 5/25
Verifying : 2:libpng-1.2.49-2.el6_7.x86_64 6/25
Verifying : ttmkfdir-3.0.9-32.1.el6.x86_64 7/25
Verifying : jpackage-utils-1.7.5-3.16.el6.noarch 8/25
Verifying : 1:xorg-x11-font-utils-7.2-11.el6.x86_64 9/25
Verifying : libfontenc-1.1.2-3.el6.x86_64 10/25
Verifying : libX11-common-1.6.4-3.el6.noarch 11/25
Verifying : libXi-1.7.8-1.el6.x86_64 12/25
Verifying : alsa-lib-1.1.0-4.el6.x86_64 13/25
Verifying : libXext-1.3.3-1.el6.x86_64 14/25
Verifying : libX11-1.6.4-3.el6.x86_64 15/25
Verifying : libjpeg-turbo-1.2.1-3.el6_5.x86_64 16/25
Verifying : tzdata-java-2018i-1.el6.noarch 17/25
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el6_10.x86_64 18/25
Verifying : libXau-1.0.6-4.el6.x86_64 19/25
Verifying : libXtst-1.2.3-1.el6.x86_64 20/25
Verifying : libICE-1.0.6-1.el6.x86_64 21/25
Verifying : 1:java-1.8.0-openjdk-1.8.0.191.b12-0.el6_10.x86_64 22/25
Verifying : libXrender-0.9.10-1.el6.x86_64 23/25
Verifying : xorg-x11-fonts-Type1-7.2-11.el6.noarch 24/25
Verifying : giflib-4.1.6-3.1.el6.x86_64 25/25
Installed:
java-1.8.0-openjdk.x86_64 1:1.8.0.191.b12-0.el6_10
Dependency Installed:
alsa-lib.x86_64 0:1.1.0-4.el6 fontconfig.x86_64 0:2.8.0-5.el6 freetype.x86_64 0:2.3.11-17.el6 giflib.x86_64 0:4.1.6-3.1.el6 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.191.b12-0.el6_10
jpackage-utils.noarch 0:1.7.5-3.16.el6 libICE.x86_64 0:1.0.6-1.el6 libSM.x86_64 0:1.2.1-2.el6 libX11.x86_64 0:1.6.4-3.el6 libX11-common.noarch 0:1.6.4-3.el6
libXau.x86_64 0:1.0.6-4.el6 libXext.x86_64 0:1.3.3-1.el6 libXfont.x86_64 0:1.5.1-2.el6 libXi.x86_64 0:1.7.8-1.el6 libXrender.x86_64 0:0.9.10-1.el6
libXtst.x86_64 0:1.2.3-1.el6 libfontenc.x86_64 0:1.1.2-3.el6 libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 libpng.x86_64 2:1.2.49-2.el6_7 libxcb.x86_64 0:1.12-4.el6
ttmkfdir.x86_64 0:3.0.9-32.1.el6 tzdata-java.noarch 0:2018i-1.el6 xorg-x11-font-utils.x86_64 1:7.2-11.el6 xorg-x11-fonts-Type1.noarch 0:7.2-11.el6
Complete!
[root@3d2b8c58426b /]# cat > /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[root@3d2b8c58426b /]# yum install elasticsearch
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.cisp.com
* extras: mirror.cisp.com
* updates: mirror.cisp.com
elasticsearch-6.x | 1.3 kB 00:00
elasticsearch-6.x/primary | 150 kB 00:00
elasticsearch-6.x 388/388
Resolving Dependencies
--> Running transaction check
---> Package elasticsearch.noarch 0:6.6.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================
Installing:
elasticsearch noarch 6.6.0-1 elasticsearch-6.x 109 M
Transaction Summary
==============================================================================================================================================================================================================================
Install 1 Package(s)
Total download size: 109 M
Installed size: 160 M
Is this ok [y/N]: y
Downloading Packages:
elasticsearch-6.6.0.rpm | 109 MB 00:01
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Retrieving key from https://artifacts.elastic.co/GPG-KEY-elasticsearch
Importing GPG key 0xD88E42B4:
Userid: "Elasticsearch (Elasticsearch Signing Key) <dev_ops@elasticsearch.org>"
From : https://artifacts.elastic.co/GPG-KEY-elasticsearch
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : elasticsearch-6.6.0-1.noarch 1/1
/usr/bin/java
Creating elasticsearch group... OK
Creating elasticsearch user... OK
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using chkconfig
sudo chkconfig --add elasticsearch
### You can start elasticsearch service by executing
sudo service elasticsearch start
Non-fatal POSTTRANS scriptlet failure in rpm package elasticsearch-6.6.0-1.noarch
/usr/share/elasticsearch/bin/elasticsearch-env: line 43: which: command not found
could not find java; set JAVA_HOME or ensure java is in PATH
chown: cannot access `/etc/elasticsearch/elasticsearch.keystore': No such file or directory
chmod: cannot access `/etc/elasticsearch/elasticsearch.keystore': No such file or directory
md5sum: /etc/elasticsearch/elasticsearch.keystore: No such file or directory
warning: %posttrans(elasticsearch-0:6.6.0-1.noarch) scriptlet failed, exit status 1
Verifying : elasticsearch-6.6.0-1.noarch 1/1
Installed:
elasticsearch.noarch 0:6.6.0-1
Complete!
[root@3d2b8c58426b /]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment