nerdexam
CompTIA

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.

System Management

Question

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 website. Which of the following commands should the administrator use to obtain the latest version of the package?

Options

  • Aapt update
  • Bapt-get refresh
  • Capt purge
  • Dapt-get cache update

How the community answered

(36 responses)
  • A
    92% (33)
  • C
    3% (1)
  • D
    6% (2)

Why each option

To obtain the latest package versions available in the repositories using APT, the package index files must first be updated.

Aapt updateCorrect

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.

Bapt-get refresh

`apt-get refresh` is not a standard `apt-get` command; the correct command for updating package lists is `apt-get update` or `apt update`.

Capt purge

`apt purge` is used to remove a package along with its configuration files, not to update the list of available packages.

Dapt-get cache update

`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

#APT#Package Management#System Updates

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice