Want to subscribe to topics you're interested in?
Become a Member

Can i use Centminmod with Redhat 7?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Andy, Sep 13, 2017.

  1. Andy

    Andy Active Member

    285
    42
    28
    Aug 6, 2014
    Ratings:
    +49
    Local Time:
    11:57 PM
    So I been using Centminmod over the years with CentOS and familiar with it.
    There are 2 servers that I'm managing and the IT people told me they are moving all to RH.

    Can i still use Centmin? If so, any differences on how to install/set up/etc?
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,081
    242
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +579
    Local Time:
    11:57 PM
    1.13.x
    MariaDB 10.1.x
    I believe RH using DNF instead of YUM. CMM is built to use YUM. I believe @eva2000 is working on DNF for the future. I remember asking about it for Fedora, which uses DNF and is "part" of RH.
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    1:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    Honestly, haven't tested Redhat 7 in ages. Believe it uses yum still - Fedora is one moving to DNF ? Yes working on DNF compatibility too :)

    Main thing to check first is the version check routine if it returns expected values for CENTOS_SEVEN=7 and CENTOS_SIX=6 from
    Code (Text):
    CENTOSVER=$(awk '{ print $3 }' /etc/redhat-release)
    
    if [ "$CENTOSVER" == 'release' ]; then
        CENTOSVER=$(awk '{ print $4 }' /etc/redhat-release | cut -d . -f1,2)
        if [[ "$(cat /etc/redhat-release | awk '{ print $4 }' | cut -d . -f1)" = '7' ]]; then
            CENTOS_SEVEN='7'
        fi
    fi
    
    if [[ "$(cat /etc/redhat-release | awk '{ print $3 }' | cut -d . -f1)" = '6' ]]; then
        CENTOS_SIX='6'
    fi
    
    if [ "$CENTOSVER" == 'Enterprise' ]; then
        CENTOSVER=$(cat /etc/redhat-release | awk '{ print $7 }')
        OLS='y'
    fi
    
    if [[ -f /etc/system-release && "$(awk '{print $1,$2,$3}' /etc/system-release)" = 'Amazon Linux AMI' ]]; then
        CENTOS_SIX='6'
    fi
    

    So what output do you get for these commands on Redhat 7
    Code (Text):
    CENTOSVER=$(awk '{ print $3 }' /etc/redhat-release)
    echo $CENTOSVER
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $4 }' | cut -d . -f1
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $3 }' | cut -d . -f1
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $7 }'
    
     
    • Like Like x 1
  4. Andy

    Andy Active Member

    285
    42
    28
    Aug 6, 2014
    Ratings:
    +49
    Local Time:
    11:57 PM
    The IT guys are installing RH on the servers as we speak. I will test it out as soon as I can get access back.
    I really don't want to move away from what I been doing so far but I believe Centmin is flexible enough to install on various flavors of Unix and I hope @eva2000 will make it more accessible :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    1:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    Goal is CentOS support and eventually Fedora on dev roadmap 123.09beta01 Development Previews & Work ยท GitHub. Unfortunately, Redhat isn't one of the focuses for non-free OSes. If I am ever fortunate enough to work on Centmin Mod fulltime with enough $$$ to earn a living off of Centmin Mod probably something to look at. But right now Centmin Mod is only a project I work on in my free spare time :)
     
  6. Jimmy

    Jimmy Premium Member Premium Member

    1,081
    242
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +579
    Local Time:
    11:57 PM
    1.13.x
    MariaDB 10.1.x
    I know fedora is DNF. Let us know how things work with RH... I'd be curious to know if it works.