]> git.pld-linux.org Git - packages/rpm.git/blame - dbupgrade.sh
- install rpmdb_reset
[packages/rpm.git] / dbupgrade.sh
CommitLineData
f993b86c
JR
1#!/bin/sh
2
f1901814 3if /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages ; then
f993b86c
JR
4 /bin/rm --interactive=never -f /var/lib/rpm/__db.00* >/dev/null 2>/dev/null || :
5 /bin/rm --interactive=never -f /var/lib/rpm/log/* >/dev/null 2>/dev/null || :
6else
7 echo
8 echo "rpm database conversion failed!"
9 echo
10 echo "You have to run:"
11 echo
f1901814 12 echo " /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages"
f993b86c
JR
13 echo " /bin/rm -f /var/lib/rpm/__db.00*"
14 echo " /bin/rm -f /var/lib/rpm/log/*"
15 echo " /usr/lib/rpm/bin/dbconvert --rebuilddb"
16 echo
18ebe47b 17 exit
f993b86c
JR
18fi
19
20if ! /usr/lib/rpm/bin/dbconvert --rebuilddb; then
21 echo
22 echo "rpm database conversion failed!"
23 echo "You have to run /usr/lib/rpm/bin/dbconvert manually"
24 echo
25fi
This page took 0.06379 seconds and 4 git commands to generate.