Get a list of phased package upgrades for a script (apt vs. update-manager)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
Hello fellow Ubuntu community,
I stumbled upon the discrepancy between the packages that update-manager offers for upgrade, an those that apt/apt-get shows. That is due to Ubuntus phased upgrade mechanism as I know now.
This hinders me, because I need to monitor the clients in our network for their upgrade state. And usually people upgrade just the packages that update-manager offers to upgrade. Leaving our check-scripts with a list of upgradeable packages which are gathered by apt list --upgradeable
.
What I am looking for is a shell command that lists the phased updates which are held back. I can disply those by running update-manager --debug
:
INFO:root:holding back phased update compiz (0 < 67)
INFO:root:holding back phased update compiz-core (0 < 67)
INFO:root:holding back phased update compiz-gnome (0 < 67)
INFO:root:holding back phased update compiz-plugins-default (0 < 67)
INFO:root:holding back phased update libcompizconfig0 (0 < 67)
INFO:root:holding back phased update libdecoration0 (0 < 67)
INFO:root:holding back phased update libpython-stdlib (50 < 93)
INFO:root:holding back phased update libunity-control-center1 (0 < 92)
INFO:root:holding back phased update libunity-core-6.0-9 (0 < 43)
INFO:root:holding back phased update python (50 < 93)
INFO:root:holding back phased update python-minimal (50 < 93)
INFO:root:holding back phased update unity (0 < 43)
INFO:root:holding back phased update unity-control-center (0 < 92)
INFO:root:holding back phased update unity-control-center-faces (0 < 92)
INFO:root:holding back phased update unity-schemas (0 < 43)
INFO:root:holding back phased update unity-services (0 < 43)
...but that still pops open update-managers GUI.
Is there any way of aquiring a list of updates which are phased? I Imagine this must be a flag somewhere (in the repository maybe?) that update-manager interpretes.
apt upgrade updates update-manager
 |Â
show 2 more comments
up vote
0
down vote
favorite
Hello fellow Ubuntu community,
I stumbled upon the discrepancy between the packages that update-manager offers for upgrade, an those that apt/apt-get shows. That is due to Ubuntus phased upgrade mechanism as I know now.
This hinders me, because I need to monitor the clients in our network for their upgrade state. And usually people upgrade just the packages that update-manager offers to upgrade. Leaving our check-scripts with a list of upgradeable packages which are gathered by apt list --upgradeable
.
What I am looking for is a shell command that lists the phased updates which are held back. I can disply those by running update-manager --debug
:
INFO:root:holding back phased update compiz (0 < 67)
INFO:root:holding back phased update compiz-core (0 < 67)
INFO:root:holding back phased update compiz-gnome (0 < 67)
INFO:root:holding back phased update compiz-plugins-default (0 < 67)
INFO:root:holding back phased update libcompizconfig0 (0 < 67)
INFO:root:holding back phased update libdecoration0 (0 < 67)
INFO:root:holding back phased update libpython-stdlib (50 < 93)
INFO:root:holding back phased update libunity-control-center1 (0 < 92)
INFO:root:holding back phased update libunity-core-6.0-9 (0 < 43)
INFO:root:holding back phased update python (50 < 93)
INFO:root:holding back phased update python-minimal (50 < 93)
INFO:root:holding back phased update unity (0 < 43)
INFO:root:holding back phased update unity-control-center (0 < 92)
INFO:root:holding back phased update unity-control-center-faces (0 < 92)
INFO:root:holding back phased update unity-schemas (0 < 43)
INFO:root:holding back phased update unity-services (0 < 43)
...but that still pops open update-managers GUI.
Is there any way of aquiring a list of updates which are phased? I Imagine this must be a flag somewhere (in the repository maybe?) that update-manager interpretes.
apt upgrade updates update-manager
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfbsudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.
â Robert Riedl
Feb 21 at 13:00
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameterapt list --not-phased
.
â Marlon
Feb 21 at 13:34
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Hello fellow Ubuntu community,
I stumbled upon the discrepancy between the packages that update-manager offers for upgrade, an those that apt/apt-get shows. That is due to Ubuntus phased upgrade mechanism as I know now.
This hinders me, because I need to monitor the clients in our network for their upgrade state. And usually people upgrade just the packages that update-manager offers to upgrade. Leaving our check-scripts with a list of upgradeable packages which are gathered by apt list --upgradeable
.
What I am looking for is a shell command that lists the phased updates which are held back. I can disply those by running update-manager --debug
:
INFO:root:holding back phased update compiz (0 < 67)
INFO:root:holding back phased update compiz-core (0 < 67)
INFO:root:holding back phased update compiz-gnome (0 < 67)
INFO:root:holding back phased update compiz-plugins-default (0 < 67)
INFO:root:holding back phased update libcompizconfig0 (0 < 67)
INFO:root:holding back phased update libdecoration0 (0 < 67)
INFO:root:holding back phased update libpython-stdlib (50 < 93)
INFO:root:holding back phased update libunity-control-center1 (0 < 92)
INFO:root:holding back phased update libunity-core-6.0-9 (0 < 43)
INFO:root:holding back phased update python (50 < 93)
INFO:root:holding back phased update python-minimal (50 < 93)
INFO:root:holding back phased update unity (0 < 43)
INFO:root:holding back phased update unity-control-center (0 < 92)
INFO:root:holding back phased update unity-control-center-faces (0 < 92)
INFO:root:holding back phased update unity-schemas (0 < 43)
INFO:root:holding back phased update unity-services (0 < 43)
...but that still pops open update-managers GUI.
Is there any way of aquiring a list of updates which are phased? I Imagine this must be a flag somewhere (in the repository maybe?) that update-manager interpretes.
apt upgrade updates update-manager
Hello fellow Ubuntu community,
I stumbled upon the discrepancy between the packages that update-manager offers for upgrade, an those that apt/apt-get shows. That is due to Ubuntus phased upgrade mechanism as I know now.
This hinders me, because I need to monitor the clients in our network for their upgrade state. And usually people upgrade just the packages that update-manager offers to upgrade. Leaving our check-scripts with a list of upgradeable packages which are gathered by apt list --upgradeable
.
What I am looking for is a shell command that lists the phased updates which are held back. I can disply those by running update-manager --debug
:
INFO:root:holding back phased update compiz (0 < 67)
INFO:root:holding back phased update compiz-core (0 < 67)
INFO:root:holding back phased update compiz-gnome (0 < 67)
INFO:root:holding back phased update compiz-plugins-default (0 < 67)
INFO:root:holding back phased update libcompizconfig0 (0 < 67)
INFO:root:holding back phased update libdecoration0 (0 < 67)
INFO:root:holding back phased update libpython-stdlib (50 < 93)
INFO:root:holding back phased update libunity-control-center1 (0 < 92)
INFO:root:holding back phased update libunity-core-6.0-9 (0 < 43)
INFO:root:holding back phased update python (50 < 93)
INFO:root:holding back phased update python-minimal (50 < 93)
INFO:root:holding back phased update unity (0 < 43)
INFO:root:holding back phased update unity-control-center (0 < 92)
INFO:root:holding back phased update unity-control-center-faces (0 < 92)
INFO:root:holding back phased update unity-schemas (0 < 43)
INFO:root:holding back phased update unity-services (0 < 43)
...but that still pops open update-managers GUI.
Is there any way of aquiring a list of updates which are phased? I Imagine this must be a flag somewhere (in the repository maybe?) that update-manager interpretes.
apt upgrade updates update-manager
apt upgrade updates update-manager
asked Feb 21 at 12:22
![](https://i.stack.imgur.com/53d4W.jpg?s=32&g=1)
![](https://i.stack.imgur.com/53d4W.jpg?s=32&g=1)
Marlon
211
211
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfbsudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.
â Robert Riedl
Feb 21 at 13:00
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameterapt list --not-phased
.
â Marlon
Feb 21 at 13:34
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46
 |Â
show 2 more comments
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfbsudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.
â Robert Riedl
Feb 21 at 13:00
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameterapt list --not-phased
.
â Marlon
Feb 21 at 13:34
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.â Robert Riedl
Feb 21 at 13:00
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.â Robert Riedl
Feb 21 at 13:00
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameter
apt list --not-phased
.â Marlon
Feb 21 at 13:34
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameter
apt list --not-phased
.â Marlon
Feb 21 at 13:34
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008364%2fget-a-list-of-phased-package-upgrades-for-a-script-apt-vs-update-manager%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
xvfb-run update-manager --debug
might be a solution for you. YOu'd need to install xvfbsudo apt-get install xvfb
however, since that virtual X11 (framebuffer) is not standard on ubuntu install. But this way you can redirect the graphical output and still get the commandline output for your script.â Robert Riedl
Feb 21 at 13:00
Thanks @RobertRiedl - that suppresses the GUI, but leaves the command laying dormant afterwards (propably because it's waiting for input from its GUI). Also - it's pretty slow. I'm rather looking for something that gives me only the updates which aren't held back because of being phased. For example like a (fictious) parameter
apt list --not-phased
.â Marlon
Feb 21 at 13:34
I'm sorry to disappoint you: " Update Manager is currently the only package manager that supports phased updates. Any other update mechanism installs all updates regardless of the Phased-Update-Percentage." Quote from the official Ubuntu page on PhasedUpdates
â Robert Riedl
Feb 21 at 13:38
do you like this phased mechanism ? because there seems to be a way to disable it... on the other hand, you can always parse the report on which updates are phased and in your check-script, remove those packages ?
â Robert Riedl
Feb 21 at 13:44
I read about update-manager being the only tool to support this mechanism. But since the article was from 2012, I was hoping this information might be outdated. But I also found nothing else.
â Marlon
Feb 21 at 15:46