exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 32 discussion

Actual exam question from LPI's 101-500
Question #: 32
Topic #: 1
[All 101-500 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cast7omadrid1
Highly Voted 4 years, 4 months ago
The correct answer is dist-upgrade
upvoted 21 times
...
serbal
Highly Voted 4 years, 4 months ago
dist-upgrade - Upgrades all packages, but monitors for package dependencies
upvoted 15 times
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: B
upvoted 2 times
...
cloudbased
2 years, 1 month ago
Selected Answer: B
the right answer is B. The update command updates only the repositories
upvoted 2 times
...
gonzaloco
2 years, 2 months ago
Selected Answer: B
i think is upgrade but same wait the most right could be B
upvoted 1 times
...
Lazylinux
2 years, 2 months ago
Selected Answer: B
is correct
upvoted 1 times
...
marenco
2 years, 4 months ago
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.
upvoted 3 times
...
minhng99
2 years, 6 months ago
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
upvoted 2 times
...
CuriousLinuxCat
2 years, 11 months ago
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)
upvoted 3 times
...
CEF
3 years, 2 months ago
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.
upvoted 3 times
childofevil
2 years, 1 month ago
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.
upvoted 2 times
...
...
McLaba
3 years, 3 months ago
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!!!
upvoted 5 times
McLaba
3 years, 2 months ago
B is right dist-upgrade I'm sorry
upvoted 7 times
...
...
tommyWannaLearn
3 years, 6 months ago
B must be a correct answer. Something wrong comes from this site
upvoted 2 times
...
sandey
3 years, 11 months ago
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
upvoted 3 times
...
[Removed]
3 years, 11 months ago
By definition apt-get upgrade would be the answer, but dist-upgrade include upgrade plus dependency conflicts resolution, in this case B is correct
upvoted 3 times
...
shyamite
4 years, 4 months ago
It should be upgrade ( dependecny resolution but no deletion of conflicts) or dist-upgrdae( autoconfig dependency conflicts)
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago