Net Hosting Talk

We are a community of individuals and businesses passionate about web hosting. Let's build, learn, and grow together.

How to Upgrade CentOS 6 from 6.8 ?

tranzmedia

New Arrival
Registered
From the last couple of days trying to upgrade Centos 6 to centos 6.6 but when upgraded it update to the latest version. Can you anyone suggest me to resolve this. :huh:
 
  • Advertisement
  • From the last couple of days trying to upgrade Centos 6 to centos 6.6 but when upgraded it update to the latest version. Can you anyone suggest me to resolve this. :huh:
    Try to update is first clean all, second update glibc, yum, rpm and python packages and then update other packages like following:

    yum clean all
    yum update glibc* yum* rpm* python*
    yum update
     
    there is no point upgrading from Centos 6 to centos 6.6, you should upgrade to 7.x at least to receive any security and patch update from Centos.
     
    You can try this: CentOS 6.6 is old and the normal update will go to the latest 6.x version. To get exactly 6.6, you need to use a specific repository or ISO for 6.6.

    Steps:

    Backup your data.

    Change your repo files to point to CentOS 6.6 vault repo. Example: http://vault.centos.org/6.6/os/x86_64/.

    Run yum clean all.

    Run yum update again.

    This should update your system to 6.6 only.

    Be aware that CentOS 6 is end of life and not supported anymore.

    If you want, I can write exact repo file content for 6.6. Do you want me to do that?
     
  • Advertisement
  • If I understand you, yum update keeps taking CentOS 6 to the newest 6.x, but you need exactly 6.6.

    Here’s the short way to pin to 6.6 (use the CentOS Vault):
    1. Backup/snapshot first.
    2. Edit /etc/yum.repos.d/CentOS-Base.repo and replace Base/Updates/Extras with:
    You don't have permission to view the spoiler content. Log in or register now.
    1. Remove any mirrorlist= lines and disable other repos.
    2. Run: yum clean all && yum makecache && yum --releasever=6.6 update -y.
    Practical tip: keep a rollback (snapshot/backup) in case dependencies downgrade unexpectedly.

    We see this often with legacy VMs; pinning to Vault works, but note CentOS 6 is EOL (since 2020)—no security patches. Plan a move to a supported OS (Rocky/Alma 8/9) soon to avoid downtime/risk.
     

    Advertisement

    Back
    Top