[pve-devel] [PATCH manager 3/7] report: add `apt-cache policy` to list recognized APT sources
Alexander Zeidler
a.zeidler at proxmox.com
Thu Apr 18 11:16:46 CEST 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>
---
Expects applied:
report: fix regex of config filenames
https://lists.proxmox.com/pipermail/pve-devel/2024-April/063254.html
v2:
* no changes
v1: https://lists.proxmox.com/pipermail/pve-devel/2024-March/062344.html
PVE/Report.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/Report.pm b/PVE/Report.pm
index 4588b2da..9b6cd95c 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -38,6 +38,7 @@ my $init_report_cmds = sub {
'cat /etc/apt/sources.list',
sub { dir2text('/etc/apt/sources.list.d/', '.+\.list') },
sub { dir2text('/etc/apt/sources.list.d/', '.+\.sources') },
+ 'apt-cache policy | grep -vP "^ +origin "',
'lscpu',
'pvesh get /cluster/resources --type node --output-format=yaml',
],
--
2.39.2
More information about the pve-devel
mailing list