How Install .rpm from different location

Hi all,

I am new in Linux. I have installed Red Hat 5 in VMWARE.

How can I install .rpm in Linux Red Hat version 5 which path is [nauvm@localhost linuxpackage]# and also by USB. Means If I have .rpm into the linuxpackage folder that is situated in Linux home then how I can fire the following command. e.g:
rpm -Uvh libXp-1*

How Can I install oracle software (i.e: 10201_database_linux_x86_64.cpio.gz) from the above path and also by DVD. Means If I have Oracle software into the OraSoft folder that is situated in Desktop then how I can fire the following command. e.g
gunzip 10201_database_linux_x86_64.cpio.gz
cpio -idmv <10201_database_linux_x86_64.cpio

Thanks

Easiest way … change directory (cd) to where the .rpm is located first … THEN run your command … so either:

cd ~/linuxpackage

or the FULL path:

cd /home/<username>/linuxpackage

THEN run your command:

rpm -Uvh libXp-1*

Same thing for the other path:

cd ~/Desktop/OraSoft

or FULL path:

cd /home/<username>/Desktop/OraSoft

Now the system is in the correct folder … run the command.

another way would be to pass the path to the rpm command, as in -

rpm -Uvh ~/linuxpackage/libXp-1*

or with the FULL path:

rpm -Uvh /home/<username>/linuxpackage/libXp-1*