Ubuntu / Debian equivalent to yum check-update – Tip of the Week

…been searching for the equivalent command to yum check-update for Ubuntu and Debian, and thanks to some Google searching, found what I needed, as follows:
1.  sudo apt-get update

…to ensure you have the latest package index files, then

2.  sudo aptitude search ‘~U’

…which is the aptitude syntax for search for upgradeable packages. Check out Daniel Burrows aptitude manual online here.

You can use the equivalent:

sudo aptitude search ‘?upgradable’

…but I thought folks could trip over the spelling of upgradable -vs- upgradeable (the latter won’t work)

🙂

Hope this helps!

Michael

About Michael Abboud

Linux / Unix Technical Specialist
This entry was posted in Linux / Unix Tips and tagged , , , , , , , , , , . Bookmark the permalink.

Leave a comment