[pve-devel] [PATCH manager 3/9] report: add list of upgradable packages

Alexander Zeidler a.zeidler at proxmox.com
Fri Mar 22 14:59:27 CET 2024


* to easily see if APT already knows about old packages in use and
  their exact version
* to reconsider asking for applying updates as a first recommendation
  if the list is empty and no updates have been released very recently

 # apt list --upgradable ...
 Listing...
 pve-manager  testing  8.1.6  amd64  [upgradable  from:  8.1.4]

Signed-off-by: Alexander Zeidler <a.zeidler at proxmox.com>
---
 PVE/Report.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index 6014f13e..ad5c2aa0 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -36,6 +36,7 @@ my $init_report_cmds = sub {
 		'cat /etc/hosts',
 		'pvesubscription get',
 		'cat /etc/pve/jobs.cfg',
+		'apt list --upgradable 2>/dev/null | sed "s/\//\t/g" | column -tL',
 		'cat /etc/apt/sources.list',
 		sub { dir2text('/etc/apt/sources.list.d/', '.+\.list') },
 		sub { dir2text('/etc/apt/sources.list.d/', '.+\.sources') },
-- 
2.39.2





More information about the pve-devel mailing list