You could instead run it as nonroot: `su -c "rpm -q <whatever>" nobody` (or 
possibly `su -c "rpm -q <whatever>" -s /bin/bash nobody` if nobody's shell is 
not a real shell).

Or you can make sure [dcrpm](https://github.com/facebookincubator/dcrpm) runs 
in a regular basis to detect and correct your RPM db... but certainly 
preventing the issues is better.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/232#issuecomment-557379740
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to