chorny / Linux-Distribution

Perl programming extension to guess on which Linux distribution we are running.
https://metacpan.org/release/Linux-Distribution
2 stars 8 forks source link

OracleLinux 6.x not correctly identified #7

Open sparvu opened 9 years ago

sparvu commented 9 years ago

Another one: Oracle Linux 6.x is not correctly identified:

[root@ol6 etc]# ls -lrt *-release
-rw-r--r--. 1 root root  55 Jul 24 17:42 redhat-release
-rw-r--r--. 1 root root 402 Jul 24 17:42 os-release
-rw-r--r--. 1 root root  32 Jul 24 17:42 oracle-release
lrwxrwxrwx. 1 root root  14 Aug  4 09:02 system-release -> oracle-release
-rw-r--r--. 1 root root 152 Aug  4 09:04 lsb-release

[root@ol6 etc]# uname -a
Linux ol6 3.8.13-68.3.4.el6uek.x86_64 #2 SMP Tue Jul 14 15:03:36 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@ol6 current]# cat /etc/os-release 
NAME="Oracle Linux Server" 
VERSION="6.7" 
ID="ol" 
VERSION_ID="6.7" 
PRETTY_NAME="Oracle Linux Server 6.7" 
ANSI_COLOR="0;31" 
CPE_NAME="cpe:/o:oracle:linux:6:7"
HOME_URL="https://linux.oracle.com/" 
BUG_REPORT_URL="https://bugzilla.oracle.com/" 

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 6" 
ORACLE_BUGZILLA_PRODUCT_VERSION=6.7 
ORACLE_SUPPORT_PRODUCT="Oracle Linux" 
ORACLE_SUPPORT_PRODUCT_VERSION=6.7
[root@ol6 current]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description:    Oracle Linux Server release 6.7
Release:    6.7
Codename:   n/a
glasswalk3r commented 3 months ago

If Oracle Linux does include /etc/os-release, Linux::Info will support it.