Linux Kernel Recompile: Do I Have To Recompile All Installed Applications

in Categories last updated March 25, 2010

If I recompile just the Linux kernel, do I have to recompile the whole entire applications/other files in my systems?

Short answer – No. You don’t have to recompile apps.

If you compile GNU Glibc and/or the GNU CC compilers, you need to recompile all apps again as old apps are linked to older version of GNU Glibc. The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory. Please see the official GNU docs for more info.

If possible use your Linux distributions package management system to build kernels. Most production servers works out of box with default kernel. However, there are few risks with custom kernels:

  • System may not boot at all.
  • Software drivers may not get loaded due to wrong config.
  • Same goes for hardware peripherals and they may not become available.

The compilation process can take a long time, depending on the configuration and the speed of your machine.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 0 comments/add one below):