git clone https://github.com/facebookincubator/dcrpm.git
cd dcrpm
python setup.py install
Atau download scara manual kemudian hasil exstrak di copy ke /var/lib/rpm
mkdir /opt/rpm8/
cp -avr /var/lib/rpm /opt/rpm8/
tar -zcvf opt/rpm8/rpmdb-$(date +"%d%m%Y").tar.gz /var/lib/rpm
rm -f /var/lib/rpm/__db*
/usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages
# cd /var/lib/rpm/
mv Packages Packages.back
/usr/lib/rpm/rpmdb_dump Packages.back | /usr/lib/rpm/rpmdb_load Packages
/usr/lib/rpm/rpmdb_verify Packages
rpm -qa >/dev/null #output is discarded to enable printing of errors only
rpm -vv --rebuilddb
dnf update
dnf clean packages