Тут еще один момент.
Для Росы, по моим данным, надо полную rpm-базу писать
Для Магеи достаточно /var/lib/rpm/Packages
В MagOS.ini ввел переменную (по умолчанию no)
RPMDBCLEANE=no
Сама п/прога
clear_rpm()
{
#if [ -d “$xzm_br/var/lib/rpm” ] ;then
rm -rf “$xzm_br”/var/cache/urpmi/rpms/* “$xzm_br”/var/cache/urpmi/partial/* “$xzm_br”/var/cache/urpmi/headers/* “$xzm_br”/var/cache/urpmi/mirrors.cache
rm -rf “$xzm_br”/var/cache/urpmi/.metalink “$xzm_br”/var/cache/ldconfig/aux-cache
rm -rf “$xzm_br”/etc/sysconfig/network-scripts/ifcfg-e* “$xzm_br”/etc/sysconfig/network-scripts/ifcfg-p* “$xzm_br”/etc/sysconfig/network-scripts/ifcfg-w*
rm -rf “$xzm_br”/var/lib/preload/preload.state “$xzm_br”/var/lib/rpm/.rpm.lock “$xzm_br”/var/lib/rpm/.RPMLOCK
rm -rf “$xzm_br”/var/lib/rpm/.??* “$xzm_br”/var/lib/rpm/?wh?*
RPMDB=“$xzm_br”/var/lib/rpm/??*
for a inls -dr $RPMDB
; do
#echo “a=$a”
if [ “${a##/}" != “Packages” -a "${a##/}” != “alternatives” -a “${a##*/}” != “modules” ] ;then
rm -rf $a
fi
done
#fi
}
Где xzm_br=mod_br
Т е теперь выбор за юзером