Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to know whether a particular patch is applied to the kernel? Especially RT-Preempt Patch.

share|improve this question
up vote 2 down vote accepted

In the case of preempt you can just use uname:

uname -v
#23 SMP PREEMPT RT Fri Oct 16 11:52:29 CET 2012

The string PREEMPT shows that you use a kernel version with the realtime patch.

Some other patches might also changes the uname string. So it might also be a help. If this is not the case you can try to look at your .config. The file could be found in the /boot directory or (if enabled) by using cat /proc/config.gz. Maybe there is also a version in /usr/src/linux (or where you put the kernel sources).

If you found the config file you can grep for specific settings and find out if a patch is used.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.