This question already has an answer here:

Is there a way to see what updates/upgrades you have without actually installing them in Ubuntu. I need to write a script to see if there are any updates available for out gitlab server, if there is, it will email me the list of pending updates but NOT install them. I've looked online, but can't seem to find any such command.


marked as duplicate by Community Oct 26 '17 at 13:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


UPDATE: use apt list --upgradable | awk '{print $1}' | cut -d / -f1 from https://unix.stackexchange.com/a/327152/23346. This will produce a list of package names that can be upgraded.

OLD: Try using apt-get --dry-run upgrade From reading man page (run man apt-get from a terminal).

  • Thank you for your answer, I've got my script working now. Much appreciated. – Marc Oct 26 '17 at 13:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.