To know how to install packages and programs on Linux and any of its distributions it is one of the most complex topics for new users. Through this step by step guide we are going to show you a simple way to run your installations. If you want to know more, keep reading.
The most common method to install new software on Linux is through the Terminal. However, the commands vary depending on the type of package manager your system has.
The Linux Terminal is one of the greatest advantages offered by the operating system, as it allows you to perform various tasks.
What should I keep in mind before installing a package or program on Linux?
One of the sections What to keep in mind before installing a package or program in Linux, is to know what a package management system is. In simple terms, it refers to a set of file formats and tools used to update, install, or uninstall some software on the distributed operating system. At present, it is divided into two major package management systems: Debian and Red Hat.
Distributions like Fedora, Mandriva, SuSE, CentOS, among others they use the management system Red hat, which is characterized by using the file extension (.rpm). On the other hand, distributions like Ubuntu, Peppermint, Linux Mint, and many others make use of the system dpkg from Debian, which is represented by the extension (.deb) in your files. Both management systems work differently to stay active on the device and, in turn, manage downloads.
What are the commands used to install software on Linux?
The installation processes between one management system and another differ in various aspects, especially in the commands used. Therefore, it is essential to review what are the commands used to install a software in Linux according to the package management system. In the case of Debian, you can use the program apt-get to install the desired program from a repository. You can write only apt or use apt-get in command.
On the other hand, also use the program dpkg for software installation with extension (.deb). On the other hand, systems based on (.rpm) make use of essential commands for distributions of Linux Red Hat. These are Yum Y dnf. In the case of Yum, the user can install or update programs directly from the official repository of Linux, or from a third-party repository. While the dnf commands facilitate program management.
Let’s see below:
Sudo is the most important command of all, since it must be present in each written line so that the rest of the commands can work correctly. The term ‘sudo’ comes from “Super user do” or “The super user does.” It allows making significant changes to the system, as well as managing program packages, among others.
No distribution you use Linux As an operating system, it allows the user to make sensitive changes if they do not have access permissions. administrator or is a super user. The first time you enter the command in the Terminal, you will need to enter your administrator password.
Apt is the acronym for Advanced Packaging Tool. It translates as Advanced Packaging Tool. It is an essential command in distributions of Linux as Ubuntu or Linux Mint. When installing a new application through the Terminal, you must use this command. In the same way to eliminate a program, update, or perform other management tasks.
It is a package manager used in Debian. The tool allows you to install, remove, manage, and update programs on distributions that use the Debian management system. Works through command lines, which comply with specific actions.
It is another of the tools used for the installation of program packages in distributions of Linux what do they use Red hat, and the rest of its versions, to install software with the extension (.rpm). The command Yum is essential for updating and removing programs, as well as the administration of official repositories or third parties in Linux.
It is a package manager based on the package management system for distributions based on files with extension (.rpm). The tool is responsible for providing the necessary conditions to install a new program. With its list of commands, you can perform installations and updates of your programs.
Learn step by step how to install any program on Linux
Make use of the Linux Terminal To install software can seem intimidating at first. However, if you know the procedure to the letter, the experience will be simple.
Learn step by step how to install any program in Linux with our guide:
- To install a program on Linux using apt: sudo apt-get install program_name.
- To uninstall a program on Linux: sudo apt-get remove program_name.
- Update the application repository: sudo apt-get update.
- Update programs: sudo apt-get upgrade.
- Update specific software: sudo apt-get update program_name.
- Install a program in (.deb) format: sudo dpkg –i program_name.deb
- To delete a program in (.deb) format: sudo dpkg –r program_name.deb
- To repair a program: sudo dpkg-reconfigure program_name
For Red Hat and extension files (.rpm), There are two main commands to perform the installation.
These are Yum and dnf:
- To install a program: sudo yum install program_name or sudo dnf install program_name.
- To install a program with an extension (.rpm): sudo rpm –i program_name.
- To delete a program: sudo yum remove program_name or sudo dnf remove program name.
- To update a program: Yum update or sudo dnf upgrade –refresh.
Each package management system has many more commands for various other tasks. However, here you will find the most common and essential for install, update or remove all kinds of programs or packages in any distribution of Linux that you own. If you have understood everything, don’t be afraid to use the Linux terminal, and begins to install your programs.
If you have any questions, leave them in the comments, we will answer you as soon as possible, and it will also be of great help to more members of the community. Thank you! 😉