Advanced YUM Commands

8. Enabling and Disabling Repositories:

YUM uses repositories to fetch packages. You can enable or disable specific repositories as needed, allowing you to control which packages are available for installation or updates.

sudo yum-config-manager --enable repository






sudo yum-config-manager --disable repository






9. Checking for Updates Without Installing:

This command checks for available package updates without actually installing them. It’s useful for previewing what updates are available before deciding to install them.

sudo yum check-update




Checking for Updates Without Installing

10. Installing Groups of Packages:

YUM allows you to install predefined groups of packages, such as development tools or web servers, by specifying the group name. This can simplify the installation of multiple related packages.

sudo yum groupinstall group-name






Example:

sudo yum groupinstall "Development Tools"






11. Removing Unused Dependencies:

YUM can remove dependencies that are no longer needed by any installed package. This helps to keep your system clean and efficient by removing unnecessary files.

sudo yum autoremove




Removing Unused Dependencies

12. Verbose Output:

If you want more detailed information during YUM operations, you can use the `-v` (verbose) option. It will provide additional output about the installation process, which can be helpful for debugging or monitoring progress.

sudo yum -v install package-name






YUM Commands for Linux Package Management

If you are a Linux user or system administrator, chances are you’ve come across YUM (Yellowdog Updater, Modified) at some point in your journey. YUM is a powerful package management tool that simplifies the process of installing, updating, and managing software on Red Hat-based Linux distributions like CentOS and Fedora. In this article, we will delve into the most common YUM commands, providing detailed explanations and real-world examples to help you harness its full potential.

Similar Reads

Basic Syntax of `yum` command in Linux

Before we dive into the most common YUM commands, let’s start with the basic syntax:...

Commonly used YUM Options in Linux

These options cover a wide range of package management tasks, from installation and updates to package removal and repository management. You can combine them with other YUM commands to perform specific operations efficiently on your Linux system....

Common YUM Commands:

1. Installing Packages:...

Advanced YUM Commands:

8. Enabling and Disabling Repositories:...

Conclusion:

YUM is a versatile and indispensable tool for managing software packages on Red Hat-based Linux distributions. In this guide, we’ve covered the most common YUM commands, from installing and updating packages to searching for software and managing repositories. Armed with this knowledge and the provided examples, you can confidently navigate the world of package management in the Linux ecosystem, making your system administration tasks more efficient and productive....