101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 89


Which of the following apt-get commands will install the newest versions of all currently installed packages?

Show Answer
Correct Answer: C

The command 'dist-upgrade' in apt-get is used to install the newest versions of all currently installed packages. Unlike 'upgrade', which will simply upgrade the packages if it can do so without removing any other installed packages, 'dist-upgrade' will intelligently handle 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. This ensures a more comprehensive upgrade of the system's packages.

Discussion

3 comments
Sign in to comment
3glagOption: E
Apr 4, 2020

update is correct dist-update will upgrate os distribution

[Removed]Option: E
Apr 6, 2020

update is a correct

cast7omadrid1
Apr 10, 2020

Dist-upgrade is correct https://linux.die.net/man/8/apt-get

ciola89Option: C
Oct 15, 2023

'Apt dist-upgrade' intelligently resolves dependencies and upgrades packages while minimizing the impact on other software. In comparison to 'apt upgrade', 'apt dist-upgrade' provides a more aggressive approach to upgrading packages, ensuring a smooth upgrade process, even for complex dependency changes. update just update the package list in the local cache: his scope is to make upgrade able to download and install newest packages