101-500 practice question 1 of 30
Which of the following commands prints a list of available package updates when using RPM-based package management?
Full set: 246 questionsOn RPM-based systems like RHEL, CentOS, or Fedora, yum (or its successor dnf) is a high-level package management tool. The command yum check-update queries the configured repositories for newer versions of all currently installed packages. It then prints a list of packages that have an available update, without performing the update itself.
A. dpkg list: dpkg is the package manager for Debian-based systems (like Ubuntu), not RPM-based systems.
B. yum list: This command is too general. While yum list updates would work, yum list by itself lists all packages, not just available updates.
C. dpkg check-update: This is an invalid command. dpkg is for Debian-based systems, and it does not have a check-update subcommand.
E. yum list-update: This is not a valid yum command. The correct syntax to list updates is yum list updates or, more directly, yum check-update.
Red Hat Enterprise Linux 7 System Administrator's Guide, "Chapter 9. Yum", Section 9.3. "Searching for Packages". The guide states: "To determine which of the installed packages on your system have updates available, type the following: yum check-update".
yum man page (e.g., from CentOS 7): "check-update: This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available."
Keep practicing
Take the free 101-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 101-500 practice questions
- Question 2Which of the following commands changes the number of days before the ext3 filesystem on …
- Question 3During a system boot cycle, what program is executed after the BIOS completes its tasks?
- Question 4Which of the following commands reboots the system when using SysV init? (Choose TWO corr…
- Question 5Which of the following commands updates the linker cache of shared libraries?
- Question 6Which of the following commands can be used to create a USB storage media from a disk ima…
- Question 7Which of the following commands brings a system running SysV init into a state in which i…
