Linux Basics: Install .RPM Packages From Terminal

by

Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUpon

QUESTION:

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.

ANSWER:

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
Password:

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

# rpm -ivh package-name.rpm