I was looking for solutions to my problem while working on YUM configurations.
I am following bellow steps for YUM configuration:
mounting the ISO and then doing the following steps.
[root@localhost ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/
[root@localhost ~]# cd Packages/
[root@localhost Packages]#
[root@localhost Packages]# cp -ivf * /shashank ()
## copying content of Packages folder to /shashank ##
[root@localhost Packages]# cd /shashank ## ( shashank is the folder where I copied all the Packages content from CD.) ##
[root@localhost shashank]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
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@localhost shashank]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm deltarpm-3.5-0.5.20090913git.el6.i686.rpm python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
#( I did get this error for the 1st time since I staretd using the LINUX on Virtual box.)#
Preparing... ########################################### [100%]
1:deltarpm ########################################### [ 33%]
2:python-deltarpm ########################################### [ 67%]
3:createrepo ########################################### [100%]
[root@localhost shashank]# createrepo /shashank
2865/2865 - openssh-5.3p1-12.1.el6.i686.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@localhost shashank]#
[root@localhost shashank]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
rhel-beta.repo rhel-debuginfo.repo
[root@localhost yum.repos.d]# rm -rf
[root@localhost yum.repos.d]# ls
rhel-beta.repo rhel-debuginfo.repo
[root@localhost yum.repos.d]# rm -rf *
[root@localhost yum.repos.d]# ls
[root@localhost yum.repos.d]# vim client.repo
[client.repo file :
****************************************
[RHEL-REPOS]
name=rhel repos
baseurl=file:///shashank/
enabled=1
gpgcheck=0
****************************************
## sample test ##
[root@localhost yum.repos.d]# yum install zsh # ( Here I am trying to install any random package but the same error)#
but here I am gettign an error something like :
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Bad id for repo: RHEL REPOS , byte = 4.
no packages zsh to install.
Someone please suggest if I am making any mistake.
Regards,
>
> I am following bellow steps for YUM configuration:
>
> mounting the ISO and then doing the following steps.
>
>
> [client.repo file :
>
> ****************************************
>
> [RHEL-REPOS]
>
> name=rhel repos
>
> baseurl=file:///shashank/
>
> enabled=1
>
> gpgcheck=0
>
> ****************************************
>
>
> ## sample test ##
>
> [root@localhost yum.repos.d]# yum install zsh # ( Here I am trying to
> install any random package but the same error)#
>
>
>
> but here I am gettign an error something like :
>
>
> Loaded plugins: refresh-packagekit, rhnplugin
>
> This system is not registered with RHN.
>
> RHN support will be disabled.
>
> Bad id for repo: RHEL REPOS , byte = 4.
>Remove the space from "name=rhel repos" & check.
>
> Regards,
>
> SHASHANK SINGH
I was looking for solutions to my problem while working on YUM configurations.
I am following bellow steps for YUM configuration:
mounting the ISO and then doing the following steps.
--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG
I just cleared the sapces from client.repo file and it worked for me...Still many thanx to all for all different and new solutions...
Hi,
my earlier client.repo file was :
client.repo file :
****************************************
[RHEL-REPOS]
name=rhel repos
baseurl=file:///shashank/
enabled=1
gpgcheck=0
****************************************
I just removed the space between rhel and repos in name field and my new file is :
[client.repo file :
****************************************
[RHEL-REPOS]
name=rhelrepos ## or simply name=RHEL##
baseurl=file:///shashank/
enabled=1
gpgcheck=0
****************************************
and it worked for me.
Thank you all for highlighting this small but very important thing.
client.repo file :****************************************
[RHEL-REPOS]
name=rhel repos
baseurl=file:///shashank/
enabled=1
gpgcheck=0
I just removed the space between rhel and repos in name field and my new file is :
[client.repo file :
****************************************
[RHEL-REPOS]
name=rhelrepos ## or simply name=RHEL##
baseurl=file:///shashank/
enabled=1
gpgcheck=0
****************************************
and it worked for me.
SHASHANK SINGH