YUM update command resulting an error "Bad id for repo: rhel DVD, byte = 4"

Solution Verified - Updated -

Issue

  • yum update fails with following error:

  • On Red Hat Enterprise Linux 6

# yum update --noplugins
Bad id for repo: RHEL 6.2 Repository, byte =   4
  • On Red Hat Enterprise Linux 5
Bad id for repo: rhel5 DVD, byte =   4

The following is the repo file which is used for local dvd image

[rhel 5-dvd]  
name=rhel-5-dvd  
baseurl=file:///cdrom  
gpgcheck=0  
enabled=1

# more /etc/yum.repos.d/file.repo
[RHEL 6.2 Repository]
baseurl=file:///cdrom
enabled=1

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.