Which of the following commands prints a list of available package updates when using RPM-based package management?
Correct Answer: D
Explanation
The command yum check-update prints a list of available package updates when using RPM-based package management. This command queries all enabled repositories and shows the packages that have updates available, along with the new version number. This command does not actually update any packages, but only lists them. To update the packages, the command yum update can be used. The other commands are either invalid or belong to a different package management system. dpkg is a low-level tool for Debian-based package management, and yum list shows all available packages in the repositories, not just the ones that have updates. References:
* Linux Package Management with Yum, RPM, Apt, Dpkg, Aptitude and Zypper - Part 9
* rpm - RPM package management tool | Linux Docs
* RPM Command in Linux | Linuxize