電子計算記

個人的な検証を

Aliyun Linux 17.1 リリース

前回のエントリーで Aliyun Linux 15.1 の話を書いて、次回はベンチマークだーみたいな〆だったけど、このタイミングで新版の 17.1 がリリースされてた。
ということで Aliyun Linux 17.1 も見ていこう。

まずはディストリビューションの情報を見ていきましょう。
15.1のときはalios-releaseでしたが、alinux-releaseにファイル名変わってます。

[root@<UUID> ~]# ls -al /etc/*release
-rw-r--r--. 1 root root  69  1月  5 13:52 /etc/alinux-release
lrwxrwxrwx. 1 root root  14  2月 25 17:27 /etc/centos-release -> alinux-release
-rw-r--r--. 1 root root 261  1月  5 13:52 /etc/os-release
lrwxrwxrwx. 1 root root  14  2月 25 17:27 /etc/redhat-release -> alinux-release
lrwxrwxrwx. 1 root root  14  2月 25 17:27 /etc/system-release -> alinux-release
[root@<UUID> ~]# cat /etc/alinux-release
Alibaba Cloud Enterprise Linux Server release 17.01.2 (Golden Toad) 
[root@<UUID> ~]# cat /etc/os-release
NAME="Alibaba Cloud Enterprise Linux Server"
VERSION="17.01 (Golden Toad)"
ID="alinux"
ID_LIKE="rhel fedora centos"
VERSION_ID="17.01"
PRETTY_NAME="Alibaba Cloud Enterprise Linux Server 17.01 (Golden Toad)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

ここまでだと、ベースのディストロはわかんないですね。パッケージ管理はRPM/YUMですけど。
カーネルはというと

[root@<UUID> ~]# uanme -a
Linux <UUID> 4.4.24-2.al7.x86_64 #1 SMP Wed Jan 4 17:23:01 CST 2017 x86_64 x86_64 x86_64 GNU/Linux

4.4.24 あまりみないカーネルバージョンですね、というか15.1のときと比べるとかなり新し目。al7はel7を置き換えているのかな。

ビルドオプション見てみようかなとしたところで、決定的なものを見つけた。

[root@<UUID> ~]# ls -al /boot/
合計 128236
-rw-------. 1 root root  3113009 12月 26 18:37 System.map-3.10.0-514.al7.x86_64
-rw-------. 1 root root  3878401  1月  4 17:33 System.map-4.4.24-2.al7.x86_64
-rw-r--r--. 1 root root   137696 12月 26 18:37 config-3.10.0-514.al7.x86_64
-rw-r--r--. 1 root root   189804  1月  4 17:33 config-4.4.24-2.al7.x86_64
drwx------. 6 root root     4096  5月 13 21:27 grub2
-rw-------. 1 root root 50436480  2月 25 17:32 initramfs-0-rescue-76a088ac35af45869df89d5cca7196e2.img
-rw-------. 1 root root 19601274  2月 25 17:34 initramfs-3.10.0-514.al7.x86_64.img
-rw-------. 1 root root 19391661  2月 25 17:35 initramfs-4.4.24-2.al7.x86_64.img
-rw-------  1 root root 15263874  2月 25 17:36 initramfs-4.4.24-2.al7.x86_64kdump.img
-rw-r--r--. 1 root root   607608  2月 25 17:30 initrd-plymouth.img
-rw-r--r--. 1 root root   277953 12月 26 19:14 symvers-3.10.0-514.al7.x86_64.gz
-rw-r--r--. 1 root root   355700  1月  4 17:36 symvers-4.4.24-2.al7.x86_64.gz
-rwxr-xr-x. 1 root root  5395872  2月 25 17:32 vmlinuz-0-rescue-76a088ac35af45869df89d5cca7196e2
-rwxr-xr-x. 1 root root  5395872 12月 26 18:37 vmlinuz-3.10.0-514.al7.x86_64
-rwxr-xr-x. 1 root root  7041584  1月  4 17:33 vmlinuz-4.4.24-2.al7.x86_64

3.10.0-514.al7.x86_64 というカーネルも入っているじゃないか。3.10.0-514 はRHEL7.3と同じバージョン。RHEL7.3をベースに、新しいカーネル入れたといったところか。

他のパッケージのバージョンを見ると、

[root@<UUID> ~]# bash --version
GNU bash, バージョン 4.2.46(1)-release (x86_64-koji-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 またはそれ以降 <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@<UUID> ~]# gcc -v
組み込み spec を使用しています。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
ターゲット: x86_64-redhat-linux
configure 設定: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
スレッドモデル: posix
gcc バージョン 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) 
[root@<UUID> ~]# httpd -v
Server version: Apache/2.4.6 (ALinux)
Server built:   Dec 29 2016 14:24:38
[root@<UUID> ~]# mysql --version
mysql  Ver 15.1 Distrib 5.5.52-MariaDB, for Linux (x86_64) using readline 5.1
[root@<UUID> ~]# php -v
PHP 5.4.16 (cli) (built: Dec 26 2016 18:24:24) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@<UUID> ~]# python -V
Python 2.7.5

ということで、他のバージョンはRHEL7.3収録と同じバージョンなので、RHEL7.3ベースということですね。