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
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
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.