0

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.

Thanks.

Marc
  • 61

1 Answers1

1

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