What is `swupd`'s equivalent for `apt/yum autoremove`?

Information on installed bundles are under /usr/share/clear/bundles/. Available bundles, installed and not installed, are available in the manifest file at /var/tmp/swupd/Manifest.MoM. To see this,

sed '/^[^M]/d' "/var/tmp/swupd/Manifest.MoM" | cut -f4

swupd does store information on dependencies in spec files, you can check this with

cat /usr/share/clr-bundles/BUNDLE

Take desktop-autostart bundle as an example, it directly includes two packages gdm-autostart and gnome-initial-setup, but also relies on desktop bundle.

# [TITLE]: desktop-autostart
# [DESCRIPTION]: Bundle to automatically launch the GUI upon boot.
# [STATUS]: Active
# [CAPABILITIES]:
# [TAGS]: Other
# [MAINTAINER]: Marcos Simental <marcos.simental.magana@intel.com>

include(desktop)

gdm-autostart
gnome-initial-setup

This can also be found in /usr/share/clear/allbundles/desktop-autostart, where it says

 "DirectIncludes": [
     "desktop"
 ],
 "DirectPackages": {
     "gdm-autostart": true,
     "gnome-initial-setup": true
 },
1 Like