I am using CentOS 5 and I am confused on what file to put in my yum.repo.d to update my CentOS.
Can some one provide me with a link or an example file.
Thanks,
rotsen
13 thoughts on - How To Update
do you mean “update”, or “upgrade” ??
update simply means to install whatever fixes/enhancements have been released for CentOS 5. you still end up with CentOS 5, but it has all the various fixes/enhancements CentOS has made available for it. You can do the “update” by simply becoming root (in a terminal,
“su -” and enter root’s password) then type in “yum update”. that’s it.
upgrade means to go to CentOS-6 or CentOS-7. Until recently, there has been no CentOS-blessed upgrade mechanism (though in earlier versions I have used the installer’s upgrade mode, it was always suggested not to do so because things could go bad in a hurry).
The recommended method of doing a system upgrade was to back up ALL
your data, install the new version over the prior one, then restore your data. there is a new upgrade tool now, and some people have tested it, but I’m not sure if it is officially approved, yet, or not. And, unfortunately, I don’t remember what it’s called.
Fred
Do you have the /etc/yum.repos.d/CentOS-Base.repo file that’s part of the CentOS-release package? That’s all you should need.
Or were you asking how to upgrade from CentOS 5 to CentOS 6 or 7?
That is the file I am missing. Where can I get a copy of it.
—
john r pierce 37N 122W
somewhere on the middle of the left coast
I’d start here: http://vault.CentOS.org/
and work down through your current OS version then /os/ and arch, then CentOS/ and download/instal the CentOS-release rpm from there. You are probably pretty far out-of-date (a bad thing…) if yum has been broken.
the question is, how did these files NOT get installed on a CentOS 5
system? they are part of the most minimal package set. Is this really CentOS 5, or is it some 3rd party hacked virtual machine based on C5 ?
—
john r pierce 37N 122W
somewhere on the middle of the left coast
I messed the files up at some point, that is why I am trying to get a hold of the original repo files
At the beginning of this thread you said it was CentOS 5. Now it’s CentOS 6.5? Be sure to put the right repo configuration files in place, because otherwise you’ll end up with a very broken system.
13 thoughts on - How To Update
do you mean “update”, or “upgrade” ??
update simply means to install whatever fixes/enhancements have been released for CentOS 5. you still end up with CentOS 5, but it has all the various fixes/enhancements CentOS has made available for it. You can do the “update” by simply becoming root (in a terminal,
“su -” and enter root’s password) then type in “yum update”. that’s it.
upgrade means to go to CentOS-6 or CentOS-7. Until recently, there has been no CentOS-blessed upgrade mechanism (though in earlier versions I have used the installer’s upgrade mode, it was always suggested not to do so because things could go bad in a hurry).
The recommended method of doing a system upgrade was to back up ALL
your data, install the new version over the prior one, then restore your data. there is a new upgrade tool now, and some people have tested it, but I’m not sure if it is officially approved, yet, or not. And, unfortunately, I don’t remember what it’s called.
Fred
Do you have the /etc/yum.repos.d/CentOS-Base.repo file that’s part of the CentOS-release package? That’s all you should need.
Or were you asking how to upgrade from CentOS 5 to CentOS 6 or 7?
That is the file I am missing. Where can I get a copy of it.
Thanks
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
from the CentOS-release RPM
—
john r pierce 37N 122W
somewhere on the middle of the left coast
I’d start here:
http://vault.CentOS.org/
and work down through your current OS version then /os/ and arch, then CentOS/ and download/instal the CentOS-release rpm from there. You are probably pretty far out-of-date (a bad thing…) if yum has been broken.
—
Les Mikesell
lesmikesell@gmail.com
I will take a look.
THANKS!!!
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
the question is, how did these files NOT get installed on a CentOS 5
system? they are part of the most minimal package set. Is this really CentOS 5, or is it some 3rd party hacked virtual machine based on C5 ?
—
john r pierce 37N 122W
somewhere on the middle of the left coast
I messed the files up at some point, that is why I am trying to get a hold of the original repo files
Thanks CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
It is CentOS 6.5.
At the beginning of this thread you said it was CentOS 5. Now it’s CentOS 6.5? Be sure to put the right repo configuration files in place, because otherwise you’ll end up with a very broken system.
I just look amd it is 6.5
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
rpm -ivh http://mirror.CentOS.org/CentOS/6/os/x86_64/Packages/CentOS-release-6-5.el6.CentOS.11.1.x86_64.rpm
or
rpm -ivh http://mirror.CentOS.org/CentOS/6/os/i386/Packages/CentOS-release-6-5.el6.CentOS.11.1.i686.rpm
depending if its 64 or 32bit.
if it complains the package is already installed, run it again with
–replacepkgs ……
—
john r pierce 37N 122W
somewhere on the middle of the left coast
Thanks!!!!
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS