Table of Contents
If you know what you’re doing, run linux applications with command line can save you time, money and hassles. The command line on a RedHat or CentOS based Linux distribution, or even a server cluster, is described briefly in this article. We will use yum to install, remove and update our software packages once we have a firm understanding of how the command line works. Before we start, let’s make sure we understand what the command line does.
The command line is a text-based interface that can be used to enter instructions into a computer. The Linux command line is usually provided by a program called Bash shell. As Linux grew, various shells were developed over time. Red Hat Linux uses the GNU Bourne-Again shell. This shell is also known as “bash”. Bash is an improved version of one of the most popular shells used on UNIX-like systems, the Bourne Shell.
When the bash shell is used to pass information between the user and the computer, it displays an icon while waiting for a command from the user. This interface is called the shell prompt. When a regular user starts a Bash shell, the default prompt usually ends with the dollar sign $, but this can change depending on the user. Below are the steps to run Linux software using the command line.
Run Linux Applications Using the Command Line
Debian, Ubuntu, Mint and others
Step 1: installing apps using apt is as easy as:
$ sudo apt install app_name
Step 2: Uninstalling an app via apt is also super easy:
$ sudo apt remove app_name
Step 3: For improvement your installed apps, you will first need to update the app repository:
$ sudo apt update
Step 4: Once finished, you can update any apps that need updating with the following:
$ sudo apt upgrade
Step 5: And if you want to update just one single app? No problems.
$ sudo apt update app_name
Step 6: Finally, let’s say the app you want to install is not available on Debian repository, but is available as a .deb download. You may install manually using dpkgthe system that apt helps manage:
$ sudo dpkg -i app_name.deb
RHEL, CentOS, Fedora, Mageia and OpenMandriva
Step 1: For install an app:
$ sudo dnf install app_name
Step 2: Remove unwanted applications is so easy.
$ sudo dnf remove app_name
Step 3: Update apps:
$ sudo dnf upgrade – upgrade
Step 4: O dnf (or yum) is a frontend to the RPM packaging system. If you can’t find an app in your software repository, but you can find it for download directly from the vendor’s website, you can use dnf to manually install an .rpm file.
$ sudo dnf install ./app_name.rpm
Final Words
We hope you like our article about how to run Linux software with command line. Running new application packages is among the hardest things to get used to in the Linux environment. Every program in the Windows world has a Setup.exe program that asks a few simple questions and takes care of the work for you. While installing Linux applications can be almost as simple, you will occasionally run software that seems to have a lot of difficulty.