ubuntu:apt-get:upgrade_installed_packages
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:apt-get:upgrade_installed_packages [2023/06/18 14:59] – created peter | ubuntu:apt-get:upgrade_installed_packages [2023/06/18 15:05] (current) – peter | ||
---|---|---|---|
Line 8: | Line 8: | ||
**NOTE: | **NOTE: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== To upgrade only a specific program ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get upgrade < | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another way to perform a complete upgrade ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get dist-upgrade | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | |||
+ | * The command **apt-get upgrade** is very obedient. | ||
+ | * It never tries to remove any packages or tries to install a new package on its own. | ||
+ | |||
+ | * The command **apt-get dist-upgrade**, | ||
+ | * It looks for dependencies with the newer version of the package being installed and it tries to install new packages or __remove__ existing ones on its own. | ||
+ | * It has a “smart” conflict resolution system. It will attempt to upgrade the most important packages, at the expense of the less important ones. | ||
+ | * This may lead to the removal of some packages, which you might not want. This is the main reason why dist-upgrade should be avoided on production machines. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
ubuntu/apt-get/upgrade_installed_packages.1687100397.txt.gz · Last modified: 2023/06/18 14:59 by peter