Rpm package can be installed in a custom path. Steps are given below.
1. cd to custome path.
# cd [custom path]
2. Download the rpm package using the “yumdoanloader” command.
# yumdownloader [package name]
# yumdownloader httpd
3. Install the rpm package in present working directory.
# rpm2cpio [rpm package] | cpio -idmv
# rpm2cpio httpd-2.2.15-30.el6_5.x86_64.rpm | cpio -idmv