[Solution] The rpm is damaged and yum cannot be used

The rpm is damaged and yum cannot be used

Solved: RPM package: error: cannot open package database from /var/lib/rpm

image-20230528121236100

If this happens, it means that the internal file of rpm is damaged, follow this steps to repair it:

repair rpm database

Guess you like

Origin blog.csdn.net/NEFUT/article/details/130944804