Upgrade the installed system.
Allow new dependencies to be installed and existing packages to be removed when required to resolve the dependency plan.
Which apt-get subcommand is appropriate?
apt-get dist-upgrade resolves dependency changes and may install new packages or remove existing ones. Review its transaction plan before applying it.
Detailed explanation
updateIncorrect. update refreshes package indexes but does not upgrade installed packages.
Incorrect. update refreshes package indexes but does not upgrade installed packages.
dist-upgradeCorrect. dist-upgrade can resolve dependency changes across the system.
Correct. dist-upgrade can resolve dependency changes across the system.
cleanIncorrect. clean removes cached package archives.
Incorrect. clean removes cached package archives.
downloadIncorrect. download retrieves packages without performing the system upgrade.
Incorrect. download retrieves packages without performing the system upgrade.
Try it yourself
An example you can run in a temporary verification environment.
apt-get --help | grep -E '^ (dist-upgrade|full-upgrade)'Expected result
dist-upgrade等の説明。実際の更新は行わないKey points
- It resolves dependency changes
- Installations and removals may occur
- Review the plan first
Notes
- Environment: Debian系 / APT 2.x
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.