LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 06-16-2009, 10:02 AM   #1
creedog
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Rep: Reputation: 0
RHEL/CentOS repo structure


Can someone please explain to me the logic behind how the repos are laid out for CentOS/RHEL?

For example under this link
http://mirror.centos.org/centos/4/

there is a centosplus repo, an os repo, updates repo and an extras repo.

So lets look at the extras repo...
So I have rpms here
http://mirror.centos.org/centos/4/extras/SRPMS/
and
http://mirror.centos.org/centos/4/extras/x86_64/RPMS/

So which one should I use to create a local repo for 4.6, x86_64?

Also which repos should I need (centosplus repo, os repo, updates repo, extras repo) when setting up my own internal repo. Will use to build, update and patch RHEL 4 and 5 servers.

Thanks.
 
Old 06-16-2009, 12:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
I'm not clear what your first question is there. SRPMS are the source packages, and as such architecture (i386, x86_64, ppc etc..) are not relevant, so they are at the same heirarchical level as those architectures.

If you want to create your own, then there are handy tools like reposync which will take your local yum mirrorlists on your system (or other files too if you want) and mirror them locally ready for use.

Additionally, you might want to go the whole hog and actually install spacewalk, which is the open source version of the Redhat Satellite product, allowing you to build systems and push out config changes and package updates to your internal estate and all that. It's fun.
 
Old 06-16-2009, 07:55 PM   #3
creedog
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
I'm not clear what your first question is there. SRPMS are the source packages, and as such architecture (i386, x86_64, ppc etc..) are not relevant, so they are at the same heirarchical level as those architectures.

If you want to create your own, then there are handy tools like reposync which will take your local yum mirrorlists on your system (or other files too if you want) and mirror them locally ready for use.

Additionally, you might want to go the whole hog and actually install spacewalk, which is the open source version of the Redhat Satellite product, allowing you to build systems and push out config changes and package updates to your internal estate and all that. It's fun.



So SRPMS are for all architecture levels? And the rpms under x86_64 are just for x86_64?

And again why are there so many different branches (centosplus repo, an os repo, updates repo and an extras repo)?
 
Old 06-16-2009, 08:35 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try this link http://wiki.centos.org/FAQ/General#h...6cde25c081fcca
 
Old 06-17-2009, 07:15 AM   #5
creedog
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
Ah... thank you..
 
Old 06-18-2009, 12:14 PM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,352

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by creedog View Post
Can someone please explain to me the logic behind how the repos are laid out for CentOS/RHEL?

For example under this link
http://mirror.centos.org/centos/4/

there is a centosplus repo, an os repo, updates repo and an extras repo.

So lets look at the extras repo...
So I have rpms here
http://mirror.centos.org/centos/4/extras/SRPMS/
and
http://mirror.centos.org/centos/4/extras/x86_64/RPMS/

So which one should I use to create a local repo for 4.6, x86_64?

Also which repos should I need (centosplus repo, os repo, updates repo, extras repo) when setting up my own internal repo. Will use to build, update and patch RHEL 4 and 5 servers.

Thanks.
I think u already have your answer for the 1st question.
For 2nd question ,if u r subscribed from redhat u can do that other wise use this repo,

Code:
#  Red Hat Enterprise Linux 5 / i386:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# Red Hat Enterprise Linux 5 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
 
Old 06-18-2009, 03:51 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by divyashree View Post
For 2nd question ,if u r subscribed from redhat u can do that other wise use this repo,

I'm not sure what a RH subscription has to do with using CentOS repos.

Sorry, I'd missed that question in my first read.

The SRPS is source rpms, so you would need to compile each one - build the binary rpm to use them, which I doubt you want to do.

Use the x86_64
 
Old 06-19-2009, 03:20 AM   #8
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,352

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by billymayday View Post
I'm not sure what a RH subscription has to do with using CentOS repos.

Sorry, I'd missed that question in my first read.

The SRPS is source rpms, so you would need to compile each one - build the binary rpm to use them, which I doubt you want to do.

Use the x86_64
I told that for RHEL4/5 ,not for centos..check the following link,u'll get the answer...

Code:
http://dag.wieers.com/rpm/FAQ.php
 
Old 06-19-2009, 03:41 AM   #9
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by divyashree View Post
I told that for RHEL4/5 ,not for centos..check the following link,u'll get the answer...

Code:
http://dag.wieers.com/rpm/FAQ.php

rpmforge and CentOS extras aren't the same thing, which is what you seem to be implying.

If I've mistaken what you said, sorry, but it's not very clear.
 
Old 06-20-2009, 09:48 AM   #10
creedog
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
I'm not sure what a RH subscription has to do with using CentOS repos.

Sorry, I'd missed that question in my first read.

The SRPS is source rpms, so you would need to compile each one - build the binary rpm to use them, which I doubt you want to do.

Use the x86_64

Sorry, I actually meant to say Centos 4/5 not RHEL.
 
  


Reply

Tags
rpms


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find a valid baseurl for repo: base --- CentOS 5 Ascendancy5 Linux - Newbie 7 01-12-2009 06:55 AM
fedora 9 repo on centos 5.2 ssilayaraja Linux - Server 1 09-10-2008 12:36 PM
CentOS 5.2 & Livina like Repo zcrxsir88 Linux - Server 1 08-12-2008 06:02 PM
Difficulty Adding ATRPMS Repo to Yumex Under CentOS 5 Linux31 Red Hat 6 04-17-2008 01:24 PM
yum update problem, centos 4.92 repo no longer available parv Linux - Distributions 3 04-15-2007 07:10 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration