Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using rpm after installation

Status
Not open for further replies.

ceimon

Programmer
Sep 25, 2002
14
US
I've installed rpm, but when I run a command like "rpm -ivh file.rmp," I get a response like:
"ksh: rpm: not found"
I know I probably need to add this command to the shell, but I don't know how to do this.

Any help would be greatly appreciated.
 
Check your path (echo $PATH) to see if the directory where rpm is located is in your $PATH (it probably isn't).

To add the directory to your path, add this to the end of your PATH statement in your .profile:

:/opt/path/to/rpm/directory

Then, you can either rerun your .profile (. /home/user/.profile) or log back in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top