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

Advertisements

About Michael Abboud

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s