Linux distributions are one of the best operating systems available out there. Users are very satisfied and know why it rocks. This is because of the full control that we get over it. We love to customize, installing different kinds of applications, its regular hustle free updates, looks, performance, easiness, and the list goes on and on. So we are going to learn about installing applications in Linux | the complete guide.
A quick & easy guide on how to install applications in Linux. For this, there are few ways to do so :
- Using command line, installing from repository
- From package – .deb, .rpm or source code
- Software center
- Special executables – .appimage, direct executables files
Installing applications in Linux from the repository
For example, if you use Ubuntu or Ubuntu-based Linux distribution then in most cases the package management tool will be apt , if it’s Fedora or similar then it probably will be dnf and Arch and some other distros like Manjaro usage pacman. To install any application or any package just run the following command in the terminal.
Ubuntu & Ubuntu-based sudo apt-get install application-name
Fedora & similar sudo dnf install application-name
Arch & Arch Based sudo pacman -S application-name
sudo: It is super user do. When we need to modify or make any changes in the system we have to use sudo in order to pass-in the needed permission. If you are running your Linux system as ‘root user‘ then there is no need to add sudo in the starting
.apt-get or dnf: Here is the package name convention just to show that we are using a particular package management tool.
install: It’s self-explanatory that we want to install something so have to add it as a parameter to the package management tool.
package-name: We need to replace this with the desired package or application name such as Vlc, Firefox, Rhythmbox or any that you want to install.
Installing applications using package file(s) in Linux
This is similar to Windows if you have ever installed something on it. In this method, you first have to download the supported package file then install it. You can download any application from the given below website.
On the above site, you can choose the package file as per your distribution and install it either by double clicking on the file. This will open up the software center then click on the install button and that will do the job.
You can also install the package through the installation command. Use the below give command for that.
To install a .deb file sudo dpkg -i path-to-package/package-name
To install a .rpm file sudo dnf localinstall path-to-package/package-name
Installing application using the software center
Almost all the Linux distributions come with a software center or app store. you can use it to install the application to avoid any hustle. The software center makes the installation process very easy.
Just open it up and search for any application and click on the install button that’s it.
Using executable files
We can also use the specially crafted executable file to use and install applications on our Linux distribution. There are file formats such as direct executable and appimage files
You can simply double click and run these files in order to use the application. But first, you have to give the file permission to execute.
This permission can be given in two ways. Either you use the below command or the graphical method.
sudo chmod +x file-name
Now, simply execute the file:
Note: The sudo is not necessary if the executable file does not require any root file modification.
So that was it. If you find this article helpful then share it and don’t forget to subscribe to our Youtube channel and let us know what you think about this in the comment section below. Bye 🙂