How to install or re-install a package in rescue mode.
Issue
- Critical
glibcpackage has been deleted, how can it be reinstalled? - The
glibclibraries got deleted and now users are unable to login in the system. - Seeing
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directoryerrors when executing commands. -
Not able to
chrootin rescue mode after critical packages got removed from system.# /bin/mkdir rpm -bash: /bin/mkdir: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
Environment
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.