![¿Cómo puedo ver qué paquetes se actualizarán desde apt?](https://rvso.com/image/1126790/%C2%BFC%C3%B3mo%20puedo%20ver%20qu%C3%A9%20paquetes%20se%20actualizar%C3%A1n%20desde%20apt%3F.png)
Al iniciar sesión, veo en mi servidor que hay algunas actualizaciones disponibles.
¿Cómo puedo ver qué paquetes se actualizarán en mi servidor sin iniciar la actualización?
Respuesta1
use el argumento --dry-run
, -s
, --simulate
, --just-print
, --recon
y --no-act
en realidad no hará nada, solo le dirá lo que haría:
Desde la página de manual de apt-get
-s, --simulate, --just-print, --dry-run, --recon, --no-act
No action; perform a simulation of events that would occur but do
not actually change the system. Configuration Item:
APT::Get::Simulate.
Simulate prints out a series of lines each one representing a dpkg
operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square
brackets indicate broken packages with and empty set of square
brackets meaning breaks that are of no consequence (rare).
tan fácilmente eche un vistazo al comando:
apt-get upgrade --dry-run
o
apt-get upgrade -s