I am trying to install an rpm package using the command as under:
rpm -Uvh --root=/mnt/bank_a rpm/app_name.rpm --nodeps
It is an application package which is part of root filesystem installation for a mounted device under linux hence the root flag is essential to specify the install path.
--prefix can not be used since it is a non relocatable package. The nodeps flag is used to suppress the error below(sh exists as a soft link to bash under /bin folder ):
Failed dependencies: /bin/sh is needed by xxx
But the pre scriplet fails for me with below error
error: %pre(app_name.rpm) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping app_name.rpm
I do not understand why --root and --nodeps won't work together or what is the right thing to do here.