![apt에서 어떤 패키지가 업데이트되는지 어떻게 확인할 수 있나요?](https://rvso.com/image/1126790/apt%EC%97%90%EC%84%9C%20%EC%96%B4%EB%96%A4%20%ED%8C%A8%ED%82%A4%EC%A7%80%EA%B0%80%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%EB%90%98%EB%8A%94%EC%A7%80%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%ED%99%95%EC%9D%B8%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%82%98%EC%9A%94%3F.png)
로그인 시 내 서버에 몇 가지 업데이트가 있음을 알 수 있습니다.
업데이트를 시작하지 않고 내 서버에서 업데이트될 패키지를 어떻게 확인할 수 있나요?
답변1
--dry-run
, -s
, --simulate
, --just-print
, --recon
, 인수를 사용 --no-act
하면 실제로는 아무것도 수행하지 않고 수행할 작업만 알려줍니다.
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).
그래서 쉽게 명령을 살펴보십시오.
apt-get upgrade --dry-run
또는
apt-get upgrade -s