CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  yum groupinstall problem using local repositories

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  shahi
      shahi
yum groupinstall problem using local repositories
#1
Newbie
Joined: 2012/5/2
From Rajshahi, Bangladesh.
Posts: 4
Hi everybody,

I had install CentOS6.2 in virtualbox with basic server option. now I can only log on in command mood but I want to log in with GUI. So I create a local repository and can successfully install anything using yum install. But when I try to install using "yum groupinstall 'X window System' " it replied me that there is no group available for this configured repository.

I used those steps from these sites..

page 1

https://www.centos.org/modules/newbb/viewtopic.php?post_id=162082&topic_id=37116&forum=56#forumpost162082

page 2

http://www.linuxreaders.com/2012/01/31/centos-local-repo-with-grouping/#.T6l2HMXuzZ6


after completing these steps when i type

yum grouplist

it says no list there.

i don't want use the ftp sites for group install.

i want to use the local repository so any suggestion will be helpful for me.

thank you

kandaker shahi
_________________
RHEL 5
CCNA
VMWare
GNS3
Virtual Box
Posted on: 2012/5/8 20:15
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: yum groupinstall using local repositories
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Please review the recommended reading and do not multiple-post. Your two duplicate posts have been deleted.

It is impossible to guess exactly where you went wrong based on those two links, but it is necessary to have both a correct repository configuration, and to run "createrepo -g comps.xml /path/to/repo" with an appropriate comps.xml file.

Perhaps the following Wiki article may help in general terms, although it need updates for CentOS-6:
http://wiki.centos.org/HowTos/CreateLocalMirror
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/8 21:11
Create PDF from Post Print
Top
  •  shahi
      shahi
Re: yum groupinstall using local repositories
#3
Newbie
Joined: 2012/5/2
From Rajshahi, Bangladesh.
Posts: 4
thanks for your reply phil.

but i want a solution not a problem.

the link you give to me is an old one.

can you give a new link which is modified for CentOS 6.2.

about my other post u just delete the right one and kept wrong one. just read it then u will see there is [\font] problem.
_________________
RHEL 5
CCNA
VMWare
GNS3
Virtual Box
Posted on: 2012/5/9 4:39
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: yum groupinstall using local repositories
#4
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Nobody has written the article for CentOS-6 but as I said, the same concepts apply. Perhaps an example will help:
# cd /share/CentOS/6
# pwd
/share/CentOS/6
# /bin/pwd
/share/CentOS/6.2
# find . -type d | sort
.
./centosplus
./centosplus/i386
./centosplus/i386/drpms
./centosplus/i386/Packages
./centosplus/i386/repodata
./centosplus/x86_64
./centosplus/x86_64/drpms
./centosplus/x86_64/Packages
./centosplus/x86_64/repodata
./contrib
./contrib/i386
./contrib/i386/repodata
./contrib/i386/RPMS
./contrib/SRPMS
./contrib/SRPMS/repodata
./contrib/x86_64
./contrib/x86_64/repodata
./contrib/x86_64/RPMS
./extras
./extras/i386
./extras/i386/drpms
./extras/i386/Packages
./extras/i386/repodata
./extras/x86_64
./extras/x86_64/drpms
./extras/x86_64/Packages
./extras/x86_64/repodata
./isos
./isos/i386
./isos/x86_64
./os
./os/i386
./os/i386/images
./os/i386/images/pxeboot
./os/i386/isolinux
./os/i386/Packages
./os/i386/repodata
./os/x86_64
./os/x86_64/EFI
./os/x86_64/EFI/BOOT
./os/x86_64/images
./os/x86_64/images/pxeboot
./os/x86_64/isolinux
./os/x86_64/Packages
./os/x86_64/repodata
./updates
./updates/i386
./updates/i386/drpms
./updates/i386/Packages
./updates/i386/repodata
./updates/x86_64
./updates/x86_64/drpms
./updates/x86_64/Packages
./updates/x86_64/repodata
# grep -v "#" /etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
baseurl=file:///share/CentOS/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

[updates]
name=CentOS-$releasever - Updates
baseurl=file:///share/CentOS/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

[extras]
name=CentOS-$releasever - Extras
baseurl=file:///share/CentOS/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

[centosplus]
name=CentOS-$releasever - Plus
baseurl=file:///share/CentOS/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

[contrib]
name=CentOS-$releasever - Contrib
baseurl=file:///share/CentOS/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

On systems other than the server /share is an NFS mount, or in some cases a symbolic link to a directory within an NFS-mounted filesystem. I never had to run createrepo because everything, including metadata, is kept in sync with a public mirror via rsync.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/9 10:44
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com