How to install or re-install a package in rescue mode.

Solution Verified - Updated -


  • Critical glibc package has been deleted, how can it be reinstalled?
  • The glibc libraries got deleted on my system accidentally, now I am unable to login to system.
  • We are getting "/lib/ bad ELF interpreter: No such file or directory" error when executing any commands on my Red Hat Enterprise Linux system.
  • Not able to chroot in rescue mode after critical packages got removed from system.
# /bin/mkdir rpm
-bash: /bin/mkdir: /lib64/ bad ELF interpreter: No such file or directory


  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content