openSUSE 13.1 /etc/SuSE-release is deprecated

In openSUSE 13.1 I have found that in using the info in /etc/SuSE-release, you get the error message “/etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead”.

In this release, the old version request gives this:

cat  /etc/SuSE-release
openSUSE 13.1 (x86_64)
VERSION = 13.1
CODENAME = Bottle
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead

You are now asked to use this to determine the OS version which provides more info:

cat /etc/os-release
NAME=openSUSE
VERSION="13.1 (Bottle)"
VERSION_ID="13.1"
PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

I have found this even effects the application inxi you can install from YaST. I use the terminal command “inxi -F” for a full display of info but now I must do this now “inxi -F -%”.

You may find other applications trying to read the OS version will have the same problem.

Thank You,

hi,

wrt inxi the problem is solved see,

inxi - A full featured system information script
Version: 1.9.16-3.1
Distribution: home:malcolmlewis:Gnome / openSUSE_13.1
Vendor: obs://build.opensuse.org/home:malcolmlewis

cheers

Packman only offers up version 1.7.23. The link “home:malcolmlewis:Gnome / openSUSE_13.1” is not usable without a proper URL to use.

Thank You,

Mentioned here previously

https://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/491133-etc-suse-release-end-ofolife.html

try,

Index of /repositories/home:/malcolmlewis:/Gnome/openSUSE_13.1/noarch

Got the new version and indeed it does not have the error any more.

Thank You,

Speaking of system scripts, here’s a handy one that I use myself;
Linux System Stats Script - Next Generation - Linux / Unix Discussion & Support - Neowin Forums

It relies on perl (and perl-Switch) and is somewhat tidier than inxi, the end result is something like this:
http://i.imgur.com/8NnBte7.jpg

Github:
https://github.com/xorangekiller/haggis-stats

/etc/os-release is much more distribution independant. And as it exsits already for some time on openSUSE, we should have adverstised it’s usage already for a long time . But as most people, we are lazy and stick to something that works instead of using open standards Free Desktop.org). It also has a man page. Poor we >:(