LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Redhat 5 and CentOS updates? (https://www.linuxquestions.org/questions/linux-server-73/redhat-5-and-centos-updates-663376/)

watcher69b 08-17-2008 07:19 AM

Redhat 5 and CentOS updates?
 
Since RH 5 and CentOS 5 are almost 99% the same can i point my RH servers to CentOS repos? Would it work? Has anyone tried it?

billymayday 08-17-2008 07:38 AM

Yes. I believe so. Apparently, yes.

b0uncer 08-17-2008 08:27 AM

They say CentOS should be "RH with logos and such stripped", so based on that there should be no problems. Don't take that granted because I said it, though -- I haven't tried it myself. But why would you want to use CentOS repos for RH, if you're using RH (which is commercial, right?) -- I thought if you go with RH, you'd stick to their official support and reposities? Or just go with CentOS instead..

If you do mix up the two, make sure you have working backups available in case something goes wrong :) a testing environment wouldn't be bad either, but I guess if you had one, you wouldn't have asked in the first place..

watcher69b 08-17-2008 08:49 AM

Quote:

I thought if you go with RH, you'd stick to their official support and reposities? Or just go with CentOS instead..
the problem is that my company loves RH. I like CentOS because it is free. Since you have to pay for updates and the Red Hat Network (RHN) i want to find a way that they can use RH and i dont feel bad paying for updates...

sarajevo 08-17-2008 11:04 AM

Quote:

Originally Posted by watcher69b (Post 3250579)
the problem is that my company loves RH. I like CentOS because it is free. Since you have to pay for updates and the Red Hat Network (RHN) i want to find a way that they can use RH and i dont feel bad paying for updates...

You want free and stable system ...go for it www.debian.org, by the way many people think that debian stable is better in all fields than RHEL.
I believe it is true, debian is solid rock

watcher69b 01-11-2009 12:27 PM

OK here is how I got this to work...

touch /etc/yum.repos.d/centos.repo
vi centos.repo

paste this into the file

############################################################
## RedHat EL5 using CentOS 5 repos. ##
############################################################

[base]
name=Red Hat Linux - Base
#mirrorlist=http://mirror.centos.org/centos-5/5/os/i386/repodata/
baseurl=http://mirror.centos.org/centos-5/5/os/i386/
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#released updates
[updates]
name=Red Hat Linux - Updates
#mirrorlist=http://mirror.centos.org/centos/5/updates/i386/repodata/
baseurl=http://mirror.centos.org/centos-5/5/updates/i386/
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#packages used/produced in the build but not released
#[addons]
#name=CentOS-5 - Addons
#mirrorlist=http://mirror.centos.org/centos/5/addons/i386/repodata/
#baseurl=http://mirror.centos.org/centos/5/addons/i386/repodata/
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

#additional packages that may be useful
#[extras]
#name=CentOS-5 - Extras
#mirrorlist=http://mirror.centos.org/centos/5/extras/i386/
#baseurl=http://mirror.centos.org/centos/5/extras/i386/
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#priority=1

##############################
# end of file #
##############################

once you have pasted then
qw

Good luck!

billymayday 01-11-2009 02:03 PM

You didn't need the "touch" step btw.

If you would like the complete set of CentOS .repo files, send me an address via an email by clicking on my name to the left and I can email them to you.


All times are GMT -5. The time now is 02:48 PM.