sábado, mayo 15, 2021

Como reinstalar librerías corruptas con YUM

La siguiente información es tomada de la siguiente direccion: https://www.thegeekdiary.com/how-to-reinstall-corrupted-library-with-yum/

 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

No hay comentarios.: