Re: Re: SUG: Automatic RPM database verification and repair

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/28/06, Tony Nelson <tonynelson@xxxxxxxxxxxxxxxxx> wrote:

Rpm does something odd when it is given a non-existent or non-full path to
a RPM database: it creates a new RPM database there.  If it is given a full
path (or a proper relative path) to a broken RPM database it will report
the errors.  For proper operation, the script requires a full path to a
real RPM database.  Arguably this is a deficiency in rpm's "--verifydb"
option.

RPM creates the dbpath lazily if it does not exist. Whether that is a feature
or a bug depends on who you are talking to.

The current behavior (creating the path lazily) makes creating chroots
easier, one does not have to do the explicit
   mkdir -p /path/to/chroot/var/lib/rpm

OTOH, invocations of rpm with random dbpaths can/will litter the end-point
with lazily created empty directories.

73 de Jeff

--
____________________________________________________________________
TonyN.:'    The Great Writ     <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '      is no more.             <http://www.georgeanelson.com/>

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux