O que faz o “sudo apt-get dist-upgrade”? [duplicado]

1

Gostaria de saber mais sobre este comando:

sudo apt-get dist-upgrade
    
por abu abu 24.09.2017 / 15:21

2 respostas

2

Veja man apt-get :

 dist-upgrade
           dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing
           dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will
           attempt to upgrade the most important packages at the expense of less important ones if necessary. The
           dist-upgrade command may therefore remove some packages. The /etc/apt/sources.list file contains a list of
           locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for
           overriding the general settings for individual packages.
    
por George Udosen 24.09.2017 / 15:28
2

Para aprender sobre comandos, leia sua página de manual ("manpage") curta usando o comando man .

Por exemplo para aprender sobre apt-get , digite este comando:

man apt-get

O manual também conterá uma descrição do argumento dist-upgrade :

   dist-upgrade
       dist-upgrade in addition to performing the function of upgrade,
       also intelligently handles changing dependencies with new versions
       of packages; apt-get has a "smart" conflict resolution system, and
       it will attempt to upgrade the most important packages at the
       expense of less important ones if necessary. The dist-upgrade
       command may therefore remove some packages. The
       /etc/apt/sources.list file contains a list of locations from which
       to retrieve desired package files. See also apt_preferences(5) for
       a mechanism for overriding the general settings for individual
       packages.

Para sair do visualizador manual novamente, simplesmente pressione Q .

O sudo é necessário porque o comando precisa de privilégios de root para executar as operações necessárias em todo o sistema.

    
por Byte Commander 24.09.2017 / 15:28