nerdexam
Linux_Foundation

LFCS · Question #738

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

The correct answer is A. apt-get update. On dpkg-based systems, the apt-get update command is used to download the latest package information from configured repositories.

Submitted by hassan_iq· Apr 18, 2026Essential Commands

Question

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

Options

  • Aapt-get update
  • Bapt-get upgrade
  • Capt-cache update
  • Dapt-get refresh
  • Eapt-cache upgrade

How the community answered

(39 responses)
  • A
    95% (37)
  • B
    3% (1)
  • C
    3% (1)

Why each option

On dpkg-based systems, the `apt-get update` command is used to download the latest package information from configured repositories.

Aapt-get updateCorrect

The `apt-get update` command downloads the package lists from the repositories and 'updates' them to get information on the newest versions of packages and their dependencies. This command does not install or upgrade any packages, but rather updates the local cache of available packages.

Bapt-get upgrade

`apt-get upgrade` installs newer versions of the currently installed packages from the sources enumerated in `/etc/apt/sources.list`, but it does not update the list of available packages first.

Capt-cache update

`apt-cache update` is not a valid command; `apt-cache` is used to query information from the package cache, not update it from remote repositories.

Dapt-get refresh

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

Eapt-cache upgrade

`apt-cache upgrade` is not a valid command; `apt-cache` is for querying the cache, not for upgrading packages.

Concept tested: APT package manager update command

Source: https://manpages.ubuntu.com/manpages/jammy/en/man8/apt-get.8.html

Topics

#Package Management#APT#dpkg#Update Package Lists

Community Discussion

No community discussion yet for this question.

Full LFCS Practice