Leave out the preceding mkdir, that's what "fixes" the issue. Ie just
rpmdb --initdb --dbpath /no/such/directory
Leave out the preceding mkdir, that's what "fixes" the issue. Ie just
rpmdb --initdb --dbpath /no/such/directory