Showing posts with label YUM. Show all posts
Showing posts with label YUM. Show all posts

Tuesday, March 22, 2011

Setup Local Yum Repo

Copied rpms from RHEL 6 DVD to /var/www/html/yum/rpms
Install createrepo rpm

[root@rhel01 rpms]# pwd
/var/www/html/yum/rpms

[root@rhel01 rpms]# createrepo `pwd`
-bash: createrepo: command not found

[root@rhel01 rpms]# ls create*
createrepo-0.9.8-4.el6.noarch.rpm

[root@rhel01 rpms]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
deltarpm is needed by createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch

[root@rhel01 rpms]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm deltarpm* python-deltarpm*
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:deltarpm ########################################### [ 33%]
2:python-deltarpm ########################################### [ 67%]
3:createrepo ########################################### [100%]

[root@rhel01 rpms]# createrepo `pwd`
113/3431 - redhat-menus-14.0.0-3.el6.noarch.rpm
iso-8859-1 encoding on Ville Skyttä - 2.8.2-2

1978/3431 - yum-plugin-versionlock-1.1.26-11.el6.noarch.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata

Configure /etc/yum.conf

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.dse-local]
[base-local]
name=RHEL6 $releasever - $basearch
failovermethod=priority
baseurl=http://192.168.1.200/yum/rpms
enabled=1
gpgcheck=0

Saturday, February 26, 2011

Yum: Error: No group data available for configured repositories

Local repository giving "No group data available for configured repositories" when using yum group* commands


[root@rhel01 repodata]# yum grouplist
Loaded plugins: refresh-packagekit, rhnplugin
Repository 'base-local' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Error: No group data available for configured repositories

My local repo is located in /var/www/html/yum/base and mounted RHEL 6 DVD in /mnt/dvd

[root@rhel01 base]# createrepo -g /mnt/dvd/Server/repodata/1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml /var/www/html/yum/base
2070/3431 - libgnomeui-2.24.1-4.el6.x86_64.rpm
iso-8859-1 encoding on Ville Skyttä - 2.8.2-2

3431/3431 - libgpod-0.7.2-6.el6.i686.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata

[root@rhel01 base]# yum clean all && yum makecache
Loaded plugins: refresh-packagekit, rhnplugin
Repository 'base-local' is missing name in configuration, using id
Cleaning up Everything
Loaded plugins: refresh-packagekit, rhnplugin
Repository 'base-local' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
base-local | 2.0 kB 00:00
base-local/filelists | 3.3 MB 00:00
base-local/primary | 1.6 MB 00:00
base-local/other | 1.5 MB 00:00
base-local/group_gz | 191 kB 00:00
base-local 3431/3431
base-local 3431/3431
base-local 3431/3431
Metadata Cache Created

[root@rhel01 base]# yum grouplist
Loaded plugins: refresh-packagekit, rhnplugin
Repository 'base-local' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Installed Groups:
Additional Development
Arabic Support
Armenian Support
Base
Console internet tools
Debugging Tools
Desktop
Dial-up Networking Support
Directory Client
..results truncated..