<p>Hi,<br>      I am using rpm-devel package 4.4.2-43.28 on a SLES server to develop rpm API based application. I have implemented code using RPM API to upgarde packages on a separate partition by implimenting the --relocate and --dbpath option. I am encountering an error when I run my application trying to upgrade a package. It complains of /bin/sh needed. I do not see the error if I run the actual rpm command with the same options. I am not sure if I am missing setting some other flags. /bin/sh exists. I have even tried running my application by going into sh, but I still get the same error. One way I could think of is to use the --nodeps flag. But I am not convinced that is the right way as the actual rpm command works. Can anyone provide me some pointers of what I might be doing wrong? </p>

<p>Thanks.</p>
<p>Vijay</p>