A Linux administrator is working on a system and notices that some of the packages are not at the latest version. Which of the following commands should the administrator use to correct this issue?
Comprehensive and Detailed Step-by-Step Explanation:
The apt update command updates the package lists for repositories but does not upgrade installed packages.
After apt update, the administrator should run apt upgrade to install the latest versions of all packages.
rpm --update is incorrect because RPM does not have an --update option for updating repositories. RPM package management requires yum or dnf on RHEL-based systems.
dnt update is not a valid command (probably a typo for dnf update, which would be used on Fedora/RHEL systems).
dpkg --update is incorrect because dpkg is used for managing individual .deb packages and does not update repositories.
[Reference: CompTIA Linux+ Official Study Guide, Chapter on Package Management, , , , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit