[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian version



On 2021-11-09 10:22, Koler, Nethanel wrote:
Hi
I am Nati, I am trying to find a variable that is configured in the linux-headers that can tell me on which Debian I am
For example in RedHat
After downloading the linux-headers
I can go to cd /usr/src/kernels/<header>/include/generated/uapi/linux
There there is a file called version.h
Where they define this variables

#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#define RHEL_MAJOR 8
#define RHEL_MINOR 4

When I tried the same with Debian I got to a dead end
Can you please help me find something similar in the linux-headers for Debian?

Thank you
Nati Koler

Does it have to be in the headers? If not, I would go for the /etc/os-release och /etc/debian_version

/eric




Reply to: