![]() |
XBPS Library API
0.19
The X Binary Package System
|
Functions | |
prop_array_t | xbps_find_pkg_orphans (struct xbps_handle *xhp, prop_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.
prop_array_t xbps_find_pkg_orphans | ( | struct xbps_handle * | xhp, |
prop_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 161 of file package_orphans.c.
References xbps_pkgdb_foreach_reverse_cb().
Referenced by xbps_transaction_autoremove_pkgs(), and xbps_transaction_remove_pkg().