XK0-005 · Question #10740
A Linux systems administrator is preparing to install updates using APT. The administrator notices the version of the packages that will be installed differs from the latest version on the Ubuntu…
The correct answer is A. apt update. To obtain the latest package versions available in the repositories using APT, the package index files must first be updated.
Question
Options
- Aapt update
- Bapt-get refresh
- Capt purge
- Dapt-get cache update
How the community answered
(36 responses)- A92% (33)
- C3% (1)
- D6% (2)
Why each option
To obtain the latest package versions available in the repositories using APT, the package index files must first be updated.
The `apt update` command is essential for synchronizing the local package index files with the repositories defined in `sources.list`. This action retrieves the most current information about available packages and their versions, making newer versions discoverable for installation or upgrade.
`apt-get refresh` is not a standard `apt-get` command; the correct command for updating package lists is `apt-get update` or `apt update`.
`apt purge` is used to remove a package along with its configuration files, not to update the list of available packages.
`apt-get cache update` is not a valid `apt-get` command; `update` is the correct top-level subcommand for updating package lists.
Concept tested: APT package list update
Source: https://linux.die.net/man/8/apt-get
Topics
Community Discussion
No community discussion yet for this question.