How to Update Linux Packages With Yum
How to Update Linux Packages With Yum
If you're on one of the Linux distributions based on Red Hat, such as Fedora, CentOS, Rocky Linux, or RHEL, you may be wondering how you can use yum to update your packages. Thankfully, updating your packages with yum is simple: just run the yum update command. You can also use yum to update only the packages that have pending updates—keep reading to learn how.
Quick Steps

Open the terminal. You can do this by pressing Ctrl+Alt+T on your keyboard. Alternatively, you can press the super user (Windows) key on your keyboard to open the Activities menu and search for "terminal".

Check for package updates (optional). If you prefer, you can check for any available package updates with the "check-update" subcommand. If you already know what packages you need to update or you just want to update them all, you can skip this step. In the terminal, write yum check-update and press Enter. All of the packages that yum can update will be listed.

Run the update command for some or all of your packages. To do this, type yum update. Without any package names with it, the yum update command will try to update every package you have. To specify a package (like the ones found in Step 3 with "check-update"), type its name after the yum update command. Once the packages are done updating, you can close out of the terminal.

What's your reaction?

Comments

https://kapitoshka.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!