LIBKYPACKAGE(3)
💖 LIBKYPACKAGE 💖
okay bestie, so this is a library functions manual page, and it's literally about libkypackages — the girlies who keep track of your package list info. it's giving very much "let me tell you everything about every package you've got" energy. no cap. 🎀
✨ NAME ✨
kdk_package_get_packagelist, kdk_package_free_packagelist, kdk_package_get_version, kdk_package_is_installed — 获取包列表信息 (that's "get package list information" for my monolingual besties 💜)
🌸 SYNOPSIS 🌸
#include <libkypackages.h>
extern kdk_package_list* kdk_package_get_packagelist();
extern void kdk_package_free_packagelist(kdk_package_list *list);
extern char* kdk_package_get_version(const char *name);
extern int kdk_package_is_installed(const char *name, const char *version);
and like. you gotta link it. Link with -lkypackage. that's the whole vibe. do not forget the linker flag or she will simply not show up. 💅
🦋 Detailed Description 🦋
This library contains package list information. that's it. that's the girl. she knows about your packages and she's not gatekeeping. 👑
🎀 DATA STRUCTURES 🎀
Structure kdk_package_list
this one is the big container — she holds info related to a package list, and she is, and I quote, structured like this:
typedef struct {
unsigned int nums;
kdk_package_t **list;
} kdk_package_list;
There are other members not documented here, which are only meant for libkypackage internal use. 🙈 like. mind your business a little bit bestie, she has a private life.
Structure kdk_package_t
and this one? this one is the individual package. the main character. the specific information girlie herself:
typedef struct _kdk_package_t {
char *name; // 包名
char *version; // 版本号
char *section; // 包类型
char *status; // 状态
unsigned long size_kb; // 包大小
struct _kdk_package_t **depends; // 依赖包
} kdk_package_t;
so quick translation tour for the comments, because I got you 🫶:
name— 包名 (the package name, obviously)version— 版本号 (the version number)section— 包类型 (the package type)status— 状态 (the status)size_kb— 包大小 (the package size)depends— 依赖包 (the packages it depends on, her little support system)
There are other members not documented here, which are only meant for libkypackage internal use. again!! the secret members!! we don't know her like that. 🧚
⭐ RETURN VALUE ⭐
The return value is generally specific to the individual function called. yes this is vague and yes it's on purpose — go read the function's own page, bestie, I can't do everything for you. 😭
🌈 CONFORMING TO 🌈
These functions are as per the withdrawn POSIX.1e draft specification. withdrawn! it's giving vintage, it's giving historical artifact, it's giving iykyk.
The following functions are Linux extensions:
kdk_package_get_packagelist()kdk_package_free_packagelist()kdk_package_get_version()kdk_package_is_installed()
👑 SEE ALSO 👑
kdk_package_get_packagelist(3)kdk_package_free_packagelist(3)kdk_package_get_version(3)kdk_package_is_installed(3)
and that's the whole page, periodt. ✨
okay mwah, love you, this page came from the Linux Programmer's Manual and it was dated Mon Sep 18 2023 — so if you're reading this, shoutout to September 2023, she was iconic for this one. bye bestie!! 💖🎀🦋🌸💅
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms