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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 0 comments... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum