Linux Basics: Install .RPM Packages From Terminal


Please shareShare on Facebook116Share on Google+0Tweet about this on Twitter7Share on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon1Share on VKBuffer this page


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:

[enock@localhost Packages]$ su

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

# rpm -ivh package-name.rpm