Yum failing - -yes- I understand Cent 5 is no longer updated

General support questions including new installations
Post Reply
Bob39dj3
Posts: 2
Joined: 2017/04/07 22:24:50

Yum failing - -yes- I understand Cent 5 is no longer updated

Post by Bob39dj3 » 2017/04/07 22:33:26

Im fully aware that centos5 is no longer updated nor is secure.

However, there are many scenarios where a user may need to use yum on a machine or VM that is running centos 5 but is not facing the internet nor will be in anyway.

There has to be a repo that is still online which i can use to install basic software via yum.

I have tried setting enabled=1 (vs 0) in CentOS-Vault.repo i still get 404 on anything i try to do with yum (yes i can see via broswer that the url's are really 404) -

please please, point me in the right direction, any servers ive deployed in the past 2 years are running cent6, but there are servers / apps that i need to pull data from / migrate and must use cent5 , and to do that i need to be able to install tools via yum ( *i know those tools , and the OS , and everything about the server are not secure / not supported any longer).

there has to be an archive repo or some way to access yum's software without having to do a full re-install every 4-6 years.

thanks

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

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by TrevorH » 2017/04/07 22:45:32

Yes, you want to adjust your /etc/yum.repos.d/CentOS-Base.repo file to use baseurl= and pointing to http://vault.centos.org/5.11/os/$arch/ and ditto for the same url with updates and extras instead of /os/

Good luck with the migration. I'd go straight for 7 if I were you. CentOS 6 hits the start of Production Phase 3 in another month (May 10th 2017) and will only receive critical updates for the remaining 3 years of its life.
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

Bob39dj3
Posts: 2
Joined: 2017/04/07 22:24:50

[SOLVED] Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by Bob39dj3 » 2017/04/08 00:10:06

TrevorH wrote:Yes, you want to adjust your /etc/yum.repos.d/CentOS-Base.repo file to use baseurl= and pointing to http://vault.centos.org/5.11/os/$arch/ and ditto for the same url with updates and extras instead of /os/

Good luck with the migration. I'd go straight for 7 if I were you. CentOS 6 hits the start of Production Phase 3 in another month (May 10th 2017) and will only receive critical updates for the remaining 3 years of its life.

Awesome! thank you so much - this is exactly what i was looking for (but couldn't find after googling for nearly 4 hours)- Ive only been using Linux/Cent for about 5 or so years, so this is the first time ive encountered a Release going dead/past its end of maintenance date (i was aware of cent 5's expiration date though). My scenario is: I have been given some backups (the .img files) of old guest Xen VMs @ cent 5.11, from which i need to start them up and export various data from, so i can move that data to new servers/VMs + apps (running on cent 6 and cent 7, where i can)

For anyone else looking for this temp fix for yum on Cent 5:

as TrevorH instructed (i tried to change subject to [solved)]:

I edited /etc/yum.repos.d/CentOS-Base.repo such that [base], [extras] , [updates] - now use: baseurl=http://vault.centos.org/$releasever/updates/$basearch/
(and i had to remove the "#" from the beginning of the line to un-comment it).

so here is how my /etc/yum.repos.d/CentOS-Base.repo looks now (and yum is again working to install software):

Code: Select all

[root@localhost yum.repos.d]# cat CentOS-Base.repo
# 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://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/x86_64/
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/5.11/updates/x86_64/
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/5.11/extras/x86_64/
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


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

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by TrevorH » 2017/04/11 14:03:03

You shouldn't really have both mirrorlist= and baseurl= at the same time. Given that mirrorlist= won't return anything meaningful, that means use baseurl=.
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

sujeet
Posts: 1
Joined: 2017/04/11 20:02:09

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by sujeet » 2017/04/11 20:05:21

Dear ALL ,
i have Try THis all but still my Yum update not working Please Help me i have 4 year old Server lost of data and Software on it


[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... ch&repo=os
baseurl=http://vault.centos.org/5.11/os/x86_64/
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... po=updates
baseurl=http://vault.centos.org/5.11/updates/x86_64/
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... epo=extras
baseurl=http://vault.centos.org/5.11/extras/x86_64/
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

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

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by TrevorH » 2017/04/12 01:21:09

The URLs you used look correct. Try a yum clean all and if that doesn't help then you need to supply the output from yum update.
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

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by avij » 2017/04/12 03:22:52

Also as stated earlier, you should comment out the mirrorlist=... rows.

jakister
Posts: 1
Joined: 2017/04/17 16:49:18

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by jakister » 2017/04/17 16:52:57

Thanks very much for your very clear instructions on how to get updates for 5.11. You have saved me a lot of time!

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by avij » 2017/04/17 20:47:31

jakister wrote:Thanks very much for your very clear instructions on how to get updates for 5.11. You have saved me a lot of time!
Just to make sure you understand the situation.. There will be no more CentOS 5.11 updates, ever. The last update ended up being tzdata-2017b-1.el5. If you expect more 5.11 updates to show up in vault, you are severely mistaken.

The only use case of enabling the updates repo from vault is that if you want to install packages that you didn't have previously installed. If you are not planning to install any new packages, you could just as well disable the repositories.

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

Re: Yum failing - -yes- I understand Cent 5 is no longer updated

Post by TrevorH » 2017/04/17 22:06:52

And don't forget... start planning your migration to something supported, sooner rather than later. It only has to be the _next_ update made available for CentOS 6 and 7 that fixes some critical flaw that is not then ever going to be fixed on CentOS 5 and you will be forced into rushing an update to a newer version through. Don't do that, start now and do it at a planned pace instead. Better still, start several months ago...
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

Post Reply