• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Reinstall Corrupted Library with yum

By admin

This post will guide the user on how to reinstall a corrupted library via yum.

In general, the command below will find which package the corrupted library belongs to:

# yum provides \*/[so_file]

In this example, we used this error message “/bin/login: error while loading shared libraries: /lib64/libcrypt.so.1: file too short” to identify the corrupted library and the find the package it originally came from:

# yum provides \*/libcrypt.so.1
...
glibc-2.17-260.0.17.el7_6.6.x86_64 : The GNU libc libraries
Repo : ol7_x86_64_latest
Matched from:
Filename : /lib64/libcrypt.so.1

In this case, the package the library originally came from is “glibc-2.17-260.0.17.el7_6.6.x86_64“. This is the package that needs to be reinstalled. The general command is:

# yum reinstall [package name]

From our example, the command is:

# yum reinstall glibc-2.17-260.0.17.el7_6.6.x86_64

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to test a PHP script
  2. CentOS / RHEL : How to configure a user account to never expire (disable password ageing)
  3. Command ‘df -i’ Shows ‘Inode=0’ on BTRFS File System
  4. How to get Fibre Channel HBA information from Linux SOSreport
  5. UNIX / Linux : How to change the niceness (priority) of a process
  6. CentOS / RHEL : How to move a Volume Group from one system to another
  7. How to exclude a file/directory from auditd rules
  8. Understanding the /etc/fstab file in Linux
  9. How To Configure SNMP Daemons: snmpd and snmptrapd on CentOS/RHEL 5,6 and 7
  10. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 7 to scan more than 16,383 LUNs

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary