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
|