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
Because you've told it to use a completely different database, rpm doesn't look at the system database which is where /bin/sh would be found.
/bin/sh