Learn about Centmin Mod LEMP Stack today
Register Now

Install compile from source vs yum

Discussion in 'Centmin Mod Insights' started by dorobo, Jun 26, 2014.

Tags:
  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    3:00 AM
    latest
    latest
    I don't know if this has been discussed before George but any particular reason why you prefer compiling from source instead of letting a repository, which I think also has the latest version (at least some like Axivo) of each software (nginx, php-fpm, MariaDB, etc.) manage the updates?

    I mean with yum, all we need to is yum update. With source installs we have to edit the version number in the script. So what is the reason behind this? :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,487
    6,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,583
    Local Time:
    5:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    FAQ 18 on official site http://centminmod.com/faq.html

    Take for example recent OpenSSL 1.0.1h update https://community.centminmod.com/threads/updating-openssl-1-0-1h-for-centmin-mod.299/, there was a good 24+ hours before OpenSSL 1.0.1h patched update from Redhat/CentOS was released a bit more time after that for Axivo OpenSSL. In meantime, to migitate the risk, Centmin Mod folks could at least update Centmin Mod Nginx and it's static compiled OpenSSL 1.0.1h to reduce the risk on public front facing Nginx - while waiting on system update for Redhat/CentOS. If the OpenSSL update via YUM were to take even longer than a few days, Centmin Mod Nginx should still have some protection from static compilation of OpenSSL via source compiling direct from OpenSSL site tarball downloads. Also Centmin Mod end users can do this themselves without waiting on me to release anything which is part of the goal of Centmin Mod for important updates like Nginx, PHP-FPM and PHP extensions - not relying on the author (me) :)

    Also FYI, Axivo only has 64bit packages and doesn't support 32bit and Centmin Mod still has a huge 40% of users on 32bit for low memory <512MB systems https://community.centminmod.com/threads/centmin-mod-survey-2013-2014.82/

    FAQ 4 has upgrade guide http://centminmod.com/faq.html and you don't need to edit script versions to upgrade existing Centmin Mod installs, that's what menu options 4 and 5 are for Nginx and PHP-FPM and other menu options for APC Cache, Xcache and Zend OpCache and Memcached. MariaDB is already YUM based.
     
    Last edited: Jun 26, 2014
    • Like Like x 1
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    3:00 AM
    latest
    latest
    good point George.

    It does take a while before updates from the repos are released.
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,487
    6,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,583
    Local Time:
    5:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it's weighing up what's important and for me is more timely updates and less reliance on the author/dev (me) for Centmin Mod end users. Also somethings like PHP 5.6 beta support is more flexible via source compiles too https://community.centminmod.com/threads/php-5-6-support-testing-for-07-betas.559/ :)

    Take another example, CentALT YUM repo mess, the repo disappeared and luckily Centmin Mod's reliance on it was minimal - isolated to just libmemcached package from the top of my head. So all I had to do was fall back to Centmin Mod's original source compiled libmemcache 1.0.18 :)