jueves, mayo 20, 2021

Desempaquetar un jar y empaquetarlo de nuevo

Pocas palabras, para desempaquetar un jar sirve cualquier programa (7zip/winrar) en este caso necesitaba agregar unas líneas al archivo de configuración del hibernate, realice el cambio y ahora debia empaquetar de nuevo el programa, para esto debemos ubicarnos donde esta los archivos del programa y ejecutar el siguiente comando:

jar cmvf META-INF/manifest.MF NombrePrograma.jar *

Donde META-INF/manifest.MF es el archivo manifiesto donde se indica cual es la clase principal que se llamara al ejecutar el programa

Lo anterior fue tomado de la siguiente pagina https://www.iteramos.com/pregunta/8794/-no-se-puede-ejecutar-el-archivo-jar-quotno-hay-atributo-de-manifiesto-principalquot-

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