1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00
Ives van der Flaas ba373fc2dc Add support for PhotonOS's tdnf. (#411)
Example output:

root [ /home/ives ]# tdnf -q check-update
Linux-PAM.x86_64                             1.4.0-5.ph4          photon-updates
cloud-init.noarch                           22.2.2-1.ph4          photon-updates
curl.x86_64                                 7.83.1-2.ph4          photon-updates
curl-libs.x86_64                            7.83.1-2.ph4          photon-updates
openssl.x86_64                               3.0.3-3.ph4          photon-updates

So a simple line count should suffice. Output of the script:

root [ /home/ives ]# /bin/docker-osupdate
5
2022-07-10 11:51:11 +02:00
2019-07-03 12:06:15 +02:00
2015-05-18 10:58:01 +00:00
2015-05-18 10:58:01 +00:00
2017-03-08 08:51:04 +00:00
2016-03-28 12:57:06 -05:00
2016-03-29 08:29:02 -05:00
2021-03-18 12:24:30 +01:00
Description
No description provided
2.8 MiB
Languages
Perl 44.4%
PHP 19.6%
Python 18.4%
Shell 17.5%
Makefile 0.1%