Yum update error on centos

I am trying to update php from 5.2 to atleast 5.3.

Server version is Centos 5.5

[root@linode ~]# yum update

Loaded plugins: fastestmirror

Determining fastest mirrors

YumRepo Error: All mirror URLs are not using ftp, http ~~or file.

Eg. /

removing mirrorlist with no valid mirrors: /var/cache/yum/addons/mirrorlist.txt

Error: Cannot find a valid baseurl for repo: addons

Can you please guide me?~~

5 Replies

CentOS 5 has reached its EOL (end of production to be more precise) and its dead and buried. RHEL 5 still has extended-life-cycle-support until 2020.

You should move to CentOS 7 as soon as possible.

I am trying the same …

without yum working, how can we upgrade the OS?

You can NOT upgrade with yum. You need to re-install.

The simple method, is to:

  • create a new linode server (same spec if you like)

  • setup CentOS 7

  • migrate your data between the two servers

  • redirect traffic to new server and power down old server

  • keep a backup of your old server before deleting the server on linode

You can do a "test run" by using a virtual copy of the server with virtualbox.

There are tons of dependencies about what kind of software you run on the server, you need to make sure everything will work correctly under CentOS 7 before you migrate.

i think thats the only option I have …

Can I keep the IP same?

@richardvc:

i think thats the only option I have …

Can I keep the IP same?

You can swap IPs between linodes in the same datacenter. So, you can set the new server up with a new (temporary) IP. When you're ready to cutover, you swap the production IP (IIRC, requires a reboot) to the new server, temp IP to the old server.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct