This commit is contained in:
Mars 2025-02-16 22:43:04 -05:00
parent 95374d942d
commit f9a9491da3
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
9 changed files with 141 additions and 103 deletions

View file

28
src/os/linux/pkg_count.h Normal file
View file

@ -0,0 +1,28 @@
#pragma once
// Get package count from dpkg (Debian/Ubuntu)
int get_dpkg_package_count();
// Get package count from RPM (Red Hat/Fedora/CentOS)
int get_rpm_package_count();
// Get package count from pacman (Arch Linux)
int get_pacman_package_count();
// Get package count from Portage (Gentoo)
int get_portage_package_count();
// Get package count from zypper (openSUSE)
int get_zypper_package_count();
// Get package count from flatpak
int get_flatpak_package_count();
// Get package count from snap
int get_snap_package_count();
// Get package count from AppImage
int get_appimage_package_count();
// Get total package count from all available package managers
fn GetTotalPackageCount() -> int;