![]() |
XBPS Library API 20240111
The X Binary Package System
|
Functions | |
xbps_array_t | xbps_find_pkg_orphans (struct xbps_handle *xhp, xbps_array_t orphans) |
Functions to find installed package orphans.
Package orphans were installed automatically by another package, but currently no other packages are depending on.
The following image shown below shows the registered packages database dictionary (the array returned by xbps_find_pkg_orphans() will contain a package dictionary per orphan found):
Legend:
Text inside of white boxes are the key associated with the object, its data type is specified on its edge, i.e array, bool, integer, string, dictionary.
xbps_array_t xbps_find_pkg_orphans | ( | struct xbps_handle * | xhp, |
xbps_array_t | orphans | ||
) |
Finds all package orphans currently installed.
[in] | xhp | Pointer to an xbps_handle struct. |
[in] | orphans | Proplib array of strings with package names of packages that should be treated as they were already removed (optional). |
Definition at line 63 of file package_orphans.c.
References xbps_handle::pkgdb, xbps_pkgdb_get_pkg(), xbps_pkgdb_get_pkg_fulldeptree(), and xbps_pkgdb_get_pkg_revdeps().
Referenced by xbps_transaction_autoremove_pkgs(), and xbps_transaction_remove_pkg().