LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2011, 03:45 AM   #1
rhel6_user123
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
YUM problem in RHEL 6


Hi there,

I wanna install some packages with yum. But it shows following error messages:

#yum install parted
Loaded plugins: phnplugin
Bad id for repo: not installed, byte = 3
This system is not registered with RHN.
RHN support will be disabled.
Setting up install process
No package parted available.
Error: Nothing to do

I did following steps to configure yum with local repository:
1. mounted dvd to /mnt/dvd
# mount /dev/cdrom /mnt/dvd/
2. copied all packages from /mnt/dvd/Packages/ to /var/dvd
# cp -arv /mnt/dvd/Packages/. /var/dvd/
3. installed createrepo package
# cd /var/dvd/
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
4. made yum database
# createrepo -v /var/dvd/
5. created *.repo file in /etc/yum.repos.d/ folder
# vi /etc/yum.repos.d/abc.repo
[not installed]
name=RHEL6 Desktop
baseurl=file:///var/dvd/
enabled=1
gpgcheck=0
6. /etc/yum.conf file is as default. I did not change any thing in that file.

When I did those configurations in RHEL 5 and installed packages, it does not have any problem. But in RHEL 6, above error messages have come.

And when I check with following command
# yum list available
Loaded plugins: rhnplugin
Bad id for repo: not installed, byte = 3
This system is not registered with RHN.
RHN support will be disabled.

# yum list
All installed files will come.

My VM:
# uname -a
Linux student.example.com 2.6.32-71.el6.i686 #1 SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686 i386 GNU/Linux

I think it can be solved without registering RHN.
Do you have any suggestion?

BR,
rhel6_user123
 
Old 05-12-2011, 06:32 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
not a big expert on using yum on redhat without a rhn account.
a very quick look at your post says you installed a local repo.
But did you disable going to redhat repository for update?
 
Old 05-12-2011, 11:21 AM   #3
rhel6_user123
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Problem has solved.

When we are creating *.repo file in /etc/yum.repos.d/ folder, we should not write like [ ] is with space.
# vi /etc/yum.repos.d/abc.repo
[not installed]
name=RHEL6 Desktop
baseurl=file:///var/dvd/
enabled=1
gpgcheck=0

It is not [not installed]. It must be written without space. [notinstalled]

Thanks 16pide.
rhel6_user123
 
  


Reply



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
RHEL 5 yum Problem no RHN subcsription ngrid Linux - Distributions 2 04-16-2010 10:43 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
Problem with yum installing djvu using freshrpms repositories , RHEL, x86_64 saak.stepi Linux - Software 7 01-15-2008 08:08 PM
Problem With Yum and RPM in RHEL Client 5 kaplan71 Red Hat 1 11-07-2007 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:23 PM.

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