Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?
A. auto-update
B. dist-upgrade
C. full-upgrade
D. install
E. update

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

  1. Answer : C (run on Ubuntu 20.04)
    # A: doesn’t exist as an option
    # B: man 8 apt-get — The dist-upgrade command may therefore remove some packages.
    # D: installs individual pacakges
    # E: man 8 apt-get — update is used to resynchronize the package index files from their sources.

    apt-get full-upgrade
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Calculating upgrade… Done
    The following package was automatically installed and is no longer required:
    libfwupdplugin1
    Use ‘apt autoremove’ to remove it.
    The following NEW packages will be installed:
    libfwupdplugin5
    The following packages will be upgraded:
    fwupd fwupd-signed libfwupd2 libnetplan0 libxml2 netplan.io
    6 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    1 standard security update
    Need to get 3,529 kB of archives.
    After this operation, 1,776 kB of additional disk space will be used.
    Do you want to continue? [Y/n]

  2. Attention!

    dist-upgrade removes packages if the latest distribution no longer contains certain programs that are already installed.

    With the subcommand upgrade of apt-get you update all installed packages to the latest available version. It is not absolutely necessary to run the command apt-get update before calling this command. apt-get upgrade is most conservative and does not install new packages, nor does it remove packages that are no longer needed.

  3. I also think answer B is correct.

    Extract from the man-pages:

    apt-get update is used to synchronize the package index file with its sources again. The indices of available packages are loaded from the locations specified in /etc/apt/sources.list. For example, if you are using a Debian archive, this command retrieves and evaluates the Packages.gz files so that information about new and updated packages is available. An update should always be done before an upgrade or dist-upgrade.

  4. B
    apt-get update is merely update the apt repositories list for latest package version instead of install

    15

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.