Linux Basics: Install .RPM Packages From Terminal


Hi, I am a newbie to a Red Hat based distro I just installed. I have downloaded a series of .rpm packages and wondering how to install them from the terminal.


Installing .rpm packages from the terminal is just easy as typing “ls”

Open Terminal and cd into the directory of the .rpm file.

Change to root:

[[email protected] Packages]$ su

Run the command below with .rpm package name replacing package-name.rpm

# rpm -ivh package-name.rpm