apt e apt-get atualizando pacotes diferentes

3

Hoje eu queria testar sudo apt upgrade em vez de sudo apt-get upgrade , mas, por algum motivo, os resultados deles são diferentes.

saída de sudo apt upgrade :

The following package was automatically installed and is no longer required:
  libllvm3.8:i386
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  caribou libcapnp-0.5.3 libinput-bin libllvm4.0 libllvm4.0:i386 libmircommon7 libmircore1 libsensors4:i386 python-dbus python-pyatspi
The following packages will be upgraded:
  gnome-shell gnome-shell-common kmod libappstream-glib8 libegl1-mesa libgbm1 libgl1-mesa-dri libgl1-mesa-dri:i386 libinput10 libkmod2
  libmirclient9 libwayland-egl1-mesa libwhoopsie0 libxatracker2 mesa-vdpau-drivers shim-signed whoopsie
17 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 41,4 MB of archives.
After this operation, 123 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

saída de sudo apt-get upgrade :

The following packages have been kept back:
  gnome-shell gnome-shell-common libegl1-mesa libgbm1 libgl1-mesa-dri libgl1-mesa-dri:i386 libinput10 libmirclient9 libwayland-egl1-mesa
  libxatracker2 mesa-vdpau-drivers
The following packages will be upgraded:
  kmod libappstream-glib8 libkmod2 libwhoopsie0 shim-signed whoopsie
6 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Need to get 572 kB of archives.
After this operation, 3.072 B of additional disk space will be used.
Do you want to continue? [Y/n] n

Como você pode ver, apt-get apenas atualiza 6 pacotes e mantém 11 de volta, enquanto apt oferece a atualização de todos os 17. Adicionalmente, apt tenta instalar 10 pacotes recentemente.

Eu já verifiquei a saída de sudo apt update e sudo apt-get update , mas ambos estão usando as mesmas fontes de pacotes.

Agora eu me pergunto o que é isso.

    
por Simon Merkelbach 28.07.2017 / 22:08

1 resposta

3

De man apt :

   upgrade (apt-get(8))
       upgrade is used to install available upgrades of all packages
       currently installed on the system from the sources configured via
       sources.list(5). New packages will be installed if required to
       statisfy dependencies, but existing packages will never be removed.
       If an upgrade for a package requires the remove of an installed
       package the upgrade for this package isn't performed.

Portanto, para que as dependências sejam satisfeitas, apt instalará os novos aplicativos. Onde apt-get indica que under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed . Os aplicativos que estão sendo held back por apt-get você executaria como dist-upgrade em vez de upgrade , como faria com apenas o aplicativo apt .

De man apt-get :

   upgrade
       upgrade is used to install the newest versions of all packages
       currently installed on the system from the sources enumerated in
       /etc/apt/sources.list. Packages currently installed with new
       versions available are retrieved and upgraded; under no
       circumstances are currently installed packages removed, or packages
       not already installed retrieved and installed. New versions of
       currently installed packages that cannot be upgraded without
       changing the install status of another package will be left at
       their current version. An update must be performed first so that
       apt-get knows that new versions of packages are available.

E as descrições de ambos:

   apt provides a high-level commandline interface for the package
   management system. It is intended as an end user interface and enables
   some options better suited for interactive usage by default compared to
   more specialized APT tools like apt-get(8) and apt-cache(8).

   apt-get is the command-line tool for handling packages, and may be
   considered the user's "back-end" to other tools using the APT library.
   Several "front-end" interfaces exist, such as aptitude(8), synaptic(8)
   and wajig(1).

Espero que isso ajude!

    
por Terrance 29.07.2017 / 00:06