Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On desktop machines, the Update Manager application is able to show the details of a package upgrade in the section called "Description of update" in the bottom half of the screen. Is there a way to see this information for a server machine using the command line?

share|improve this question
1  
You can try playing around with aptitude - The text-based package manager. help.ubuntu.com/community/InstallingSoftware –  JohanSJA Aug 4 '11 at 6:05
add comment

2 Answers 2

up vote 2 down vote accepted

Install apt-listchanges, it will show the changes through pager and also mail them (to root, I think).

share|improve this answer
add comment

You can combine the names of upgradable packages, obtained by

/usr/lib/update-notifier/apt-check -p

with the packages description obtained by apt-cache. Here is a script that do that:

#!/bin/bash

{ /usr/lib/update-notifier/apt-check -p 2>&1; echo; } |
  while read pkg; do
    echo "Package: " $pkg
    echo "Description:"
    apt-cache --no-all-versions show $pkg | 
      awk '/^ /'
    echo
  done

Some difficulties resolved above are that apt-check -p send output to stderr and do not write a newline on the last line.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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