Friday 13 April 2012

yum server configuration in rhel6

********INSERT RHEL6 DVD IN TO YOUR DVD ROM*********
[root@station1 Desktop]# mount /dev/cdrom /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@station1 Desktop]# cp -a /mnt/Packages/ /
[root@station1 Desktop]# cd /Packages/
[root@station1 Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:deltarpm               ########################################### [100%]
[root@station1 Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:python-deltarpm        ########################################### [100%]
[root@station1 Packages]# 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
Preparing...                ########################################### [100%]
   1:createrepo             ########################################### [100%]
[root@station1 Packages]# cp /mnt/repodata/8afad1febf2d8844a235a9ab1aa5f15c9cec1219b9d01060d4794435cf59dffe-comps-rhel6-Server.xml /tmp/
[root@station1 Packages]# createrepo -g /tmp/8afad1febf2d8844a235a9ab1aa5f15c9cec1219b9d01060d4794435cf59dffe-comps-rhel6-Server.xml /Packages/
3596/3596 - anaconda-yum-plugins-1.0-5.1.el6.noarch.rpm                        
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@station1 Packages]# cd /etc/yum.repos.d/
[root@station1 yum.repos.d]# ls
rhel-source.repo
[root@station1 yum.repos.d]# cp rhel-source.repo server.repo
[root@station1 yum.repos.d]# vim server.repo
[server]
name=Red Hat Enterprise Linux
baseurl=file:/Packages
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@station1 yum.repos.d]# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Cleaning repos: server
Cleaning up Everything
[root@station1 yum.repos.d]# yum list all
[root@station1 yum.repos.d]# yum grouplist

2 comments:

  1. i want now hot to entry mail. apache server in dns forward zone, because my client cant access my apache server and postfix .
    chelp me plz

    ReplyDelete
    Replies
    1. Hi Anonymous

      Please brief your question. I cant understand your problem.

      Delete