Files
fastfetch/src/modules/packages/packages.c
T

522 lines
19 KiB
C
Raw Normal View History

2026-01-06 09:48:38 +08:00
#include "common/printing.h"
#include "common/jsonconfig.h"
#include "common/stringUtils.h"
2022-10-08 17:41:25 +08:00
#include "detection/packages/packages.h"
2023-05-26 14:32:27 +08:00
#include "modules/packages/packages.h"
2021-02-18 22:25:36 +01:00
bool ffPrintPackages(FFPackagesOptions* options)
2022-05-24 13:36:33 +02:00
{
2023-06-13 21:38:06 +08:00
FFPackagesResult counts = {};
ffStrbufInit(&counts.pacmanBranch);
2022-04-21 17:59:26 +02:00
const char* error = ffDetectPackages(&counts, options);
2023-06-13 21:38:06 +08:00
if(error)
2021-03-11 19:54:34 +01:00
{
ffPrintError(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "%s", error);
return false;
2021-04-03 21:51:50 +02:00
}
2021-05-15 18:17:34 +02:00
uint32_t nixAll = counts.nixDefault + counts.nixSystem + counts.nixUser;
uint32_t flatpakAll = counts.flatpakSystem + counts.flatpakUser;
uint32_t brewAll = counts.brew + counts.brewCask;
uint32_t guixAll = counts.guixSystem + counts.guixUser + counts.guixHome;
uint32_t hpkgAll = counts.hpkgSystem + counts.hpkgUser;
uint32_t amAll = counts.amSystem + counts.amUser;
uint32_t scoopAll = counts.scoopUser + counts.scoopGlobal;
2023-05-26 14:32:27 +08:00
if(options->moduleArgs.outputFormat.length == 0)
2021-04-03 21:51:50 +02:00
{
ffPrintLogoAndKey(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
2021-03-11 19:40:46 +01:00
#define FF_PRINT_PACKAGE_NAME(var, name) {\
2023-06-13 21:38:06 +08:00
if(counts.var > 0) \
2022-10-13 21:43:31 +02:00
{ \
2023-06-13 21:38:06 +08:00
printf("%u (%s)", counts.var, (name)); \
if((all -= counts.var) > 0) \
2024-02-21 15:40:04 +08:00
fputs(", ", stdout); \
} \
}
2022-10-13 21:43:31 +02:00
#define FF_PRINT_PACKAGE(name) FF_PRINT_PACKAGE_NAME(name, #name)
2021-03-11 19:40:46 +01:00
#define FF_PRINT_PACKAGE_ALL(name) {\
if(name ## All > 0) \
{ \
printf("%u (%s)", name ## All, #name); \
if((all -= name ## All) > 0) \
fputs(", ", stdout); \
} \
}
2023-06-13 21:38:06 +08:00
uint32_t all = counts.all;
if(counts.pacman > 0)
2021-05-15 17:21:02 +02:00
{
2023-06-13 21:38:06 +08:00
printf("%u (pacman)", counts.pacman);
if(counts.pacmanBranch.length > 0)
printf("[%s]", counts.pacmanBranch.chars);
if((all -= counts.pacman) > 0)
printf(", ");
2021-05-15 17:21:02 +02:00
};
2021-05-01 21:22:07 +02:00
FF_PRINT_PACKAGE(dpkg)
2021-06-08 20:01:29 +02:00
FF_PRINT_PACKAGE(rpm)
2022-02-12 12:13:02 +01:00
FF_PRINT_PACKAGE(emerge)
2022-12-27 17:36:58 +08:00
FF_PRINT_PACKAGE(eopkg)
2022-08-12 09:40:02 +02:00
FF_PRINT_PACKAGE(xbps)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(nix);
}
else
{
FF_PRINT_PACKAGE_NAME(nixSystem, "nix-system")
FF_PRINT_PACKAGE_NAME(nixUser, "nix-user")
FF_PRINT_PACKAGE_NAME(nixDefault, "nix-default")
}
2022-08-18 22:02:21 +02:00
FF_PRINT_PACKAGE(apk)
2022-09-20 11:16:08 +02:00
FF_PRINT_PACKAGE(pkg)
2025-01-17 10:39:41 +08:00
FF_PRINT_PACKAGE(pkgsrc)
FF_PRINT_PACKAGE(kiss)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(hpkg)
}
else
{
FF_PRINT_PACKAGE_NAME(hpkgSystem, counts.hpkgUser ? "hpkg-system" : "hpkg")
FF_PRINT_PACKAGE_NAME(hpkgUser, "hpkg-user")
}
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(flatpak);
}
else
{
FF_PRINT_PACKAGE_NAME(flatpakSystem, counts.flatpakUser ? "flatpak-system" : "flatpak")
FF_PRINT_PACKAGE_NAME(flatpakUser, "flatpak-user")
}
2021-05-01 21:22:07 +02:00
FF_PRINT_PACKAGE(snap)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(brew);
}
else
{
FF_PRINT_PACKAGE_NAME(brew, "brew")
FF_PRINT_PACKAGE_NAME(brewCask, "brew-cask")
}
2023-12-04 15:07:13 +08:00
FF_PRINT_PACKAGE(macports)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(scoop);
}
else
{
FF_PRINT_PACKAGE_NAME(scoopUser, counts.scoopGlobal ? "scoop-user" : "scoop")
FF_PRINT_PACKAGE_NAME(scoopGlobal, "scoop-global")
}
2022-10-23 22:16:12 +08:00
FF_PRINT_PACKAGE(choco)
2023-07-03 23:18:36 +08:00
FF_PRINT_PACKAGE(pkgtool)
2023-07-20 16:43:29 +01:00
FF_PRINT_PACKAGE(paludis)
FF_PRINT_PACKAGE(winget)
2023-10-07 14:02:16 +08:00
FF_PRINT_PACKAGE(opkg)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(am);
}
else
{
FF_PRINT_PACKAGE_NAME(amSystem, "am")
FF_PRINT_PACKAGE_NAME(amUser, "appman")
}
FF_PRINT_PACKAGE(sorcery)
2024-05-17 09:28:17 +08:00
FF_PRINT_PACKAGE(lpkg)
FF_PRINT_PACKAGE(lpkgbuild)
if (options->combined)
{
FF_PRINT_PACKAGE_ALL(guix);
}
else
{
FF_PRINT_PACKAGE_NAME(guixSystem, "guix-system")
FF_PRINT_PACKAGE_NAME(guixUser, "guix-user")
FF_PRINT_PACKAGE_NAME(guixHome, "guix-home")
}
FF_PRINT_PACKAGE(linglong)
2024-09-22 12:30:37 +08:00
FF_PRINT_PACKAGE(pacstall)
2024-11-10 11:35:27 +08:00
FF_PRINT_PACKAGE(mport)
FF_PRINT_PACKAGE(pisi)
FF_PRINT_PACKAGE(soar)
2026-02-22 22:33:27 +08:00
FF_PRINT_PACKAGE(moss)
2021-03-11 19:40:46 +01:00
putchar('\n');
}
else
{
2024-12-11 10:47:02 +08:00
FF_PRINT_FORMAT_CHECKED(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, ((FFformatarg[]){
FF_ARG(counts.all, "all"),
FF_ARG(counts.pacman, "pacman"),
FF_ARG(counts.pacmanBranch, "pacman-branch"),
FF_ARG(counts.dpkg, "dpkg"),
FF_ARG(counts.rpm, "rpm"),
FF_ARG(counts.emerge, "emerge"),
FF_ARG(counts.eopkg, "eopkg"),
FF_ARG(counts.xbps, "xbps"),
FF_ARG(counts.nixSystem, "nix-system"),
FF_ARG(counts.nixUser, "nix-user"),
FF_ARG(counts.nixDefault, "nix-default"),
FF_ARG(counts.apk, "apk"),
FF_ARG(counts.pkg, "pkg"),
FF_ARG(counts.flatpakSystem, "flatpak-system"),
FF_ARG(counts.flatpakUser, "flatpak-user"),
FF_ARG(counts.snap, "snap"),
FF_ARG(counts.brew, "brew"),
FF_ARG(counts.brewCask, "brew-cask"),
FF_ARG(counts.macports, "macports"),
FF_ARG(counts.scoopUser, "scoop-user"),
FF_ARG(counts.scoopGlobal, "scoop-global"),
FF_ARG(counts.choco, "choco"),
FF_ARG(counts.pkgtool, "pkgtool"),
FF_ARG(counts.paludis, "paludis"),
FF_ARG(counts.winget, "winget"),
FF_ARG(counts.opkg, "opkg"),
FF_ARG(counts.amSystem, "am-system"),
FF_ARG(counts.sorcery, "sorcery"),
FF_ARG(counts.lpkg, "lpkg"),
FF_ARG(counts.lpkgbuild, "lpkgbuild"),
FF_ARG(counts.guixSystem, "guix-system"),
FF_ARG(counts.guixUser, "guix-user"),
FF_ARG(counts.guixHome, "guix-home"),
FF_ARG(counts.linglong, "linglong"),
FF_ARG(counts.pacstall, "pacstall"),
FF_ARG(counts.mport, "mport"),
FF_ARG(counts.amUser, "am-user"),
FF_ARG(counts.pkgsrc, "pkgsrc"),
FF_ARG(counts.hpkgSystem, "hpkg-system"),
FF_ARG(counts.hpkgUser, "hpkg-user"),
FF_ARG(counts.pisi, "pisi"),
FF_ARG(counts.soar, "soar"),
FF_ARG(counts.kiss, "kiss"),
FF_ARG(counts.moss, "moss"),
FF_ARG(nixAll, "nix-all"),
FF_ARG(flatpakAll, "flatpak-all"),
FF_ARG(brewAll, "brew-all"),
FF_ARG(guixAll, "guix-all"),
FF_ARG(hpkgAll, "hpkg-all"),
}));
}
2023-06-13 21:38:06 +08:00
ffStrbufDestroy(&counts.pacmanBranch);
return true;
2021-03-27 18:14:19 +01:00
}
2023-05-26 14:32:27 +08:00
2023-08-17 10:56:54 +08:00
void ffParsePackagesJsonObject(FFPackagesOptions* options, yyjson_val* module)
2023-05-26 14:32:27 +08:00
{
yyjson_val *key, *val;
2023-08-17 16:09:41 +08:00
size_t idx, max;
yyjson_obj_foreach(module, idx, max, key, val)
2023-05-26 14:32:27 +08:00
{
2023-08-17 16:09:41 +08:00
if (ffJsonConfigParseModuleArgs(key, val, &options->moduleArgs))
continue;
2023-05-26 14:32:27 +08:00
if (unsafe_yyjson_equals_str(key, "disabled"))
{
if (!yyjson_is_null(val) && !yyjson_is_arr(val))
{
ffPrintError(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Invalid JSON value for %s", unsafe_yyjson_get_str(key));
continue;
}
options->disabled = FF_PACKAGES_FLAG_NONE;
if (yyjson_is_arr(val))
{
yyjson_val* flagObj;
size_t flagIdx, flagMax;
yyjson_arr_foreach(val, flagIdx, flagMax, flagObj)
{
if (!yyjson_is_str(flagObj))
{
ffPrintError(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Invalid JSON value for %s", unsafe_yyjson_get_str(key));
continue;
}
const char* flag = unsafe_yyjson_get_str(flagObj);
#define FF_TEST_PACKAGE_NAME(name) else if (ffStrEqualsIgnCase(flag, #name)) { options->disabled |= FF_PACKAGES_FLAG_ ## name ## _BIT; }
switch (toupper(flag[0]))
{
case 'A': if (false);
FF_TEST_PACKAGE_NAME(APK)
FF_TEST_PACKAGE_NAME(AM)
break;
case 'B': if (false);
FF_TEST_PACKAGE_NAME(BREW)
break;
case 'C': if (false);
FF_TEST_PACKAGE_NAME(CHOCO)
break;
case 'D': if (false);
FF_TEST_PACKAGE_NAME(DPKG)
break;
case 'E': if (false);
FF_TEST_PACKAGE_NAME(EMERGE)
FF_TEST_PACKAGE_NAME(EOPKG)
break;
case 'F': if (false);
FF_TEST_PACKAGE_NAME(FLATPAK)
break;
2024-11-10 11:35:27 +08:00
case 'G': if (false);
FF_TEST_PACKAGE_NAME(GUIX)
break;
case 'H': if (false);
FF_TEST_PACKAGE_NAME(HPKG)
break;
case 'K': if (false);
FF_TEST_PACKAGE_NAME(KISS)
break;
2024-05-16 22:19:26 -03:00
case 'L': if (false);
FF_TEST_PACKAGE_NAME(LPKG)
FF_TEST_PACKAGE_NAME(LPKGBUILD)
FF_TEST_PACKAGE_NAME(LINGLONG)
2024-05-16 22:19:26 -03:00
break;
case 'M': if (false);
FF_TEST_PACKAGE_NAME(MACPORTS)
2024-11-10 11:35:27 +08:00
FF_TEST_PACKAGE_NAME(MPORT)
2026-02-22 22:33:27 +08:00
FF_TEST_PACKAGE_NAME(MOSS)
break;
case 'N': if (false);
FF_TEST_PACKAGE_NAME(NIX)
break;
case 'O': if (false);
FF_TEST_PACKAGE_NAME(OPKG)
break;
case 'P': if (false);
FF_TEST_PACKAGE_NAME(PACMAN)
2024-09-22 12:30:37 +08:00
FF_TEST_PACKAGE_NAME(PACSTALL)
FF_TEST_PACKAGE_NAME(PALUDIS)
FF_TEST_PACKAGE_NAME(PISI)
FF_TEST_PACKAGE_NAME(PKG)
FF_TEST_PACKAGE_NAME(PKGTOOL)
2025-01-17 10:39:41 +08:00
FF_TEST_PACKAGE_NAME(PKGSRC)
break;
case 'R': if (false);
FF_TEST_PACKAGE_NAME(RPM)
break;
case 'S': if (false);
FF_TEST_PACKAGE_NAME(SCOOP)
FF_TEST_PACKAGE_NAME(SNAP)
FF_TEST_PACKAGE_NAME(SOAR)
FF_TEST_PACKAGE_NAME(SORCERY)
break;
case 'W': if (false);
FF_TEST_PACKAGE_NAME(WINGET)
break;
case 'X': if (false);
FF_TEST_PACKAGE_NAME(XBPS)
break;
}
#undef FF_TEST_PACKAGE_NAME
}
continue;
}
}
if (unsafe_yyjson_equals_str(key, "combined"))
{
options->combined = yyjson_get_bool(val);
continue;
}
ffPrintError(FF_PACKAGES_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
2023-05-26 14:32:27 +08:00
}
}
2023-09-08 15:44:44 +08:00
2023-10-24 14:41:29 +08:00
void ffGeneratePackagesJsonConfig(FFPackagesOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
{
ffJsonConfigGenerateModuleArgsConfig(doc, module, &options->moduleArgs);
2023-10-24 14:41:29 +08:00
FF_STRBUF_AUTO_DESTROY buf = ffStrbufCreate();
yyjson_mut_val* arr = yyjson_mut_obj_add_arr(doc, module, "disabled");
#define FF_TEST_PACKAGE_NAME(name) else if ((options->disabled & FF_PACKAGES_FLAG_ ## name ## _BIT)) { \
ffStrbufSetS(&buf, #name); \
ffStrbufLowerCase(&buf); \
yyjson_mut_arr_add_strbuf(doc, arr, &buf); \
}
if (false);
FF_TEST_PACKAGE_NAME(AM)
FF_TEST_PACKAGE_NAME(APK)
FF_TEST_PACKAGE_NAME(BREW)
FF_TEST_PACKAGE_NAME(CHOCO)
FF_TEST_PACKAGE_NAME(DPKG)
FF_TEST_PACKAGE_NAME(EMERGE)
FF_TEST_PACKAGE_NAME(EOPKG)
FF_TEST_PACKAGE_NAME(FLATPAK)
FF_TEST_PACKAGE_NAME(GUIX)
FF_TEST_PACKAGE_NAME(HPKG)
FF_TEST_PACKAGE_NAME(KISS)
FF_TEST_PACKAGE_NAME(LINGLONG)
FF_TEST_PACKAGE_NAME(LPKG)
FF_TEST_PACKAGE_NAME(LPKGBUILD)
FF_TEST_PACKAGE_NAME(MACPORTS)
FF_TEST_PACKAGE_NAME(MPORT)
2026-02-22 22:33:27 +08:00
FF_TEST_PACKAGE_NAME(MOSS)
FF_TEST_PACKAGE_NAME(NIX)
FF_TEST_PACKAGE_NAME(OPKG)
FF_TEST_PACKAGE_NAME(PACMAN)
FF_TEST_PACKAGE_NAME(PACSTALL)
FF_TEST_PACKAGE_NAME(PALUDIS)
FF_TEST_PACKAGE_NAME(PISI)
FF_TEST_PACKAGE_NAME(PKG)
FF_TEST_PACKAGE_NAME(PKGTOOL)
FF_TEST_PACKAGE_NAME(PKGSRC)
FF_TEST_PACKAGE_NAME(RPM)
FF_TEST_PACKAGE_NAME(SCOOP)
FF_TEST_PACKAGE_NAME(SNAP)
FF_TEST_PACKAGE_NAME(SOAR)
FF_TEST_PACKAGE_NAME(SORCERY)
FF_TEST_PACKAGE_NAME(WINGET)
FF_TEST_PACKAGE_NAME(XBPS)
#undef FF_TEST_PACKAGE_NAME
yyjson_mut_obj_add_bool(doc, module, "combined", options->combined);
2023-10-24 14:41:29 +08:00
}
bool ffGeneratePackagesJsonResult(FF_MAYBE_UNUSED FFPackagesOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
2023-09-08 15:44:44 +08:00
{
FFPackagesResult counts = {};
ffStrbufInit(&counts.pacmanBranch);
const char* error = ffDetectPackages(&counts, options);
2023-09-08 15:44:44 +08:00
if(error)
{
yyjson_mut_obj_add_str(doc, module, "error", error);
return false;
2023-09-08 15:44:44 +08:00
}
yyjson_mut_val* obj = yyjson_mut_obj_add_obj(doc, module, "result");
#define FF_APPEND_PACKAGE_COUNT(name) yyjson_mut_obj_add_uint(doc, obj, #name, counts.name);
FF_APPEND_PACKAGE_COUNT(all)
2025-01-08 09:44:45 +08:00
FF_APPEND_PACKAGE_COUNT(amSystem)
FF_APPEND_PACKAGE_COUNT(amUser)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(apk)
FF_APPEND_PACKAGE_COUNT(brew)
FF_APPEND_PACKAGE_COUNT(brewCask)
FF_APPEND_PACKAGE_COUNT(choco)
FF_APPEND_PACKAGE_COUNT(dpkg)
FF_APPEND_PACKAGE_COUNT(emerge)
FF_APPEND_PACKAGE_COUNT(eopkg)
FF_APPEND_PACKAGE_COUNT(flatpakSystem)
FF_APPEND_PACKAGE_COUNT(flatpakUser)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(guixSystem)
FF_APPEND_PACKAGE_COUNT(guixUser)
FF_APPEND_PACKAGE_COUNT(guixHome)
FF_APPEND_PACKAGE_COUNT(hpkgSystem)
FF_APPEND_PACKAGE_COUNT(hpkgUser)
2026-02-22 22:33:27 +08:00
FF_APPEND_PACKAGE_COUNT(kiss)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(linglong)
2026-02-22 22:33:27 +08:00
FF_APPEND_PACKAGE_COUNT(macports)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(mport)
2026-02-22 22:33:27 +08:00
FF_APPEND_PACKAGE_COUNT(moss)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(nixDefault)
FF_APPEND_PACKAGE_COUNT(nixSystem)
FF_APPEND_PACKAGE_COUNT(nixUser)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(opkg)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(pacman)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(pacstall)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(paludis)
FF_APPEND_PACKAGE_COUNT(pisi)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(pkg)
FF_APPEND_PACKAGE_COUNT(pkgtool)
2025-01-17 10:39:41 +08:00
FF_APPEND_PACKAGE_COUNT(pkgsrc)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(rpm)
FF_APPEND_PACKAGE_COUNT(scoopUser)
FF_APPEND_PACKAGE_COUNT(scoopGlobal)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(snap)
FF_APPEND_PACKAGE_COUNT(soar)
2024-11-10 23:32:22 +08:00
FF_APPEND_PACKAGE_COUNT(sorcery)
2023-09-08 15:44:44 +08:00
FF_APPEND_PACKAGE_COUNT(winget)
FF_APPEND_PACKAGE_COUNT(xbps)
yyjson_mut_obj_add_strbuf(doc, obj, "pacmanBranch", &counts.pacmanBranch);
return true;
2023-09-08 15:44:44 +08:00
}
2023-10-07 13:40:40 +08:00
void ffInitPackagesOptions(FFPackagesOptions* options)
{
ffOptionInitModuleArg(&options->moduleArgs, "󰏖");
options->disabled = FF_PACKAGES_DISABLE_LIST;
options->combined = false;
}
void ffDestroyPackagesOptions(FFPackagesOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
2025-08-03 22:50:56 +08:00
FFModuleBaseInfo ffPackagesModuleInfo = {
2024-12-11 10:47:02 +08:00
.name = FF_PACKAGES_MODULE_NAME,
.description = "List installed package managers and count of installed packages",
.initOptions = (void*) ffInitPackagesOptions,
.destroyOptions = (void*) ffDestroyPackagesOptions,
2024-12-11 10:47:02 +08:00
.parseJsonObject = (void*) ffParsePackagesJsonObject,
.printModule = (void*) ffPrintPackages,
.generateJsonResult = (void*) ffGeneratePackagesJsonResult,
.generateJsonConfig = (void*) ffGeneratePackagesJsonConfig,
.formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) {
{"Number of all packages", "all"},
{"Number of pacman packages", "pacman"},
{"Pacman branch on manjaro", "pacman-branch"},
{"Number of dpkg packages", "dpkg"},
{"Number of rpm packages", "rpm"},
{"Number of emerge packages", "emerge"},
{"Number of eopkg packages", "eopkg"},
{"Number of xbps packages", "xbps"},
{"Number of nix-system packages", "nix-system"},
{"Number of nix-user packages", "nix-user"},
{"Number of nix-default packages", "nix-default"},
{"Number of apk packages", "apk"},
{"Number of pkg packages", "pkg"},
{"Number of flatpak-system app packages", "flatpak-system"},
{"Number of flatpak-user app packages", "flatpak-user"},
{"Number of snap packages", "snap"},
{"Number of brew packages", "brew"},
{"Number of brew-cask packages", "brew-cask"},
{"Number of macports packages", "macports"},
{"Number of scoop-user packages", "scoop-user"},
{"Number of scoop-global packages", "scoop-global"},
2024-12-11 10:47:02 +08:00
{"Number of choco packages", "choco"},
{"Number of pkgtool packages", "pkgtool"},
{"Number of paludis packages", "paludis"},
{"Number of winget packages", "winget"},
{"Number of opkg packages", "opkg"},
2025-01-08 10:56:55 +08:00
{"Number of am-system packages", "am-system"},
2024-12-11 10:47:02 +08:00
{"Number of sorcery packages", "sorcery"},
{"Number of lpkg packages", "lpkg"},
{"Number of lpkgbuild packages", "lpkgbuild"},
{"Number of guix-system packages", "guix-system"},
{"Number of guix-user packages", "guix-user"},
{"Number of guix-home packages", "guix-home"},
{"Number of linglong packages", "linglong"},
{"Number of pacstall packages", "pacstall"},
{"Number of mport packages", "mport"},
2025-01-08 10:56:55 +08:00
{"Number of am-user (aka appman) packages", "am-user"},
2025-01-17 10:39:41 +08:00
{"Number of pkgsrc packages", "pkgsrc"},
{"Number of hpkg-system packages", "hpkg-system"},
{"Number of hpkg-user packages", "hpkg-user"},
{"Number of pisi packages", "pisi"},
{"Number of soar packages", "soar"},
{"Number of kiss packages", "kiss"},
2026-02-22 22:33:27 +08:00
{"Number of moss packages", "moss"},
2024-12-11 10:47:02 +08:00
{"Total number of all nix packages", "nix-all"},
{"Total number of all flatpak app packages", "flatpak-all"},
{"Total number of all brew packages", "brew-all"},
{"Total number of all guix packages", "guix-all"},
{"Total number of all hpkg packages", "hpkg-all"},
2024-12-11 10:47:02 +08:00
}))
};