apt-get update and apt-get dist-upgrade

Christopher Chan christopher.chan at bradbury.edu.hk
Tue Sep 14 05:35:05 UTC 2010


On Tuesday, September 14, 2010 01:21 PM, Fajar Priyanto wrote:
> On Tue, Sep 14, 2010 at 12:56 PM, Kaushal Shriyan
> <kaushalshriyan at gmail.com>  wrote:
>> Hi
>>
>> What exactly apt-get update and apt-get dist-upgrade do and when
>> should we use it.
>
> Hi,
> apt-get update<-- update the package list

Correct.


> apt-get dist-upgrade<-- will upgrade installed packages and may
> remove some if necessary.

Wrong. dist-upgrade stands for Distribution Upgrade which means not 
installing the latest packages for a release but upgarding to the next 
release.


> apt-get upgrade<-- will upgrade installed packages without removing any
>

That depends. It will ask to remove packages that are obsolete IIRC.




More information about the ubuntu-users mailing list