It was just a typo I meant default installation path
I read the man pages and but there is still problem . It says that the package xxx is not relocateable.
Here's what I have done..
$rpm --initdb --dbpath ~/rpm
$rpm --dbpath ~/rpm --prefix=/home/sandy -i xxx.rpm
error: xxx is not relocateable.
Where Have I gone wrong