LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 08-18-2011, 07:17 AM   #1
xion824
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Rep: Reputation: Disabled
RHEL 6 local YUM repo help


I'm trying to build a local YUM repository for RHEL 6 and am running into an issue. I can get the repo to build, but I cannot get the gruoplist. I can't find a comps.xml file to run the createrepo -g command against, like there is in RHEL 5. Here's what I have so far:

mkdir /yumrepo
copied RHEL 6 DVD contents to /yumrepo/rhel6
createrepo /yumrepo/rhel6/Packages
(repo builds its lis of 3500+ packages)
yum list shows the lsit of all files within the repo correctly.

I run gpk-application, and I receive the error "The group list was invalid."

Ok, I need to create the group list. But I can't figure out how? Can someone please explain what I'm missing here? Never had this much trouble with 5, but I know a lot has changed with 6. Thanks in advance!
 
Old 08-19-2011, 04:08 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you are using the install dvd for this ?
it is it's own group all ready ( install media) , and it is very out of date.
 
Old 08-19-2011, 07:07 PM   #3
xion824
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
I figured it out on my own.

But we were copying the data off the DVD to a local directory because we work on a dark network. No outside connectivity. No choice but to use the files that come with the OS.

I just created a repo directory, copied the files from the dvd into that directory, copied the xxx-comps-rhel6.xml file out of the /repodata folder in the /Packages folder. Then ran createrepo /OS/Packages, followed by createrepo -g xxx-comps-rhel6.xml /OS/Packages. After that, set up a .repo file. Everything worked through YUM commands after that.

Now how do I close this thread??

Last edited by xion824; 08-19-2011 at 07:08 PM. Reason: update
 
1 members found this post helpful.
Old 08-19-2011, 08:49 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i was about to say you might want to read the fedora documentation
https://fedoraproject.org/wiki/How_t...an_RPM_package
or how to forges for cent
http://www.howtoforge.com/creating_a...ository_centos
 
Old 08-19-2011, 09:09 PM   #5
xion824
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
I wasn't trying to create an rm package. And i never modify the yum.conf file. I always create repo files in yum.repos.d. Plus those centos directions don't create the group list.

Doesn't matter. I figured it out anyways. No further posts required.
 
Old 10-27-2012, 09:07 AM   #6
shejin983
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
I followed all your steps.. but still its not working for me..

mkdir /yumrepo
copied RHEL 6 DVD contents to /yumrepo/rhel6
createrepo /yumrepo/rhel6/Packages
createrepo -g xxxxxxxxxxxxxxxx-comps-rhel6-server.xml /yumrepo/rhel6/Packages
created a repository file under /etc/yum.repos.d/
[rhel6_64]
name=Red Hat Enterprise Linux
failovermethod=priority
baseurl=file:///rh6repo/Package
enabled=1
metadata_expire=0d
gpgcheck=0

But still YUM INSTALL not working on my rhel6.2 i868 server
 
Old 10-29-2012, 12:51 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
It would help if the spelling of these 2 lines matched
Code:
createrepo /yumrepo/rhel6/Packages
.
.
.
baseurl=file:///rh6repo/Package
 
Old 10-29-2012, 07:35 AM   #8
shejin983
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
It would help if the spelling of these 2 lines matched
Code:
createrepo /yumrepo/rhel6/Packages
.
.
.
baseurl=file:///rh6repo/Package
Oh I am sorry.. I actually corrected it.. like
createrepo /yumrepo/rhel6/Packages
baseurl=file://yumrepo/rhel6/Packages

BUT STILL UNABLE to YUM INSTALL ....
 
Old 10-29-2012, 07:39 AM   #9
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
server side

cd /etc/yum.repos.d
mv C* /tmp
cat > create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server ---- put ur server side ipaddress
enabled=1
gpgcheck=0

mount /dev/cdrom /mnt
mkdir -p /var/pub/server
cd /mnt/Centos

cp -rfv * /var/pub/server
wait for it to finished it off
move all repositoryrpm to /var/pub/server

cd /var/pub/server
rpm -ivh create.repo --install these package
rpm -ivh vsftpd ---install these package
createrepo -g /var/pub/server


start vsftpd service

service vsftpd restart
chkconfig vsftpd on


client side

cd /etc/yum.repos.d
touch create.repo
vi create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server MENTION UR SERVER IP HERE
enabled=1
gpgcheck=0

Last edited by jsaravana87; 10-29-2012 at 07:49 AM.
 
Old 10-29-2012, 09:54 AM   #10
shejin983
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by arun5002 View Post
server side

cd /etc/yum.repos.d
mv C* /tmp
cat > create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server ---- put ur server side ipaddress
enabled=1
gpgcheck=0

mount /dev/cdrom /mnt
mkdir -p /var/pub/server
cd /mnt/Centos

cp -rfv * /var/pub/server
wait for it to finished it off
move all repositoryrpm to /var/pub/server

cd /var/pub/server
rpm -ivh create.repo --install these package
rpm -ivh vsftpd ---install these package
createrepo -g /var/pub/server


start vsftpd service

service vsftpd restart
chkconfig vsftpd on


client side

cd /etc/yum.repos.d
touch create.repo
vi create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server MENTION UR SERVER IP HERE
enabled=1
gpgcheck=0
Thank you for your kind response.
But I am not in a SERVER-CLIENT environment.
I am using RHEL6 Server Edition on my Home PC.. for learning RHCSA...

I installed RHEL6 Server on my Desktop PC.. I don't have RHN subscription..
I used ISOtoUSB for installation from USB Drive...
After Installation I was unable to run commands like
"yum install gnome"
It says like "package not available....
Also I am not able to "Add/Remove programs" from the graphical utility...
It says like "No Group List"

After googling... I done the following steps carefully...

mkdir /yumrepo
copied RHEL 6 DVD contents to /yumrepo/rhel6
createrepo /yumrepo/rhel6/Packages
createrepo -g xxxxxxxxxxxxxxxx-comps-rhel6-server.xml /yumrepo/rhel6/Packages
created a repository file under /etc/yum.repos.d/
[rhel6_64]
name=Red Hat Enterprise Linux
failovermethod=priority
baseurl=file:///yumrepo/rhel6/Packages
enabled=1
metadata_expire=0d
gpgcheck=0

But still yum install and "Add/Remove programs" not working...
But in my classroom lab... those things work...
But in my home PC.. .all I get it errorrrrrrrrrrr
 
Old 10-29-2012, 12:24 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you DO have a paid for and required support license ???
right ???

if not you DO NOT install anything until you buy the license and register your copy

RHEL6.3 is not free

there is a desktop icon to register ( on your desktop )
please do so

Last edited by John VV; 10-30-2012 at 01:50 AM.
 
Old 10-30-2012, 01:05 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I've used this in the past https://code.google.com/p/iredmail/w...Yum_Repository
 
Old 10-30-2012, 07:16 AM   #13
shejin983
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
you DO have a paid for and required support license ???
right ???

if not you DO NOT install anything until you buy the license and register your copy

RHEL6.3 is not free

there is a desktop icon to register ( on your desktop )
please do so
I never paid. I got RHEL 6.3 from torrent...
 
Old 11-28-2012, 01:15 PM   #14
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by shejin983 View Post
I never paid. I got RHEL 6.3 from torrent...
And after this ingenuous admission, this thread is closed. LinuxQuestions doesn't support piracy in any form. The next time download CentOS for free. Nuff' said.
 
  


Closed Thread



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
building a local RHEL repo mzrh Linux - Enterprise 1 09-28-2010 09:33 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
local yum repo error shams Fedora 1 12-24-2005 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration