How to verify rpm packages checksum(sha256) when the installation packages were failed.
Environment
All packages provide by Red Hat customer portal.
Issue
Failed to install or update packages which were downloaded on the local repository with below error.
Error unpacking rpm package glibc-common-2.17-106.el7_2.6.x86_64
error: unpacking of archive failed on file /usr/lib/locale/locale-archive.tmpl;5ab497b1: cpio: read
error: glibc-common-2.17-106.el7_2.6.x86_64: install failed
Resolution
Visit This content is not included.package browser on the customer portal and input package name on the left input box and search the package to see the SHA256 value of the package.
Verify sha256sum for the rpm package in the local repository with the SHA256 value on the package info.
$ sha256sum glibc-common-2.17-106.el7_2.6.x86_64.rpm
3ecac385117e74ba6cc158b5fa85aebe209a58522f8d5fb745bf552c2faf4607 glibc-common-2.17-106.el7_2.6.x86_64.rpm
If the checksum values are different, then you need to download the package and verify checksum again.
Root Cause
The package was not downloaded completely or it has broken for some reason.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.