i am trying to install a package using rpm, for which i have created a different database using rpmdb --initdb --dbpath $HOME/myrpmdb and specifying that path in t
rpmdb --initdb --dbpath $HOME/myrpmdb
error: Failed dependencies: /bin/sh is needed by XXX
This happens because bash rpm is not available in the new rpmdb path. You would have to use following to get the rpm installed.
# rpm --dbpath $HOME/myrpmdb --nodeps -ivh XXX.rpm