* 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.zeid...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to