telnet is transferred to ES2en ES3en in the Alpine mirror
- 2020-12-26 06:02:51
- OfStack
telnet in the Alpine image was transferred to the ES3en-ES4en package after version 3.7 and requires separate installation using apk.
The phenomenon of
Alpine version 3.8, telent no longer points to busybox
~ # cat /etc/alpine-release
3.8.0
~ #
~ # ls /usr/bin/ |grep -w busybox |grep telnet
~ #
why
Confirmed the related issue found in Alpine3. 7 had this change: https: / / github com/gliderlabs/docker - alpine/issues / 397
The corresponding
Use apk to install
apk update
/var/atlassian/jira # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
v3.8.0-28-g923d74cddf [http://dl-cdn.alpinelinux.org/alpine/v3.8/main]
v3.8.0-28-g923d74cddf [http://dl-cdn.alpinelinux.org/alpine/v3.8/community]
OK: 9536 distinct packages available
/var/atlassian/jira #
apk add busybox-extras
/var/atlassian/jira # apk add busybox-extras
(1/1) Installing busybox-extras (1.28.4-r1)
Executing busybox-extras-1.28.4-r1.post-install
Executing busybox-1.28.4-r0.trigger
OK: 133 MiB in 76 packages
/var/atlassian/jira #
Post-installation confirmation
Verify the telnet installation path
/var/atlassian/jira # which telnet
/usr/bin/telnet
/var/atlassian/jira #
~ # ls -l /usr/bin/telnet
lrwxrwxrwx 1 root root 19 Jul 24 01:40 /usr/bin/telnet -> /bin/busybox-extras
~ # ls /bin/busybox
Confirm the action
With network connectivity, telnet can communicate with the smtp server
~ # telnet smtp.163.com 25
220 163.com Anti-spam GT for Coremail System (163com[20141201])
HELO liumiaocn
250 OK
conclusion