pamac does not fully list the orphans
Pamac --version
Pamac 10.3.0-4 - libpamac 11.2.0
Variant in use
CLI
Distribution
Manjaro Release: 21.2.3
Desktop environment
KDE
What's not working
The issue: pamac remove --orphans
does not list and remove all orphans.
I suspect that it does not check for dependencies of orphans. Basically I suspect that it only check for [first generation] orphans, but then doesn't check if the [1st gen] orphans are removed, will they leave some other orphans (2nd gen) behind.
This hypothesis of mine is not ironclad as in the second run of pamac remove --orphans
I get the following which proves that pamac
does in fact check for 2nd gen orphans:
How to reproduce?
- use a Manjaro system for a while to accumulate some orphans
pamac remove --orphans
pamnac list -o
pamac remove -o
I expected that the step3 shows no packages and step4 does nothing. In the next section I have put the output of my terminal
More information (optional)
pamac remove --orphans
output...
Preparing... Checking dependencies... To remove (152): pinta 2.0.1-1 community dotnet-runtime 6.0.0.sdk100-2 (Orphan Of: pinta) community dotnet-host 6.0.0.sdk100-2 (Orphan Of: pinta) community openssl-1.0 1.0.2.u-1 core breath2-wallpaper 1.0.18-5 mlt6 6.26.1-8 community python-pytoml 0.1.21-7 community linux-latest 5.10-1 lld 13.0.0-1 extra electron12 12.2.3-2 community lib32-gstreamer 1.18.5-1 multilib lib32-gtk3 3.24.31-1 (Orphan Of: lib32-gstreamer) multilib lib32-rest 0.8.1-3 (Orphan Of: lib32-gstreamer) multilib lib32-libsoup 2.74.2-1 (Orphan Of: lib32-gstreamer) multilib lib32-glib-networking 2.70.1-1 (Orphan Of: lib32-gstreamer) multilib lib32-libproxy 0.4.17-1 (Orphan Of: lib32-gstreamer) multilib lib32-libepoxy 1.5.9-1 (Orphan Of: lib32-gstreamer) multilib lib32-json-glib 1.6.6-1 (Orphan Of: lib32-gstreamer) multilib lib32-libxkbcommon 1.3.1-1 (Orphan Of: lib32-gstreamer) multilib lib32-at-spi2-atk 2.38.0-1 (Orphan Of: lib32-gstreamer) multilib lib32-at-spi2-core 2.42.0-1 (Orphan Of: lib32-gstreamer) multilib lib32-colord 1.4.5-3 (Orphan Of: lib32-gstreamer) multilib lib32-lcms2 2.12-1 (Orphan Of: lib32-gstreamer) multilib lib32-libgudev 237-1 multilib khotkeys 5.23.5-1 extra jemalloc 1:5.2.1-6 extra mozilla-common 1.4-6 python-sip-pyqt5 4.19.19-1 electron11 11.5.0-3 community mhwd-catalyst 1:15.201.1151-2 opencolorio1 1.1.1-3 yarn 1.22.17-1 community libopenaptx 0.2.0-1 audiofile 0.3.6-6 extra libao 1.2.2-5 extra gst-editing-services 1.18.5-3 community glusterfs 1:10.0-3 community ghostxps 9.55.0-3 extra jbigkit 2.1-6 community python-slip 0.6.5-7 community xmlto 0.0.28-4 extra lib32-alsa-oss 1.1.8-3 multilib lua-lpeg 1.0.2-4 extra gflags 2.2.2-2 community celt 0.11.3-4 extra luarocks 3.8.0-1 community zita-resampler 1.8.0-1 extra asciidoc 10.1.1-1 community intltool 0.51.0-6 extra patchelf 0.14.3-1 community electron7 7.1.14-7 libmpdclient 2.20-1 extra haskell-base-noprelude 4.13.0.0-1 lib32-libnsl 2.0.0-1 multilib libglade 2.6.4-8 libmikmod 3.3.11.1-4 extra python-sip4 4.19.25-3 extra js60 60.9.0-2 lib32-dconf 0.40.0-1 multilib lib32-libindicator-gtk2 12.10.1-8 multilib libindicator-gtk2 12.10.1-9 (Orphan Of: lib32-libindicator-gtk2) community haskell-http 4000.3.16-125 community seafile-client 8.0.5-1 seafile 8.0.5-1 (Orphan Of: seafile-client) python-future 0.18.2-7 (Orphan Of: seafile-client) community celt0.5.1 0.5.1.3-5 lib32-polkit 0.120-4 multilib xorg-font-utils 7.6-6 xorg-mkfontscale 1.2.1-2 (Orphan Of: xorg-font-utils) extra xorg-bdftopcf 1.1-2 (Orphan Of: xorg-font-utils) extra xorg-font-util 1.3.2-2 (Orphan Of: xorg-font-utils) extra ant 1.10.11-1 extra lib32-lz4 1.9.3-1 multilib ghostpcl 9.55.0-3 extra mono-addins 1.3.3-3 extra gtk-sharp-2 2.12.45-4 (Orphan Of: mono-addins) extra haskell-cmark-gfm 0.2.2-106 community cmark-gfm 0.29.0.gfm.2-2 (Orphan Of: haskell-cmark-gfm) community guile2.0 2.0.14-6 extra libcmis 0.5.2-9 extra breath-icon-theme 0.4.0-3 haskell-bitarray 0.0.1.1-23 community python-html2text 2020.1.16-5 community sof-firmware 2.0-1 extra python-asn1crypto 1.4.0-6 extra electron 16.0.8-1 community lib32-db 5.3.28-4 multilib libpwquality 1.4.4-5 extra cracklib 2.9.7-2 (Orphan Of: libpwquality) core cppcheck 2.6.3-1 community tinyxml2 9.0.0-1 (Orphan Of: cppcheck) community lib32-libdbusmenu-gtk2 16.04.0-4 multilib lib32-gtk2 2.24.33-1 (Orphan Of: lib32-libdbusmenu-gtk2) multilib lib32-libcups 2.4.1-1 (Orphan Of: lib32-libdbusmenu-gtk2) multilib lib32-gnutls 3.7.3-1 (Orphan Of: lib32-gstreamer) multilib lib32-nettle 3.7.3-1 (Orphan Of: lib32-gstreamer) multilib lib32-gmp 6.2.1-1 (Orphan Of: lib32-gstreamer) multilib lib32-libxinerama 1.1.4-1 (Orphan Of: lib32-libdbusmenu-gtk2) multilib lib32-libxcomposite 0.4.5-1 (Orphan Of: lib32-libdbusmenu-gtk2) multilib lib32-atk 2.36.0-2 (Orphan Of: lib32-gstreamer) multilib lib32-libdbusmenu-glib 16.04.0-4 (Orphan Of: lib32-libdbusmenu-gtk2) multilib libdbusmenu-gtk2 16.04.0-4 (Orphan Of: lib32-libdbusmenu-gtk2) community opencl-headers 2:2021.04.29-1 extra libxxf86dga 1.1.5-1.1 extra python-argcomplete 1.12.3-1 community lib32-libidn 1.38-1 multilib gtkspell3 3.0.10-2 community ddcutil 1.2.2-1 extra i2c-tools 4.3-3 (Orphan Of: ddcutil) community lua-copas 3.0.0-1 lua-coxpcall 1.17.0-3 (Orphan Of: lua-copas) gperf 3.1-3 extra python-setuptools-scm 6.4.1-1 community ninja 1.10.2-1 community haskell-regex-pcre 0.95.0.0-13 community haskell-regex-base 0.94.0.2-2 (Orphan Of: haskell-regex-pcre) community xorgproto-transfer 2019.12-1 extra chrpath 0.16-3 community js68 68.12.0-1 libiscsi 1.19.0-2 extra xorg-fonts-alias 1.0.3-3 lib32-openal 1.21.1-2 multilib gdl 3.40.0-1 extra go 2:1.17.6-2 community lib32-libgusb 0.3.10-1 multilib lib32-libusb 1.0.24-1 (Orphan Of: lib32-libgusb) multilib highway-git 0.15.0.r70.g7ba6801-1 yasm 1.3.0-4 extra vala 0.54.6-1 extra gtk-doc 1.33.2-1 (Orphan Of: vala) extra python-anytree 2.8.0-5 (Orphan Of: vala) extra glib2-docs 2.70.3-1 (Orphan Of: vala) core lua-filesystem 1.8.0-3 community zita-alsa-pcmi 0.4.0-1 extra haskell-hxt 9.3.1.22-51 community haskell-hxt-unicode 9.0.2.4-25 (Orphan Of: haskell-hxt) community haskell-hxt-regex-xmlschema 9.2.0.7-5 (Orphan Of: haskell-hxt) community haskell-hxt-charproperties 9.5.0.0-4 (Orphan Of: haskell-hxt) community kjsembed 5.90.0-1 extra boost 1.78.0-1 extra libmp4v2 5.0.1-1 extra libmagick6 6.9.12.35-1 gn-m85 0.1792.7d7e8dee-1 extra software-center-web-jak 1.0.3-1 community python-jade-application-kit 3.5.7-4 (Orphan Of: software-center-web-jak) community mhwd-nvidia-340xx 340.108-1 kross 5.90.0-1 extra wxlua 3.0.0.9-2 wxgtk2 3.0.5.1-3 (Orphan Of: wxlua) extra netcf 0.2.8-8 community augeas 1.12.0-2 (Orphan Of: netcf) community rttr 0.9.6-3 Total removed size: 1.9 GB Apply transaction ? [y/N] y Running pre-transaction hooks... Unregistering Haskell modules... [1/2] Removing old entries from the info directory file... [2/2] Removing lld (13.0.0-1)... [1/152] Removing libmpdclient (2.20-1)... [2/152] Removing libmp4v2 (5.0.1-1)... [3/152] Removing mhwd-catalyst (1:15.201.1151-2)... [4/152] Removing libmikmod (3.3.11.1-4)... [5/152] Removing wxlua (3.0.0.9-2)... [6/152] Removing electron11 (11.5.0-3)... [7/152] Removing cppcheck (2.6.3-1)... [8/152] Removing lib32-openal (1.21.1-2)... [9/152] Removing mono-addins (1.3.3-3)... [10/152] Removing xorgproto-transfer (2019.12-1)... [11/152] Removing khotkeys (5.23.5-1)... [12/152] Removing jbigkit (2.1-6)... [13/152] Removing asciidoc (10.1.1-1)... [14/152] Removing kjsembed (5.90.0-1)... [15/152] Removing haskell-http (4000.3.16-125)... [16/152] Removing python-sip4 (4.19.25-3)... [17/152] Removing libopenaptx (0.2.0-1)... [18/152] Removing lib32-libidn (1.38-1)... [19/152] Removing js60 (60.9.0-2)... [20/152] Removing ninja (1.10.2-1)... [21/152] Removing kross (5.90.0-1)... [22/152] Removing glusterfs (1:10.0-3)... [23/152] Removing gn-m85 (0.1792.7d7e8dee-1)... [24/152] Removing lua-filesystem (1.8.0-3)... [25/152] Removing haskell-cmark-gfm (0.2.2-106)... [26/152] Removing patchelf (0.14.3-1)... [27/152] Removing python-asn1crypto (1.4.0-6)... [28/152] Removing gtkspell3 (3.0.10-2)... [29/152] Removing lib32-gstreamer (1.18.5-1)... [30/152] Removing ant (1.10.11-1)... [31/152] Removing mhwd-nvidia-340xx (340.108-1)... [32/152] Removing breath-icon-theme (0.4.0-3)... [33/152] Removing gflags (2.2.2-2)... [34/152] Removing gst-editing-services (1.18.5-3)... [35/152] Removing yasm (1.3.0-4)... [36/152] Removing go (2:1.17.6-2)... [37/152] Removing guile2.0 (2.0.14-6)... [38/152] Removing wxgtk2 (3.0.5.1-3)... [39/152] Removing openssl-1.0 (1.0.2.u-1)... [40/152] Removing software-center-web-jak (1.0.3-1)... [41/152] Removing lib32-alsa-oss (1.1.8-3)... [42/152] Removing lib32-libdbusmenu-gtk2 (16.04.0-4)... [43/152] Removing lib32-libdbusmenu-glib (16.04.0-4)... [44/152] Removing libdbusmenu-gtk2 (16.04.0-4)... [45/152] Removing intltool (0.51.0-6)... [46/152] Removing python-slip (0.6.5-7)... [47/152] Removing opencolorio1 (1.1.1-3)... [48/152] Removing libpwquality (1.4.4-5)... [49/152] Removing cracklib (2.9.7-2)... [50/152] Removing zita-alsa-pcmi (0.4.0-1)... [51/152] Removing netcf (0.2.8-8)... [52/152] Removing pinta (2.0.1-1)... [53/152] Removing rttr (0.9.6-3)... [54/152] Removing haskell-regex-pcre (0.95.0.0-13)... [55/152] Removing lib32-dconf (0.40.0-1)... [56/152] Removing xorg-font-utils (7.6-6)... [57/152] Removing xorg-mkfontscale (1.2.1-2)... [58/152] Removing xorg-bdftopcf (1.1-2)... [59/152] Removing python-argcomplete (1.12.3-1)... [60/152] Removing haskell-regex-base (0.94.0.2-2)... [61/152] Removing xmlto (0.0.28-4)... [62/152] Removing lib32-polkit (0.120-4)... [63/152] Removing mlt6 (6.26.1-8)... [64/152] Removing electron (16.0.8-1)... [65/152] Removing linux-latest (5.10-1)... [66/152] Removing python-jade-application-kit (3.5.7-4)... [67/152] Removing libao (1.2.2-5)... [68/152] Removing gtk-sharp-2 (2.12.45-4)... [69/152] Removing tinyxml2 (9.0.0-1)... [70/152] Removing python-setuptools-scm (6.4.1-1)... [71/152] Removing chrpath (0.16-3)... [72/152] Removing libiscsi (1.19.0-2)... [73/152] Removing luarocks (3.8.0-1)... [74/152] Removing libmagick6 (6.9.12.35-1)... [75/152] Removing libxxf86dga (1.1.5-1.1)... [76/152] Removing boost (1.78.0-1)... [77/152] Removing haskell-hxt (9.3.1.22-51)... [78/152] Removing haskell-hxt-regex-xmlschema (9.2.0.7-5)... [79/152] Removing ddcutil (1.2.2-1)... [80/152] Removing lib32-libindicator-gtk2 (12.10.1-8)... [81/152] Removing lib32-gtk2 (2.24.33-1)... [82/152] Removing libindicator-gtk2 (12.10.1-9)... [83/152] Removing jemalloc (1:5.2.1-6)... [84/152] Removing xorg-fonts-alias (1.0.3-3)... [85/152] Removing highway-git (0.15.0.r70.g7ba6801-1)... [86/152] Removing libglade (2.6.4-8)... [87/152] Removing seafile-client (8.0.5-1)... [88/152] Removing seafile (8.0.5-1)... [89/152] Removing augeas (1.12.0-2)... [90/152] Removing libcmis (0.5.2-9)... [91/152] Removing sof-firmware (2.0-1)... [92/152] Removing dotnet-runtime (6.0.0.sdk100-2)... [93/152] Removing dotnet-host (6.0.0.sdk100-2)... [94/152] Removing mozilla-common (1.4-6)... [95/152] Removing celt (0.11.3-4)... [96/152] Removing electron7 (7.1.14-7)... [97/152] Removing python-html2text (2020.1.16-5)... [98/152] Removing lib32-lz4 (1.9.3-1)... [99/152] Removing audiofile (0.3.6-6)... [100/152] Removing python-future (0.18.2-7)... [101/152] Removing xorg-font-util (1.3.2-2)... [102/152] Removing python-sip-pyqt5 (4.19.19-1)... [103/152] Removing opencl-headers (2:2021.04.29-1)... [104/152] Removing haskell-bitarray (0.0.1.1-23)... [105/152] Removing yarn (1.22.17-1)... [106/152] Removing celt0.5.1 (0.5.1.3-5)... [107/152] Removing cmark-gfm (0.29.0.gfm.2-2)... [108/152] Removing js68 (68.12.0-1)... [109/152] Removing lib32-db (5.3.28-4)... [110/152] Removing breath2-wallpaper (1.0.18-5)... [111/152] Removing lua-copas (3.0.0-1)... [112/152] Removing lua-coxpcall (1.17.0-3)... [113/152] Removing lib32-libgudev (237-1)... [114/152] Removing ghostpcl (9.55.0-3)... [115/152] Removing vala (0.54.6-1)... [116/152] Removing gtk-doc (1.33.2-1)... [117/152] Removing python-anytree (2.8.0-5)... [118/152] Removing glib2-docs (2.70.3-1)... [119/152] Removing haskell-base-noprelude (4.13.0.0-1)... [120/152] Removing gdl (3.40.0-1)... [121/152] Removing gperf (3.1-3)... [122/152] Removing zita-resampler (1.8.0-1)... [123/152] Removing lua-lpeg (1.0.2-4)... [124/152] Removing ghostxps (9.55.0-3)... [125/152] Removing i2c-tools (4.3-3)... [126/152] Removing lib32-libnsl (2.0.0-1)... [127/152] Removing haskell-hxt-unicode (9.0.2.4-25)... [128/152] Removing haskell-hxt-charproperties (9.5.0.0-4)... [129/152] Removing python-pytoml (0.1.21-7)... [130/152] Removing electron12 (12.2.3-2)... [131/152] Removing lib32-gtk3 (3.24.31-1)... [132/152] Removing lib32-libepoxy (1.5.9-1)... [133/152] Removing lib32-rest (0.8.1-3)... [134/152] Removing lib32-libsoup (2.74.2-1)... [135/152] Removing lib32-glib-networking (2.70.1-1)... [136/152] Removing lib32-libproxy (0.4.17-1)... [137/152] Removing lib32-at-spi2-atk (2.38.0-1)... [138/152] Removing lib32-atk (2.36.0-2)... [139/152] Removing lib32-at-spi2-core (2.42.0-1)... [140/152] Removing lib32-libcups (2.4.1-1)... [141/152] Removing lib32-gnutls (3.7.3-1)... [142/152] Removing lib32-nettle (3.7.3-1)... [143/152] Removing lib32-gmp (6.2.1-1)... [144/152] Removing lib32-libxinerama (1.1.4-1)... [145/152] Removing lib32-json-glib (1.6.6-1)... [146/152] Removing lib32-libxcomposite (0.4.5-1)... [147/152] Removing lib32-colord (1.4.5-3)... [148/152] Removing lib32-lcms2 (2.12-1)... [149/152] Removing lib32-libxkbcommon (1.3.1-1)... [150/152] Removing lib32-libgusb (0.3.10-1)... [151/152] Removing lib32-libusb (1.0.24-1)... [152/152] Running post-transaction hooks... Reloading system manager configuration... [1/9] Reloading device manager configuration... [2/9] Arming ConditionNeedsUpdate... [3/9] Updating the MIME type database... [4/9] Updating fontconfig cache... [5/9] Updating 32-bit fontconfig cache... [6/9] Updating 32-bit GIO module cache... [7/9] Updating icon theme caches... [8/9] Updating the desktop file MIME type cache... [9/9] Transaction successfully finished.
pamac list -o
output...
cmake 3.22.2-1 extra 65.8 MB lib32-fluidsynth 2.2.5-1 multilib 473.2 kB lua-sec 2:1.0.2-1 community 194.9 kB lynx 2.8.9-4 extra 5.2 MB
pamac remove -o
output...
Preparing... Checking dependencies... To remove (11): lib32-fluidsynth 2.2.5-1 multilib lib32-portaudio 1:19.7.0-1 (Orphan Of: lib32-fluidsynth) multilib lib32-sdl2 2.0.20-1 (Orphan Of: lib32-fluidsynth) multilib lib32-libxcursor 1.2.0-1 (Orphan Of: lib32-fluidsynth) multilib lib32-libinstpatch 1.1.6-1 (Orphan Of: lib32-fluidsynth) multilib cmake 3.22.2-1 extra jsoncpp 1.9.5-1 (Orphan Of: cmake) extra rhash 1.4.2-1 (Orphan Of: cmake) extra lynx 2.8.9-4 extra lua-sec 2:1.0.2-1 community lua-socket 20200329-1 (Orphan Of: lua-sec) community Total removed size: 75.7 MB Apply transaction ? [y/N] y Removing cmake (3.22.2-1)... [1/11] Removing lua-sec (2:1.0.2-1)... [2/11] Removing lua-socket (20200329-1)... [3/11] Removing rhash (1.4.2-1)... [4/11] Removing lib32-fluidsynth (2.2.5-1)... [5/11] Removing lib32-libinstpatch (1.1.6-1)... [6/11] Removing lib32-portaudio (1:19.7.0-1)... [7/11] Removing lib32-sdl2 (2.0.20-1)... [8/11] Removing lib32-libxcursor (1.2.0-1)... [9/11] Removing lynx (2.8.9-4)... [10/11] Removing jsoncpp (1.9.5-1)... [11/11] Running post-transaction hooks... Arming ConditionNeedsUpdate... [1/4] Updating the MIME type database... [2/4] Updating icon theme caches... [3/4] Updating the desktop file MIME type cache... [4/4] Transaction successfully finished.