101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 32


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

Show Answer
Correct Answer: B

The 'dist-upgrade' command in apt-get is used to install the newest versions of all currently installed packages. It intelligently handles changing dependencies with new versions of packages and will attempt to upgrade the most important packages at the expense of less important ones if necessary.

Discussion

15 comments
Sign in to comment
cast7omadrid1Option: B
Mar 14, 2020

The correct answer is dist-upgrade

serbalOption: B
Mar 10, 2020

dist-upgrade - Upgrades all packages, but monitors for package dependencies

shyamiteOption: B
Feb 21, 2020

It should be upgrade ( dependecny resolution but no deletion of conflicts) or dist-upgrdae( autoconfig dependency conflicts)

McLabaOption: E
Apr 1, 2021

A. auto-update -> does not exist B. dist-upgrade -> upgrade linux distibution C. full-upgrade -> does not exist D. install -> install new packge E. update -> last but not least ...the right answer!!!

McLaba
May 11, 2021

B is right dist-upgrade I'm sorry

[Removed]Option: B
Jul 30, 2020

By definition apt-get upgrade would be the answer, but dist-upgrade include upgrade plus dependency conflicts resolution, in this case B is correct

sandeyOption: B
Aug 6, 2020

update command on .deb distributions, update the repository list "/etc/apt/source.list". So the answer to the question would be "upgrade || dist-upgrade". Being an "upgrade", update and maintain previous packages. "dist-upgrade", update and delete previous versions of the package

CEFOption: C
May 6, 2021

From de MAN Page update (apt-get(8)): update is used to download package information from all configured sources. Other commands operate on this data to e.g. perform package upgrades or search in and display details about all packages available for installation. upgrade (apt-get(8)): upgrade is used to install available upgrades of all packages currently installed on the system from the sources configured via sources.list(5). New packages will be installed if required to satisfy dependencies, but existing packages will never be removed. If an upgrade for a package requires the removal of an installed package the upgrade for this package isn't performed. full-upgrade (apt-get(8)): full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole.

childofevil
May 25, 2022

you look into the wrong man-page (man apt). in the man-page from 'apt-get' there isn't a 'full-upgrade' only a 'dist-uprade' option.

CuriousLinuxCatOption: B
Jul 23, 2021

The update does not, under any circumstances delete currently installed packages. Also, it won't install new versions of the package if it has to change another status package. Efficiency-wise, you want to use dist-upgrade because it has an in-built conflict resolution feature! (Also, does what update does too)

tommyWannaLearnOption: B
Dec 25, 2020

B must be a correct answer. Something wrong comes from this site

minhng99Option: B
Jan 2, 2022

apt-get update is only for updating the local database contains the info about what the latest packages is, it does NOT attempt to upgrade any package

marenco
Mar 15, 2022

apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages. apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update.

cloudbasedOption: B
May 28, 2022

the right answer is B. The update command updates only the repositories

LazylinuxOption: B
Apr 22, 2022

is correct

gonzalocoOption: B
Apr 26, 2022

i think is upgrade but same wait the most right could be B

NinymoOption: B
Mar 24, 2024

Answer: B