Linux Basics: Install .RPM Packages From Terminal

by
Share this Article: Facebook117Google+0Twitter7LinkedIn0Reddit0StumbleUpon0

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

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook117Google+0Twitter7LinkedIn0Reddit0StumbleUpon0