Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5435  / 3 Years ago, wed, october 20, 2021, 11:34:55


Installed new Ubuntu Server 12.04 on Windows Azure



After apt-get upgrade, console shows:



The following packages have been kept back:
linux-image-extra-virtual linux-image-virtual linux-tools linux-virtual
(...)

83 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 64.5 MB of archives.
After this operation, 714 kB of additional disk space will be used


And After aptitude upgrade



The following NEW packages will be installed:
linux-image-3.2.0-32-virtual{a} linux-image-extra-3.2.0-32-virtual{a}
linux-tools-3.2.0-32{a}
(...)

The following packages are RECOMMENDED but will NOT be installed:
libglib2.0-data shared-mime-info shared-mime-info:i386
87 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 103 MB of archives. After unpacking 151 MB will be used.


So there is difference between the two.



Could you please advice what I should choose to upgrade my server? Is there any advantages of upgrading additional packages via aptitude or I should stay with apt-get and upgrade less packages?


More From » upgrade

 Answers
4

According to the apt-get man page:



upgrade is used to install the newest versions of all packages currently installed on the system.


dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages.



When you use aptitude, it automatically use the dependencies of the packages, if you want likely the same results, use apt-get dist-upgrade.


If you want to know the differences between the two, check this post or this one.


[#34935] Friday, October 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
rmiend questions
Tue, Jan 18, 22, 23:52, 2 Years ago
Sat, Sep 17, 22, 15:44, 2 Years ago
;