Updating YUM in Linux
This article will teach us how to update YUM in Linux and how to install, update, remove, find and manage packages on a Linux system. We have also seen the difference yum update
between and in Linux yum upgrade
.
yum update command in Linux
yum update
The command (modified as yellow-dog updater) is an open source command used in Linux. Using yum update, we can easily install, update, and remove software packages on Linux systems.
Let us understand how to use yum command for different purposes in Linux. Before using yum update command, we need to install yum update package using following command.
Step 1:
$ sudo apt-get update -y
Step 2:
$ sudo apt -y install yum
After running the above command, the yum update package will be installed on your Linux system.
Install the package using the yum command
If we want to install a package called Firefox, we can do so using the yum command. The following yum command will automatically find and install the required Firefox package.
$ yum install Firefox
The above command will ask for confirmation from the user before installing the Firefox package on the system. If we want to avoid this and automatically install the package without asking for confirmation, we need to use the -y option as shown below.
$ yum -y install firefox
Remove packages using yum command
We can remove any package using yum command in Linux. If we want to remove Firefox package that we installed, we use the following command.
$ yum -y remove firefox
The above command will remove the Firefox package including all its dependencies. We have also used the -y option here.
Run this command without asking for confirmation before removing the package.
Update packages using yum command
We can also use yum command to update any package in Linux.
For example, we have a package called MySQL and we want to update it to the latest version. We can update it to the latest version using the following command. e We installed the Firefox package, we use the following command.
$ yum update mysql
Get information about any package using yum command
Using yum command, we can also get information about any package before installing it.
For example, if we want to install Firefox package on Linux, let’s first learn about the package. We can get information about Firefox package by running the following command.
$ yum info Firefox
The difference between yum update and yum upgrade
yum update
The yum upgrade command updates all installed packages to the latest versions available in the repository. The yum upgrade command does the same.
The difference between these commands is that when we use yum upgrade
the remove command, it removes all obsolete packages from the system after installing the packages whereas yum update
remove does not remove obsolete packages from the system after installing the packages.
I hope this article helped you understand yum update
the use of command and the difference between yum update
and in Linux.yum upgrade
For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.
Related Articles
Installing Deb Files in Linux
Publish Date:2025/03/23 Views:93 Category:OPERATING SYSTEM
-
In this Linux article, we will learn how to install .deb (Debian Package) files on Linux systems. We will also see how to remove .deb files after installation. More importantly, we will learn different ways to install .deb files on Linux sy
lsof Command in Linux
Publish Date:2025/03/23 Views:100 Category:OPERATING SYSTEM
-
In this Linux article, we will learn about lsof command in Linux operating system. We will see how to use this command for different purposes in Linux. We use lsof the lsof command to verify the ports in use on the Linux operating system. U
How to solve the problem of not being able to execute binary files in Linux
Publish Date:2025/03/23 Views:108 Category:OPERATING SYSTEM
-
In this article, we will learn how to execute binary files in Linux. We will also learn how to troubleshoot the error if Linux fails to execute the binary file. Usually, this error occurs when we run shell scripts in Linux. This article wil
Error in Linux Mesg: Ttyname Failed: Inappropriate Ioctl for Device Error
Publish Date:2025/03/23 Views:178 Category:OPERATING SYSTEM
-
In this article, we will learn how to fix the error mesg: ttyname failed: Inappropriate ioctl for device in Linux . We will discuss some of the causes of this error and show you how to fix it. Let's start with what causes this error in Linu
ps aux command in Linux
Publish Date:2025/03/23 Views:57 Category:OPERATING SYSTEM
-
If you are using Linux and are looking for a tool that can monitor all the processes running on your system, then you should use the command ps aux. This command will show you an overview of all running processes. It is very useful for trou
NTP in Linux
Publish Date:2025/03/23 Views:58 Category:OPERATING SYSTEM
-
NTP is a core protocol used by most IT infrastructures. Its purpose is to synchronize date and time information. However, it is very important to configure NTP for your servers, clients, and other network devices. NTP uses a UDP port number
Creating a Progress Bar in Bash
Publish Date:2025/03/23 Views:94 Category:OPERATING SYSTEM
-
A progress bar is a visual indicator that shows the progress of a task, such as a long-running script or command. It can be used to provide feedback to the user about the status of a task and can also help estimate the time remaining before
Redirecting Stderr and Stdout to a file in Bash
Publish Date:2025/03/23 Views:187 Category:OPERATING SYSTEM
-
In this article, we will discuss standard output and standard error in Linux. We will see how to redirect standard output and standard error in Bash. Let us start by understanding the terms standard output and standard error in Linux. Stand
Deleting Duplicate Lines in Bash
Publish Date:2025/03/23 Views:123 Category:OPERATING SYSTEM
-
Duplicate entries can cause a variety of problems in Bash scripts, such as incorrect or inconsistent results, and they can also make the script difficult to maintain. Removing duplicate entries from a script is often necessary to avoid thes