Upgrading from v6.4 to 6.8

Issues related to applications and software problems
Post Reply
ScottB
Posts: 4
Joined: 2017/03/23 19:03:26

Upgrading from v6.4 to 6.8

Post by ScottB » 2017/03/23 19:10:37

I am trying to upgrade CentOS from v6.4 to 6.8 but when I try

Code: Select all

yum update
it says
Setting up Update Process
No Packages marked for Update
.

I tried

Code: Select all

yum clean all
that resulted in
Cleaning repos: base extras updates
Cleaning up Everything
doing
yum update
after that gave me

Code: Select all

Setting up Update Process
base                                                                                       | 3.7 kB     00:00
base/primary_db                                                                            | 4.6 MB     00:00
extras                                                                                     | 3.4 kB     00:00
extras/primary_db                                                                          |  30 kB     00:00
updates                                                                                    | 3.4 kB     00:00
updates/primary_db                                                                         | 2.1 MB     00:00
No Packages marked for Update

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrading from v6.4 to 6.8

Post by TrevorH » 2017/03/23 19:40:38

Post the contents of /etc/yum.repos.d/CentOS-Base.repo
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ScottB
Posts: 4
Joined: 2017/03/23 19:03:26

Re: Upgrading from v6.4 to 6.8

Post by ScottB » 2017/03/27 12:24:53

TrevorH wrote:Post the contents of /etc/yum.repos.d/CentOS-Base.repo
Sorry for the late reply. I forgot to subscribe to the thread.

Here is what it says;
root@webserver [~]# /etc/yum.repos.d/CentOS-Base.repo
-bash: /etc/yum.repos.d/CentOS-Base.repo: Permission denied

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrading from v6.4 to 6.8

Post by TrevorH » 2017/03/27 12:46:20

You can't execute it, it's a config file and we need to see the contents of it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ScottB
Posts: 4
Joined: 2017/03/23 19:03:26

Re: Upgrading from v6.4 to 6.8

Post by ScottB » 2017/03/27 12:56:28

@TrevorH Sorry, here are the contents;

Code: Select all

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://p3plmirror01.prod.phx3.secureserver.net/download/mirrors/cos-$releasever.$basearch
failovermethod=priority
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://p3plmirror01.prod.phx3.secureserver.net/download/mirrors/cos-$releasever-updates.$basearch
failovermethod=priority
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://p3plmirror01.prod.phx3.secureserver.net/download/mirrors/cos-$releasever-extras.$basearch
failovermethod=priority
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://p3plmirror01.prod.phx3.secureserver.net/download/mirrors/cos-$releasever-centosplus.$basearch
failovermethod=priority
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://p3plmirror01.prod.phx3.secureserver.net/download/mirrors/cos-$releasever-contrib.$basearch
failovermethod=priority
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrading from v6.4 to 6.8

Post by TrevorH » 2017/03/27 13:53:42

OK, so your problem is that your provider has replaced all the mirrorlist= lines in that with a URL that points to their own servers. They may have done this because they've modified the content or they may have done it for network bandwidth issues but it would appear that their content is massively out of date though, since I cannot get to that URL from here, I cannot check to see what is there. You should probably report this to them for two reasons: first to ask if they modify the contents and if so, why and what will break if you use the correct unmodified content and second to tell them that their mirror is 4 years out of date and needs to be fixed so that their customers are not exposed to already fixed security bugs.

If you want to change the URL back to the CentOS supplied one then each of those lines should point to

mirrorlist=http://mirrorlist.centos.org/?release=$ ... ch&repo=os

where each &repo= should point to os/updates/extras/centosplus and contrib respectively. Depending on if and how they've modified the content, that might break your system though so you really need to know why they did this.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ScottB
Posts: 4
Joined: 2017/03/23 19:03:26

Re: Upgrading from v6.4 to 6.8

Post by ScottB » 2017/03/27 13:56:06

@TrevorH Thank you. I will contact GoDaddy asap!

Post Reply