Hi; On my Fedora Systems [/etc/yum.repos.d] I have the following repos: dag.repo dries.repo fedora-extras.repo fedora.repo fedora-updates.repo freshrpms.repo livna.repo
Two questions: 1) Where can I get a .repo file (with centos url's of course) for the baseic stuff like updates and extras. 1b) Can I use redhat repos?
2) What about the other guys, livna, dag, dries, freshrpms. Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above? 2b Are the url's the same?
Thank you all. nat, a centos newbie.
On Wed, 5 Apr 2006, Nat Gross wrote:
- Where can I get a .repo file (with centos url's of course) for the
baseic stuff like updates and extras.
centos-yumconf is the package you want. Should be on the media.
1b) Can I use redhat repos?
Not without a subscription.
- What about the other guys, livna, dag, dries, freshrpms.
Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above?
Depends on your level of risk aversion/paranoia. This question has been thoroughly discussed on the mailing list. Check the archives.
2b Are the url's the same?
As the ones for Fedora? Probably, with the obvious substitutions.
------------------------------------------------------------------------ Jim Wildman, CISSP, RHCE jim@rossberry.com http://www.rossberry.com "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine
On 4/5/06, Jim Wildman jim@rossberry.com wrote:
On Wed, 5 Apr 2006, Nat Gross wrote:
- Where can I get a .repo file (with centos url's of course) for the
baseic stuff like updates and extras.
centos-yumconf is the package you want. Should be on the media.
1b) Can I use redhat repos?
Not without a subscription.
- What about the other guys, livna, dag, dries, freshrpms.
Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above?
Depends on your level of risk aversion/paranoia. This question has been thoroughly discussed on the mailing list. Check the archives.
2b Are the url's the same?
As the ones for Fedora? Probably, with the obvious substitutions.
Thank you much; -nat
On Wed, 2006-04-05 at 18:22 -0400, Nat Gross wrote:
Hi; On my Fedora Systems [/etc/yum.repos.d] I have the following repos: dag.repo dries.repo fedora-extras.repo fedora.repo fedora-updates.repo freshrpms.repo livna.repo
Two questions:
- Where can I get a .repo file (with centos url's of course) for the
baseic stuff like updates and extras.
There is a package called centos-yumconf that provides the file /etc/yum.repos.d/CentOS-Base.repo. It is installed on all CentOS installs and enables the Base, updates, addons, and extras repos by default. The centosplus and contrib repos are included but disabled by default. Here the default file:
http://mirror.centos.org/centos/4/CentOS-Base.repo
Here is an explanation of the differnt CentOS repos:
http://mirror.centos.org/centos/4/Readme.txt
1b) Can I use redhat repos?
You can use EL4 repos from dag and dries ... and there are 2 repos at http://centos.karan.org/
- What about the other guys, livna, dag, dries, freshrpms.
Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above? 2b Are the url's the same?
You would use the URLS for dag and dries for el4. Karan.org only has EL4 support.
Safe is a relative term. I recommend that you use the protect base plugin. That will prevent replacement of protected files. I also recommend that fastestmirror plugin ... it tests the speed of your mirrors and uses the fastest one if there are multiple mirrors for a repo.
To use the protectbase and fastest mirror plugins, you would install them:
yum install yum-plugin-protectbase yum-plugin-fastestmirror
Then you would edit the file /etc/yum.conf and add this line:
plugins=1
Then you would edit your .repo files and put:
protect=1 or protect=0
in each repo. (1 is to protect that repo ... 0 is to allow updates)
The way it works is ... any repo with protect=1 can replace files from all repos ... but repos with protect=0 can only replace files in other repos with protect=0.
If you don't use protectbase, then any 3rd party repo can end up replacing system files ... this can have a negative effect on the stability of your system.
Thanks, Johnny Hughes
On 4/5/06, Johnny Hughes mailing-lists@hughesjr.com wrote:
On Wed, 2006-04-05 at 18:22 -0400, Nat Gross wrote:
Hi; On my Fedora Systems [/etc/yum.repos.d] I have the following repos: dag.repo dries.repo fedora-extras.repo fedora.repo fedora-updates.repo freshrpms.repo livna.repo
Two questions:
- Where can I get a .repo file (with centos url's of course) for the
baseic stuff like updates and extras.
There is a package called centos-yumconf that provides the file /etc/yum.repos.d/CentOS-Base.repo. It is installed on all CentOS installs and enables the Base, updates, addons, and extras repos by default. The centosplus and contrib repos are included but disabled by default. Here the default file:
Ah. I didn't look *inside* the CentOS-Base.repo file, and assumed that it only had the base repo. This file was correctly installed by the installer.
http://mirror.centos.org/centos/4/CentOS-Base.repo
Here is an explanation of the differnt CentOS repos:
http://mirror.centos.org/centos/4/Readme.txt
1b) Can I use redhat repos?
You can use EL4 repos from dag and dries ... and there are 2 repos at http://centos.karan.org/
- What about the other guys, livna, dag, dries, freshrpms.
Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above? 2b Are the url's the same?
You would use the URLS for dag and dries for el4. Karan.org only has EL4 support.
Safe is a relative term. I recommend that you use the protect base plugin. That will prevent replacement of protected files. I also recommend that fastestmirror plugin ... it tests the speed of your mirrors and uses the fastest one if there are multiple mirrors for a repo.
To use the protectbase and fastest mirror plugins, you would install them:
yum install yum-plugin-protectbase yum-plugin-fastestmirror
Then you would edit the file /etc/yum.conf and add this line:
plugins=1
Then you would edit your .repo files and put:
protect=1 or protect=0
in each repo. (1 is to protect that repo ... 0 is to allow updates)
The way it works is ... any repo with protect=1 can replace files from all repos ... but repos with protect=0 can only replace files in other repos with protect=0.
If you don't use protectbase, then any 3rd party repo can end up replacing system files ... this can have a negative effect on the stability of your system.
Thanks, Johnny Hughes
Thank you, many times, for clear and concise information. -nat
--- Nat Gross nat101l@gmail.com wrote:
Hi; On my Fedora Systems [/etc/yum.repos.d] I have the following repos: dag.repo dries.repo fedora-extras.repo fedora.repo fedora-updates.repo freshrpms.repo livna.repo
Two questions:
- Where can I get a .repo file (with centos url's
of course) for the baseic stuff like updates and extras. 1b) Can I use redhat repos?
- What about the other guys, livna, dag, dries,
freshrpms. Which one of these is safe to use on a production server in conjunction with the repos used in answer to question 1 above? 2b Are the url's the same?
Thank you all. nat, a centos newbie.
You may/may not be aware of potential pitfalls in repository mixing particularly in fedora. If you want the latest and greatest look to fedora. If you want a stable enterprise grade distro for use as a server look to centos.
Don't think about migrating/doing a yum upgrade/downgrade from fedora to centOS by yum as you will experience plenty of hassle. Simply get centos 4.3 on isos and install from sratch.
You should have a CentOS-Base.repo. To install dag get the rpmforge release. Your /etc/yum.repos.d/ should look as follows.
$ ls /etc/yum.repos.d/ CentOS-Base.repo rpmforge.repo mirrors-rpmforge
Improve the mailing list by performing a simple search before posting and reading the faq/etiquette. Thank you!!
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com