CLIENT AREACall Us 1-800-383-5193


Call Us 1-800-383-5193


Call Us 1-800-383-5193

Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Install Linux Software Via Command line – How to do

by | Mar 3, 2021

Wondering how to install Linux Software via command line? We can help you.

Installing Linux software from the command line will help us save time, money.

Once we know how the command line works, we will go to installing, removing, and updating our software packages via the command line with yum.

Here at Bobcares we often install software for our customers as a part of our Server Management Services.

Today let’s see how our Support Engineers do this for our customers.

How to Install Linux Software Via Command line

Before seeing how to Install Linux software via the Command line, we can take a glimpse of what the command line is.

What Is The Command line?

The command line is a text-based interface that we can use to input instructions on a computer. The bash shell program usually provides the Linux command line. Red Hat Linux utilizes the GNU Bourne-Again Shell, also known as “bash.”

When the bash shell passes info between the user and the computer, it displays a symbol while awaiting a command from the user. This interface is called the shell prompt.

By default, a prompt usually ends with a dollar sign $ character.

The shell replaces the dollar sign $ with pound sign # when it is running as the root user.

This symbol helps to avoid accidents and mistakes on the accounts with elevated privileges of a superuser.

How To Access The Commandline In A Desktop Environment?

To get a shell prompt in GNOME, start a graphical terminal application.
Firstly we need to select Applications.

After that, we can go to the Utilities and take the Terminal

On the desktop, right-click or press the Menu key, and select “Open in Terminal” from the menu.

After that, from the Activities Overview, select Terminal from the dash.

RPM And Software Packages

Red Hat developed the RPM Package Manager software, which provides a standard way to package software for distribution.

Managing software in the form of RPM packages is much simpler than working with software that is extracted into a file system from an archive.

Moreover, a local RPM database stores the information about the packages we install.

Each RPM software package is an archive that has three components:

1. The files installed by the packages
2. Information (metadata) about the package – name, version, release, architecture
3. A script that usually runs when we install, update or remove the package.

The YUM Package Manager

The YUM command searches multiple repositories for software packages and any dependencies so that it can install them all together to reduce or eliminate and dependency issues.

Further, the main configuration file for yum is at /etc/yum.conf with additional repository configuration files in the etc/yum.repos.d directory. And it allows listing repositories, packages, and package groups.

Managing Software Updates With YUM

Yum is a powerful command-line tool that we can use to flexibly manage software packages.

Finding Software with YUM

Firstly, we will see some of the common yum commands.

yum help – display usage information
yum list – display installed and available packages.
yum search KEYWORD – list packages by keywords found in the name and summary fields.
yum info PACKAGENAME – gives detailed information about a package.
yum provides PATHNAME – displays packages that match the pathname specified.

Before we begin to install a package, we need to ensure that our system is up-to-date by using the following command:

# yum update

After that, we can install the package we wish to by using the following command:

# yum install PACKAGENAME

The above command obtains and installs a software package, including all dependencies.

Yum now installs our package.

We can update our package with the following command:

# yum update PACKAGENAME

The above command obtains and installs the newest version of the software package, including all dependencies. If no PACKAGENAME specified, it will install all relevant updates.

For removing a package we can use the following command:

#yum remove PACKAGENAME
Enabling YUM Software Repositories

Registering a system to the subscription management service automatically configures access to the software repositories based on the type of subscriptions.

To view all the available repositories, we can use the following command:

# yum repolist all

For enabling a repository we can use yum-config-manager.

Enabling Third-Party Software Repositories

To enable third-party support, we must put the file in the /etc/yum.repos.d/ directory. If the URL for a yum repository is known, a configuration file can be created via yum-config-manager.

Using YUM To Install Local Package Files

We can use the following command:

# yum install PACKAGEFILE.rpm

This can be used to install package files directly. It automatically downloads any dependencies the package has from any configured yum repositories. Here we have downloaded an rpm file.

Next, we can use the following command to begin installing the file from our machine.

# yum localinstall

[Need assistance? We are happy to help you]


In short, we saw what is command line and how our Support Engineers install Linux Software via command line


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *