Get a list of phased package upgrades for a script (apt vs. update-manager)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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.










share|improve this question





















  • xvfb-run update-manager --debug might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfbhowever, 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














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.










share|improve this question





















  • xvfb-run update-manager --debug might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfbhowever, 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












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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 at 12:22









Marlon

211




211











  • xvfb-run update-manager --debug might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfbhowever, 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
















  • xvfb-run update-manager --debug might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfbhowever, 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















xvfb-run update-manager --debug might be a solution for you. YOu'd need to install xvfb sudo apt-get install xvfbhowever, 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 xvfbhowever, 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491