Discover Centmin Mod today
Register Now

CentOS 6 Now End Of Life - YUM Mirrorlist Removed

Discussion in 'CentOS, Redhat & Oracle Linux News' started by eva2000, Dec 21, 2020.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    10:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    CentOS 6 is now end of life as at November 30, 2020 with no more security updates at all. If you're using CentOS 6, only way forward is to create a new CentOS 7 server and install Centmin Mod on it and then migrate your site data and MySQL data to the new CentOS 7 server. You can read the Centmin Mod data migration guide at Insight Guide - Centmin Mod Site Data Migration Guide

    CentOS 6 EOL - YUM Mirrrors Removed



    CentOS has also removed all CentOS 6 YUM repos so yum update won't work any more. If you try a yum update on CentOS 6, you'll get an error message similar to the one below:
    Code (Text):
    yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    Setting up Update Process
    Loading mirror speeds from cached hostfile
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
     Eg. Invalid release/repo/arch combination/
    removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
    

    There are no valid mirrors in /var/cache/yum/base/mirrorlist.txt as CentOS 6 mirrorlist has been removed due to it's EOL status.


    CentOS 6 Vault Archives



    However, some CentOS 6 folks might not be able to move ASAP and need time and they may have not always kept CentOS 6 up to date so have some outstanding CentOS 6 YUM updates to be applied before the EOL deadline came. For such cases, CentOS 6 have moved their YUM packages to an archive vault as has EPEL and SCL YUM repositories. You can switch to those archived repos to access CentOS 6 updates that were available before CentOS 6.10 went EOL on November 30, 2020.

    I wrote a script which can switch a CentOS 6 base, EPEL and SCL YUM repos to the archived versions so you can access such pre-EOL YUM updates.

    You can run this script using below commands
    Code (Text):
    mkdir -p /root/tools
    cd /root/tools
    wget https://gist.github.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/centos6-eolfix.sh
    chmod +x centos6-eolfix.sh
    ./centos6-eolfix.sh
    

    You'll get a similar output as below where you existing relevant .repo files will be backed up with a .eol extension added before being replaced with updated repo files.
    Code (Text):
    ./centos6-eolfix.sh
    
    backup existing centos 6 repo files
    
    cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.eol
    cp -a /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.eol
    cp -a /etc/yum.repos.d/CentOS-SCLo-scl.repo /etc/yum.repos.d/CentOS-SCLo-scl.repo.eol
    cp -a /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo.eol
    
    download archived centos 6 version repo files
    
    wget -nv -4 -O /etc/yum.repos.d/CentOS-Base.repo https://gist.github.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-Base.repo
    2020-12-21 07:53:26 URL:https://gist.githubusercontent.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-Base.repo [2437/2437] -> "/etc/yum.repos.d/CentOS-Base.repo" [1]
    wget -nv -4 -O /etc/yum.repos.d/epel.repo https://gist.github.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/epel.repo
    2020-12-21 07:53:26 URL:https://gist.githubusercontent.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/epel.repo [1313/1313] -> "/etc/yum.repos.d/epel.repo" [1]
    wget -nv -4 -O /etc/yum.repos.d/CentOS-SCLo-scl.repo https://gist.github.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-SCLo-scl.repo
    2020-12-21 07:53:26 URL:https://gist.githubusercontent.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-SCLo-scl.repo [1186/1186] -> "/etc/yum.repos.d/CentOS-SCLo-scl.repo" [1]
    wget -nv -4 -O /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo https://gist.github.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-SCLo-scl-rh.repo
    2020-12-21 07:53:27 URL:https://gist.githubusercontent.com/centminmod/073140857c1d97ec7cb87d2a8f3bff0f/raw/CentOS-SCLo-scl-rh.repo [1153/1153] -> "/etc/yum.repos.d/CentOS-SCLo-scl-rh.repo" [1]
    
    yum sync
    
    yum clean all
    Loaded plugins: fastestmirror, priorities, versionlock
    Cleaning repos: base centos-sclo-rh centos-sclo-sclo draios epel extras ius mariadb rpmforge slc6-scl updates
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    
    yum repolist all
    Loaded plugins: fastestmirror, priorities, versionlock
    Determining fastest mirrors
     * rpmforge: mirror.chpc.utah.edu
    base                                                                                                                                                                                                                               | 3.7 kB     00:00   
    base/primary_db                                                                                                                                                                                                                    | 4.7 MB     00:03   
    centos-sclo-rh                                                                                                                                                                                                                     | 3.0 kB     00:00   
    centos-sclo-rh/primary_db                                                                                                                                                                                                          | 1.5 MB     00:01   
    centos-sclo-sclo                                                                                                                                                                                                                   | 2.9 kB     00:00   
    centos-sclo-sclo/primary_db                                                                                                                                                                                                        | 166 kB     00:00   
    draios                                                                                                                                                                                                                             | 2.9 kB     00:00   
    draios/primary_db                                                                                                                                                                                                                  |  23 kB     00:00   
    epel                                                                                                                                                                                                                               | 4.7 kB     00:00   
    epel/primary_db                                                                                                                                                                                                                    | 6.1 MB     00:00   
    extras                                                                                                                                                                                                                             | 3.4 kB     00:00   
    extras/primary_db                                                                                                                                                                                                                  |  29 kB     00:00   
    ius                                                                                                                                                                                                                                | 1.3 kB     00:00   
    ius/primary                                                                                                                                                                                                                        |  35 kB     00:00   
    ius                                                                                                                                                                                                                                               130/130
    mariadb                                                                                                                                                                                                                            | 2.9 kB     00:00   
    mariadb/primary_db                                                                                                                                                                                                                 |  41 kB     00:00   
    rpmforge                                                                                                                                                                                                                           | 1.9 kB     00:00   
    rpmforge/primary_db                                                                                                                                                                                                                | 2.7 MB     00:00   
    slc6-scl                                                                                                                                                                                                                           | 2.6 kB     00:00   
    slc6-scl/primary_db                                                                                                                                                                                                                | 1.0 MB     00:01   
    updates                                                                                                                                                                                                                            | 3.4 kB     00:00   
    updates/primary_db                                                                                                                                                                                                                 |  12 MB     00:08   
    1583 packages excluded due to repository priority protections
    repo id                                                                                   repo name                                                                                                                                   status
    C6.0-base                                                                                 CentOS-6.0 - Base                                                                                                                           disabled
    C6.0-centosplus                                                                           CentOS-6.0 - CentOSPlus                                                                                                                     disabled
    C6.0-contrib                                                                              CentOS-6.0 - Contrib                                                                                                                        disabled
    C6.0-extras                                                                               CentOS-6.0 - Extras                                                                                                                         disabled
    C6.0-updates                                                                              CentOS-6.0 - Updates                                                                                                                        disabled
    C6.1-base                                                                                 CentOS-6.1 - Base                                                                                                                           disabled
    C6.1-centosplus                                                                           CentOS-6.1 - CentOSPlus                                                                                                                     disabled
    C6.1-contrib                                                                              CentOS-6.1 - Contrib                                                                                                                        disabled
    C6.1-extras                                                                               CentOS-6.1 - Extras                                                                                                                         disabled
    C6.1-updates                                                                              CentOS-6.1 - Updates                                                                                                                        disabled
    C6.2-base                                                                                 CentOS-6.2 - Base                                                                                                                           disabled
    C6.2-centosplus                                                                           CentOS-6.2 - CentOSPlus                                                                                                                     disabled
    C6.2-contrib                                                                              CentOS-6.2 - Contrib                                                                                                                        disabled
    C6.2-extras                                                                               CentOS-6.2 - Extras                                                                                                                         disabled
    C6.2-updates                                                                              CentOS-6.2 - Updates                                                                                                                        disabled
    C6.3-base                                                                                 CentOS-6.3 - Base                                                                                                                           disabled
    C6.3-centosplus                                                                           CentOS-6.3 - CentOSPlus                                                                                                                     disabled
    C6.3-contrib                                                                              CentOS-6.3 - Contrib                                                                                                                        disabled
    C6.3-extras                                                                               CentOS-6.3 - Extras                                                                                                                         disabled
    C6.3-updates                                                                              CentOS-6.3 - Updates                                                                                                                        disabled
    C6.4-base                                                                                 CentOS-6.4 - Base                                                                                                                           disabled
    C6.4-centosplus                                                                           CentOS-6.4 - CentOSPlus                                                                                                                     disabled
    C6.4-contrib                                                                              CentOS-6.4 - Contrib                                                                                                                        disabled
    C6.4-extras                                                                               CentOS-6.4 - Extras                                                                                                                         disabled
    C6.4-updates                                                                              CentOS-6.4 - Updates                                                                                                                        disabled
    C6.5-base                                                                                 CentOS-6.5 - Base                                                                                                                           disabled
    C6.5-centosplus                                                                           CentOS-6.5 - CentOSPlus                                                                                                                     disabled
    C6.5-contrib                                                                              CentOS-6.5 - Contrib                                                                                                                        disabled
    C6.5-extras                                                                               CentOS-6.5 - Extras                                                                                                                         disabled
    C6.5-updates                                                                              CentOS-6.5 - Updates                                                                                                                        disabled
    C6.6-base                                                                                 CentOS-6.6 - Base                                                                                                                           disabled
    C6.6-centosplus                                                                           CentOS-6.6 - CentOSPlus                                                                                                                     disabled
    C6.6-contrib                                                                              CentOS-6.6 - Contrib                                                                                                                        disabled
    C6.6-extras                                                                               CentOS-6.6 - Extras                                                                                                                         disabled
    C6.6-updates                                                                              CentOS-6.6 - Updates                                                                                                                        disabled
    C6.7-base                                                                                 CentOS-6.7 - Base                                                                                                                           disabled
    C6.7-centosplus                                                                           CentOS-6.7 - CentOSPlus                                                                                                                     disabled
    C6.7-contrib                                                                              CentOS-6.7 - Contrib                                                                                                                        disabled
    C6.7-extras                                                                               CentOS-6.7 - Extras                                                                                                                         disabled
    C6.7-updates                                                                              CentOS-6.7 - Updates                                                                                                                        disabled
    C6.8-base                                                                                 CentOS-6.8 - Base                                                                                                                           disabled
    C6.8-centosplus                                                                           CentOS-6.8 - CentOSPlus                                                                                                                     disabled
    C6.8-contrib                                                                              CentOS-6.8 - Contrib                                                                                                                        disabled
    C6.8-extras                                                                               CentOS-6.8 - Extras                                                                                                                         disabled
    C6.8-updates                                                                              CentOS-6.8 - Updates                                                                                                                        disabled
    C6.9-base                                                                                 CentOS-6.9 - Base                                                                                                                           disabled
    C6.9-centosplus                                                                           CentOS-6.9 - CentOSPlus                                                                                                                     disabled
    C6.9-contrib                                                                              CentOS-6.9 - Contrib                                                                                                                        disabled
    C6.9-extras                                                                               CentOS-6.9 - Extras                                                                                                                         disabled
    C6.9-updates                                                                              CentOS-6.9 - Updates                                                                                                                        disabled
    base                                                                                      CentOS-6 - Base                                                                                                                             enabled: 5,107+1,606
    base-debuginfo                                                                            CentOS-6 - Debuginfo                                                                                                                        disabled
    c6-media                                                                                  CentOS-6 - Media                                                                                                                            disabled
    centos-sclo-rh                                                                            CentOS-6 - SCLo rh                                                                                                                          enabled:     3,827+8
    centos-sclo-rh-debuginfo                                                                  CentOS-6 - SCLo rh Debuginfo                                                                                                                disabled
    centos-sclo-rh-source                                                                     CentOS-6 - SCLo rh Sources                                                                                                                  disabled
    centos-sclo-rh-testing                                                                    CentOS-6 - SCLo rh Testing                                                                                                                  disabled
    centos-sclo-sclo                                                                          CentOS-6 - SCLo sclo                                                                                                                        enabled:         436
    centos-sclo-sclo-debuginfo                                                                CentOS-6 - SCLo sclo Debuginfo                                                                                                              disabled
    centos-sclo-sclo-source                                                                   CentOS-6 - SCLo sclo Sources                                                                                                                disabled
    centos-sclo-sclo-testing                                                                  CentOS-6 - SCLo sclo Testing                                                                                                                disabled
    centosplus                                                                                CentOS-6 - Plus                                                                                                                             disabled
    contrib                                                                                   CentOS-6 - Contrib                                                                                                                          disabled
    cr                                                                                        CentOS-6 - CR                                                                                                                               disabled
    draios                                                                                    Draios                                                                                                                                      enabled:          47
    epel                                                                                      Extra Packages for Enterprise Linux 6 - x86_64                                                                                              enabled: 9,476+3,105
    epel-debuginfo                                                                            Extra Packages for Enterprise Linux 6 - x86_64 - Debug                                                                                      disabled
    epel-source                                                                               Extra Packages for Enterprise Linux 6 - x86_64 - Source                                                                                     disabled
    epel-testing                                                                              Extra Packages for Enterprise Linux 6 - Testing - x86_64                                                                                    disabled
    epel-testing-debuginfo                                                                    Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug                                                                            disabled
    epel-testing-source                                                                       Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source                                                                           disabled
    extras                                                                                    CentOS-6 - Extras                                                                                                                           enabled:          47
    
     
Thread Status:
Not open for further replies.