Monday, April 29, 2024
70
rated 0 times [  70] [ 0]  / answers: 1 / hits: 160198  / 2 Years ago, sun, may 15, 2022, 12:20:23

FreeBSD user joining your ranks. I've been asked to look after an Ubuntu Server running 10.04 LTS.



I see from /usr/lib/update-notifier/update-motd-updates-available that there are a number of updates on the server however I do not see a way to tell which will be updated.



Would anyone be able to point me in the right direction so as I can see which packages will get updated when I run apt-get upgrade?



UPDATE:



Can't answer my own question at the moment so throwing this in here for the time being:



Along with the apt-get upgrade --dry-run suggested below,
/usr/lib/update-notifier/apt-check -p will list all packages that have updates available.


More From » package-management

 Answers
2

You could install aptitude if it isn't already installed. It's a great tool for managing packages in a headless setup.



enter image description here



Otherwise if you just want to see what's going to happen when you run something, use the --dry-run argument and it won't actually do anything, it'll just tell you what it would do:



From the apt-get man page




-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).



Add the option to the command this way



apt upgrade --dry-run

[#40670] Tuesday, May 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bjecterless

Total Points: 59
Total Questions: 96
Total Answers: 105

Location: Argentina
Member since Thu, Mar 18, 2021
3 Years ago
bjecterless questions
;