Ad Widget

Collapse

system.sw.packages.get not revealing packages on hold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hac3ru
    Junior Member
    • Nov 2020
    • 9

    #1

    system.sw.packages.get not revealing packages on hold

    Hello,

    I want to create like a software inventory, with installed packages on each host. The only issue is that a held package
    Code:
    apt-mark hold <package>
    won't show up in
    Code:
    system.sw.packages.get
    for some reason. See below:
    Code:
    # apt-mark showhold
    openvpn
    # zabbix_agent2 -t 'system.sw.packages.get["^openvpn$"]'
    system.sw.packages.get["^openvpn$"]           [s|[]]
    
    # apt-mark unhold openvpn
    zabbix_agent2 -t 'system.sw.packages.get["^openvpn$"]'
    system.sw.packages.get["^openvpn$"]           [s|[{"name":"openvpn","manager":"dpkg","version":"2.7.7-noble1","size":1882112,"arch":"amd64","buildtime":{"timestamp":0,"value":""},"installtime":{"timestamp":0,"value":""}}]]
    Is this by design, is it documented?

    Thank you!
Working...