Ubuntu to list relevant security advisories

neoCrimeLabs asked:

If I want to find out what security updates there are on a redhat/centos server and the coresponding security advisory I can run this command:

yum --security list-security

That would include data such as:

RHSA-2013:0132 security autofs-1:5.0.1-0.rc2.177.el5.x86_64
RHSA-2013:0131 security gnome-vfs2-2.16.2-10.el5.x86_64
RHSA-2013:0135 security gtk2-2.10.4-29.el5.i386
RHSA-2013:0130 security httpd-2.2.3-74.el5.x86_64
RHSA-2012:1590 security libtiff-3.8.2-18.el5_8.i386
RHSA-2013:0120 security quota-1:3.13-8.el5.x86_64
RHSA-2013:0129 security ruby-1.8.5-27.el5.x86_64
RHSA-2013:0129 security ruby-libs-1.8.5-27.el5.x86_64
RHSA-2013:0122 security tcl-8.4.13-6.el5.x86_64

This way not only do I know what packages need to be updated, if I want I can also find out what the security risk is in detail by looking up the RHSA. Basic, and very handy information to have.

The closest I could figure out on ubuntu is:

sudo apt-get upgrade -s| grep ^Inst |grep -i security

Unfortunately this only shows me that there are security packages that need to be installed.

Is there a native way to find out the related security advisories? By native, I mean without having to use a third party package.

My answer:


In addition to the option you gave:

apt-get -s dist-upgrade |grep "^Inst" |grep -i securi 

You could try:

unattended-upgrade --dry-run -d

and

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

(Seen on Ask Ubuntu)


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.