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.

0

1 Answer 1

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

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.