pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

AptPackages Fact

Open GamerClassN7 opened this issue 10 months ago • 6 comments

Is your feature request related to a problem? Please describe

i nned to check if certain package is installed on server similarly to https://docs.pyinfra.com/en/2.x/facts/deb.html#deb-debpackage

Describe the solution you'd like

if possible add AptPackages & AptPackage facts

GamerClassN7 avatar Feb 28 '25 08:02 GamerClassN7

https://docs.pyinfra.com/en/3.x/facts/deb.html#deb-debpackage is still available; does it not work in your environment for some reason?

goetzk avatar Mar 05 '25 10:03 goetzk

https://docs.pyinfra.com/en/3.x/facts/deb.html#deb-debpackage is still available; does it not work in your environment for some reason?

Hi for some rasone some packages installed with apt are not cisible in upper mentioned approach, for exxample docker or zabbix agent2

GamerClassN7 avatar Mar 16 '25 11:03 GamerClassN7

Maybe the packages were installed with snap, and not apt?

wowi42 avatar Mar 24 '25 12:03 wowi42

Maybe the packages were installed with snap, and not apt?

ho thay were installed rom APT, just from additional repo that is only diference i can think off

GamerClassN7 avatar Apr 14 '25 05:04 GamerClassN7

Not seen this before, as far as I understand anything apt installed will show under dpkg as in effect apt is a layer on top. Will check using docker to see if this reproduces otherwise will close.

Fizzadar avatar Sep 12 '25 11:09 Fizzadar

Yes in most cases it is true how ever now i have 2 more examples, Docker, Wazuh-Agent.

GamerClassN7 avatar Sep 16 '25 17:09 GamerClassN7