Try our new open source stack builder and get a free, customized report >> Get Started
CentOS and Ubuntu are two major Linux distributions. While at the core they are both Linux, there are quite a few differences between the two. That's why we compare the differences between CentOS vs. Ubuntu in this blog.
Enterprise Linux at a Fair PriceFind out CentOS is your best option for enterprise Linux at a fair price. We partnered with CIO Magazine to develop a white paper on the costs and complications you can avoid by switching to CentOS.Get the White Paper
Find out CentOS is your best option for enterprise Linux at a fair price. We partnered with CIO Magazine to develop a white paper on the costs and complications you can avoid by switching to CentOS.
Get the White Paper
The biggest difference between CentOS vs. Ubuntu is where the distribution comes from. CentOS is sourced from Red Hat Enterprise Linux (RHEL). Ubuntu is based on Debian architecture.
All the Red Hat branding has been removed and been replaced with CentOS. It is usually compatible with RH software, and anything that will run on RHEL will run on CentOS. Red Hat’s first Linux distribution was released in 1995, with RHEL starting in 2000. RHL was discontinued in 2003 and merged with the Fedora Project to create Fedora. CentOS was created from RHEL 2.1AS in 2004. It tracks RHEL at usually a one to two month lag. CentOS seems to target the server market more.
Debian started in 1993, with the first stable version released in 1996. Ubuntu was first released in 2004. Ubuntu packages are based on packages from Debian’s unstable branch, but are not necessarily binary compatible. So they may need to be rebuilt to be used on Ubuntu. Ubuntu tends to be more desktop oriented than CentOS.
Here are five more key differences between CentOS vs. Ubuntu.
Ubuntu is backed by Canonical, which means you can buy support contracts. CentOS has no official backing, but there are third parties that support CentOS, such as OpenLogic. Both distributions are free. Support is an extra service that can be purchased.
CentOS is widely used across the internet for servers. Even Amazon’s Linux (Amazon Linux 1 and 2) is based off CentOS/RHEL, and is the basis of much of its cloud offering. Ubuntu is more often used for desktops.
CentOS is updated infrequently, usually with security and bug fixes for every major version. Each major version is supported for 10 years from the date of release (based on the RHEL schedule). This is because of the extensive testing in each release.
Ubuntu is updated frequently, every six months. Support is offered for a version for five years. Because of this, software tends to be more recent, with newer software, but less stable.
Both CentOS and Ubuntu are Linux, meaning much of the core is the same. That being said, there are differences between management tools.
For example, manipulating network interfaces are done with the same tools, ip, ifconfig, etc. Both distributions have created helper programs to make managing those interfaces easier. However, those specific tools are different between the distributions. Thus, there is some distribution specific knowledge that is not easily transferable between the two.
CentOS uses the RPM package format. A program called rpm is used to manage packages. A front-end tool called yum (updated to dnf in CentOS 8) was created to manage network repositories, dependencies, and other combinations of actions.
Ubuntu uses the DEB package format. It uses a tool called apt (which is layered on top of apt-cache, apt-get, and dpkg) to manage DEB packages, just like yum/dnf is layered on top of rpm.
Both of these tools manage interactions between packages, allowing you to just use the one tool to do most things necessary. Very rarely will you need to use the underlying programs to manage packages.
There may also be differences in availability of packages for each of the distributions. Some vendors may only provide a package for Ubuntu or CentOS/RHEL. This may influence ones choice of which distribution to use. With containers this may not be as big of an issue as it used to be, since a container can be created with packages of one distribution and run on another. (Containers are out of scope of this article).
Software may also be called different, and managed differently. Different distributions may use different tools and packaging methods to manage software, along with naming conventions. For example, on Ubuntu, apache is called apache2 and uses some special scripts to manage virtual hosts and websites. On CentOS, it is called httpd, and manages the configuration differently.
CentOS is a better choice for the enterprise than Ubuntu. That's because CentOS is more secure and more stable. Plus, when you enlist enterprise support for CentOS, it's a top choice for enterprise Linux.
Considering a migration to CentOS? Or simply need support for your Linux distribution? The OpenLogic Experts are here to help.
OpenLogic offers support for many versions of CentOS, including CentOS 6 EOL support and RHEL to CentOS migration support.
When you choose CentOS supported by OpenLogic, you'll get:
Talk to an expert today to learn how we can help you migrate to and maximize CentOS.
TALK TO AN EXPERT
Lance has been working in the IT field for over 30 years, most of it concentrated on data centers and infrastructure. For the past 10 years he has focused on SaaS infrastructure, ensuring reliability, high availability, and scalability of systems. He has been working with CentOS related distributions for the past 25 years.