[pve-devel] [PATCH manager 4/9] report: add `apt-cache policy` to list recognized APT sources
Alexander Zeidler
a.zeidler at proxmox.com
Fri Mar 22 14:59:28 CET 2024
with their details as well as pinned packages. Omit the "origin"
lines, as their value is already visible in the URLs.
# apt-cache policy ...
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://enterprise.proxmox.com/debian/pve bookworm/pve-enterprise amd64 Packages
release o=Proxmox,a=stable,n=bookworm,l=Proxmox VE Enterprise Debian Repository,c=pve-enterprise,b=amd64
...
Pinned packages:
intel-microcode -> 3.20231114.1~deb12u1 with priority 1234
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 ad5c2aa0..2c2a5e12 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -37,6 +37,7 @@ my $init_report_cmds = sub {
'pvesubscription get',
'cat /etc/pve/jobs.cfg',
'apt list --upgradable 2>/dev/null | sed "s/\//\t/g" | column -tL',
+ 'apt-cache policy | grep -vP "^ +origin "',
'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