Linux Foundation Certified System Administrator (LFCS) — Question 14

Which of the following commands is used to update the list of available packages when using dpkg based package management?

Answer options

Correct answer: A

Explanation

The command 'apt-get update' is used to retrieve the latest package information from the repositories to ensure the package manager has the most current list of available software. The other options, such as 'apt-get upgrade' and 'apt-cache upgrade', are used for upgrading installed packages, not for updating the list of available packages.