WHY RPMRESTORE

I need it, I search on internet and do not find anything, so I write it ...
in fact, rpm package provide some options, but they are very poor :

check

the rpm command if rpm -V, but it does not show the differences :
rpm -V rpm
.....UG. c /var/lib/rpm/Basenames
.....UG. c /var/lib/rpm/Conflictname
.....UG. c /var/lib/rpm/Dirnames
.....UG. c /var/lib/rpm/Filemd5s
.....UG. c /var/lib/rpm/Group
.....UG. c /var/lib/rpm/Installtid
.....UG. c /var/lib/rpm/Name
.....UG. c /var/lib/rpm/Packages
.....UG. c /var/lib/rpm/Providename
.....UG. c /var/lib/rpm/Provideversion
.....UG. c /var/lib/rpm/Requirename
.....UG. c /var/lib/rpm/Requireversion
.....UG. c /var/lib/rpm/Sha1header
.....UG. c /var/lib/rpm/Sigmd5
.....UG. c /var/lib/rpm/Triggername

rpmrestore.pl -u -n -p rpm
/var/lib/rpm/Basenames user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Conflictname user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Dirnames user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Filemd5s user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Group user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Installtid user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Name user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Packages user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Providename user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Provideversion user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Requirename user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Requireversion user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Sha1header user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Sigmd5 user orig 37 (rpm) current 0 (root)
/var/lib/rpm/Triggername user orig 37 (rpm) current 0 (root)

changes

the rpm command is rpm --setugids/--setperms, but it acts as a batch command
rpmrestore provide an interactive mode, allow to select parameters, can use log/rollback ... Exemple : rpmrestore -u -p rpm -l log
back to main page