Whats is better and why? Linux CentoS or Ubuntu?

September 21, 2015 30.9k views
Linux Basics Linux Commands

I want know what is better, Linux CentoS or Ubuntu?

And explain your answer...

1 comment
  • Ubuntu is based on the venerable Debian distribution. CentOS is a free clone of Red Hat Enterprise Linux.
    Users who learned Linux on a Debian derivative will be more comfortable with apt-get, and those familiar with Red Hat systems may prefer CentOS, but if you’re new to Linux, the package managers aren’t really a strong differentiating factor.
    CentOS has a longer release cycle; it also has a much longer support cycle. Ubuntu’s Long Term Support releases, which are released every two years, have a support life of 5 years.
    CentOS is the preferred distribution in the hosting industry, so if you want your server to be compatible with the majority of that industry, it’s the safe choice.

4 Answers

i prefer ubuntu(easy) than RHEL.

i am not blindly supporting. i had my past experience.

we used RHEL 5/6 series.
we are web developers with ROR,postgresql,hadoop,golang(REST-API),angular2-dart,selenium,etc.
we were using puppet(server-agent) , chef(master-node-workstation) to replicate the infrastructure,
we used rvm/rbenv to install ruby VM.
but we have some issues with yum/rpm with RHEL.

for examples if we want to install latest rubies like 2.3.0 , it is little complex in RHEL.
because few c/c++ libraries will give dependencies issues like libyaml-x86-64,libyaml-i386,etc.
similarly we have many issues while updating packages to latest.
installing/uninstalling in RHEL is little headache .
we have more than 40 servers so we have to use puppet/chef.
there are many opensource puppet modules and chef cookbooks for ubuntu than RHEL.

recently we are migrated to ubuntu-14.04, which seems more stable release than the earlier.
it is very easy for us to code install/uninstall instruction for puppet/chef/Dockerfile,etc.
because apt source code repositories contains latest libraries.
apt package manager resolve many dependencies by itself, handling mismatch versions. with apt you can easily uninstall/remove pkgs.

apt repositories has latest source code for many of the open source technologies like ruby,rails,postgresql,golang, selenium,angular2-dart etc

recently we are moving to micro services, kubernetes,docker swarm, where we must have to use containers .we have to write many Dockerfile/s.
ubuntu is very suitable to work with Dockerfile/s docker containers, etc.
here again i prefer ubuntu than RHEL.

  • My vote, for the quality of the answer.

    All in all, i prefer ubuntu myself...
    Most likely for the fact that i got way, way more hours troubleshooting servers/setups and almost find my way 'blindly' when facing a new issue - no pretention here.

    I also find ubuntu more intuitive.. Thus, easier for one to make it a 'second nature' - if i may say so.

Should be mentioned that CentOs is no longer the "preferred distribution in the hosting industry" and has not been for a long time. That is simply a fake status, CentOS users would like to keep, but the reaility is one very different. Not even in VPS, Dedicated Servers or even Clouds. This also includes Red Hat in those different areas (Simple Hosting, VPS, Dedicated & Clouds). I will leave the following links for anyone to do their own checks but overall, Ubuntu covers well above the "preferred" term for all of this areas. So if you are looking for something that is applied in the industry, on the desktop, in the production stage but also in the development stage. If you are looking for something that is up to speed with latest technologies, openstack, deployment, and more, then please, one quick research for this will reveal Ubuntu above all others. In any case, I will leave the following for others to see and check for themselves.

Sources you can check out are as follow. I will also put the top 5 as of this writing where it applies:

Ubuntu - 34.1%
Debian - 31.4%
CentOS - 20.6%
Red Hat - 3.7%
Gentoo - 2.7%

Ubuntu - 29.9%
CentOS - 24.57%
Debian - 11.31%
Fedora - 0.68%
Red Hat - 0.01%

Ubuntu - 57.5%
Windows - 7.8%
Red Hat - 4.8%
CentOS - 3.7%
Fedora 1.4%

OPENSTACK - (Page 47)
Ubuntu - 55% (With an potential growth of up to 19%)
CentOS - 20% (With an potential growth of up to 7%)
Red Hat - 16% (With an potential growth of up to 4%)
SUSE - 2% (With an potential growth of up to 1%)
Debian - 3% (With an potential growth of up to 0%)

Even sources like Steam prove the amount of users compared to other distros that Ubuntu has, with 30% of all Linux users on Steam, followed by 9% which is a mix of other different distros.

Lastly the Linux Tendency over times shown here, clearly say what will happen in the following years:,%2Fm%2F03x_8t,%2Fm%2F02prjf

Everyone has their preferences, I like CentOS but i use Enterprise Linux daily. Ubuntu fits in on some places but i think overall CentOS is more stable and secure. Just my opinion

  • centOS more secure than ubuntu ?

    • Each distro is as secure as the guy configuring it.

      In my experience Enterprise Linux (CentOS) is more secure out of the box. Once you start adding websites, scripts, etc to any distro and you aren't sure what you are doing that is when the vulnerabilities come in.

      • More experience are more secure, even the best customer proved, enterprise level or whatever better, it'll mean nothing if admin do not understand what they are doing

Have another answer? Share your knowledge.