Open In App

How to Use Package Managers like APT and YUM in Linux?

Quick Preview – Use Package Mangers like APT and YUM on Linux:

  • Use of APT Package Manager:
  1. To update any packages, execute the command sudo apt update.
  2. To install any application on the terminal, the command sudo apt install <App Name> will be executed.
  3. The command sudo apt remove <App-Name> will be used to remove any application.
  • Use of YUM Package Manager:
  1. The yum update command will be efficient in updating packages.
  2. The command yum install <App-Name> will be used to install any app.
  3. The Command yum remove <App-Name> will be used to remove an app.

If you are working on any Linux Environmental Devices, properly using the Command Line Tool can reduce your work pressure to some folds. The Linux Terminal is efficient enough to install, remove, and update any installed application. However, to do so, the Linux Command Line Tool will take the help of the Linux Package Managers.

Package Managers in Linux are the tools or software that are present on the Linux Terminal based upon the Linux Distribution. Using the proper Package Linux Manager, working on application configurations can be sorted out. In Linux, some Package Managers are APT Package Manager and YUM Package Manager.



This article is going to let you know about the APT and YUM Package Manager on Linux along with the process to Use Package Manager in Linux.

To know more about the Package Manager on Linux, you can check the article Understanding Package Managers and systemctl.



Quick Highlights on APT Package Manager:

How to Use Package Manager like APT on Linux?

The APT Package Manager on Linux can be executed for three major cases. One is for Updating, one for Installing & last one for Removing Applications. Let us see the way to use APT Manager on Linux for these cases.

1) Use APT Package Manager on Linux for Updating Purposes:

To update the whole application package, the following command will be used on the Linux Terminal. The Command will take time & update all the packages present on the device.

Command: sudo apt update

2) Use APT Package Manager on Linux for Installing Purposes:

To install any certain application on the device, using the APT Package Manager, the following Linux commands will be used. It will take some time to complete the process.

Command: sudo apt install <App-Name>

3) Use APT Package Manager on Linux for Removing Purposes:

If you want to remove any existing Application on Linux, the below-mentioned command will be used. It will take some time to complete the process.

Command: sudo apt remove <App-Name>

Quick Highlights on YUM Package Manager:

How to Use Package Manager like YUM on Linux?

The YUM Package Manager on Linux also can be executed for Updating, Installing & Removing Application purposes. We will start with the Updating Purpose with YUM Manager on Linux.

1) Use YUM Package Manager on Linux for Updating Purposes:

To update the packages on the device using the YUM Manager, the following Linux Command will be used as it is mentioned on the terminal.

Command: yum update

2) Use YUM Package Manager on Linux for Installing Purposes:

If you want to install any application using the YUM Manager, the below-mentioned command will be efficient to do that. Use it properly as it is mentioned there.

Command: yum install <App-Name>

3) Use YUM Package Manager on Linux for Removing Purposes:

To remove applications from the device using YUM Manager, the command mentioned in the following will be better to execute as it is mentioned there to bypass any kind of errors.

Command: yum remove <App-Name>

The above discussion will be enough to clarify the concept of Using APT & YUM on Linux as Package Manager. With Package Manager Linux, working on the application becomes more easier as a few simple commands are used.

Also Read

Frequently Asked Questions

How to use YUM Package Manager on Linux?

To use the YUM Package Manager for different purposes, the following guidelines can be used.

  1. To update any packages or the entire one, use the command yum update.
  2. To install any application, use the command yum install <App-Name>.
  3. To remove any application, use the command yum remove <App-Name>.

How to use APT Package Manager on Linux?

The steps to use the APT Package Manager for different purposes on Linux are the following.

  1. For installation of apps, use the command sudo apt install <App-Name>.
  2. For removing apps, use the command sudo apt remove <App-Name>.
  3. For updating purposes, the command sudo apt update will be used.

Why do we need to use Package Manager on Linux?

The use of Package Managers like APT & YUM is developed only to reduce the work pressure on Linux Users. If the Package Managers are not present, you have to search for any certain application on the internet & go a long way to install it. However, with Package Managers, this can be simply done with a few commands.

To know more about the necessity of a Package Manager, check the article Need of Package Managers in Developer’s Life.


Article Tags :