Several orphans after update

hello , i have theses orphan from my side

pacman -Qdt
python-cachecontrol 1:0.12.11-1
python-distlib 0.3.6-1
python-pep517 0.13.0-1
python-platformdirs 2.5.2-1
python-resolvelib 0.8.1-1
python-rich 12.5.1-1
python-tenacity 8.0.1-3

it will remove more with
python-colorama-0.4.5-1
python-commonmark-0.9.1-5
python-docutils-1:0.19-2
python-future-0.18.2-7
python-pygments-2.13.0-1

sudo pacman -Rs python-cachecontrol python-distlib python-pep517 python-platformdirs python-resolvelib python-rich python-tenacity
vérification des dépendances…
:: lv2 peut nécessiter python-pygments: for lv2specgen.py

Paquets (12) python-colorama-0.4.5-1  python-commonmark-0.9.1-5
             python-docutils-1:0.19-2  python-future-0.18.2-7
             python-pygments-2.13.0-1  python-cachecontrol-1:0.12.11-1
             python-distlib-0.3.6-1  python-pep517-0.13.0-1
             python-platformdirs-2.5.2-1  python-resolvelib-0.8.1-1
             python-rich-12.5.1-1  python-tenacity-8.0.1-3

i have also added libva-mesa-driver and lib32-libva-mesa-driver

return on these check

pacman -Qqd | pacman -Rsu --print -
xorg-xhost-1.0.8-3
wireless-regdb-2022.08.12-1
vamp-plugin-sdk-2.10.0-1
system-config-printer-1.5.18-1
qt5-tools-5.15.5+kde+r1-3
python-tenacity-8.0.1-3
python-rich-12.5.1-1
python-resolvelib-0.8.1-1
python-pyopenssl-22.0.0-1
python-pygments-2.13.0-1
python-pycurl-7.45.1-1
python-pycups-2.0.1-5
python-platformdirs-2.5.2-1
python-pip-22.2.2-2
python-pep517-0.13.0-1
python-markdown-3.4.1-1
python-importlib-metadata-4.8.3-1
python-zipp-3.8.1-1
python-html5lib-1.1-11
python-webencodings-0.5.1-9
python-dnspython-1:2.2.1-1
python-distlib-0.3.6-1
python-cryptography-37.0.4-1
python-commonmark-0.9.1-5
python-future-0.18.2-7
python-docutils-1:0.19-2
python-colorama-0.4.5-1
python-cffi-1.15.1-1
python-pycparser-2.21-3
python-cachecontrol-1:0.12.11-1
pulseaudio-lirc-16.1-1
pulseaudio-jack-16.1-1
pulseaudio-equalizer-16.1-1
lua-5.4.4-2
lirc-1:0.10.1-12
libvoikko-4.3.1-2
libusb-compat-0.1.7-1
libtiger-0.3.4-6
libspectre-0.2.10-1
libmicrohttpd-0.9.75-1
liblouis-3.23.0-1
libfbclient-4.0.0.2496-1
lib32-libid3tag-0.15.1b-3
lib32-fluidsynth-2.2.8-1
lib32-readline-8.1.002-1
lib32-portaudio-1:19.7.0-1
lib32-libinstpatch-1.1.6-1
lib32-jack2-1.9.21-1
lib32-libsamplerate-0.2.2-1
ladspa-1.17-1
hunspell-en_us-2020.12.07-4
hspell-1.4-4
gtk-engine-murrine-0.98.2-4
geoclue-2.6.0-2
geocode-glib-3.26.4-1
efibootmgr-18-1
djvulibre-3.5.28-3
colord-sane-1.4.6-1
sane-1.1.1-1
libieee1284-0.2.11-13

I have even more:

asciidoc 10.2.0-1
boost 1.79.0-1
ceph-libs 15.2.17-1
dejagnu 1.6.3-3
dmd 1:2.100.1-1
encfs 1.9.5-5
ffnvcodec-headers 11.1.5.1-2
gendesk 1.0.9-3
gn-m85 0.1792.7d7e8dee-1
gtksourceview3 1:3.24.11+r28+g73e57b57-1
help2man 1.49.2-1
js78 78.15.0-4
libcroco 0.6.13-2
libgweather 40.0+r87+g80e5a652-2
libkleo 22.08.0-1
libofa 0.9.3-9
mujs 1.2.0-2
nasm 2.15.05-1
patchelf 0.15.0-1
progsreiserfs 0.3.0.5-10
python-cachecontrol 1:0.12.11-1
python-contextlib2 21.6.0-1
python-distlib 0.3.6-1
python-httplib2 0.20.4-1
python-magic 1:0.4.27-1
python-pep517 0.13.0-1
python-platformdirs 2.5.2-1
python-progress 1.6-5
python-protobuf 21.5-1
python-resolvelib 0.8.1-1
python-retrying 1.3.3-13
python-rich 12.5.1-1
python-tenacity 8.0.1-3
python-toml 0.10.2-7
python2-appdirs 1.4.4-6
python2-markupsafe 1.1.1-10
python2-ordered-set 3.1.1-4
python2-packaging 20.9-7
python2-pbr 5.9.0-2
python2-pytest-runner 5.2-5
python2-setuptools-scm 5.0.2-1
python2-unittest2 1.1.0-8
qscintilla-qt5 2.13.3-1
qt5-graphicaleffects 5.15.5+kde+r0-1
ruby2.7 2.7.6-1
uthash 2.3.0-1
xorg-xwayland 22.1.3-1
yarn 1.22.19-1
yasm 1.3.0-5

And that’s not all of them. According to pacman/Tips and tricks - ArchWiki, one can also do

# pacman -Qqd | pacman -Rsu --print -
zip-3.0-10
wireless-regdb-2022.08.12-1
vcdimager-2.0.1-4
unixodbc-2.3.11-1
speech-dispatcher-0.11.2-1
sdl_image-1.2.12-7
sdl12-compat-1.2.52-2
rtkit-0.13-2
qt5-tools-5.15.5+kde+r1-3
qt5-imageformats-5.15.5+kde+r4-1
python-reportlab-3.6.11-1
python-pyxdg-0.28-1
python-pyqt5-5.15.7-1
python-pyqt5-sip-12.11.0-1
python-pyopenssl-22.0.0-1
python-markdown-3.4.1-1
python-importlib-metadata-4.8.3-1
python-zipp-3.8.1-1
python-html5lib-1.1-11
python-webencodings-0.5.1-9
python-six-1.16.0-6
python-evdev-1.6.0-1
python-dnspython-1:2.2.1-1
python-cssselect-1.1.0-9
python-cryptography-37.0.4-1
python-cffi-1.15.1-1
python-pycparser-2.21-3
python-ply-3.11-10
python-beautifulsoup4-4.11.1-1
python-soupsieve-2.3.2.post1-1
pulseaudio-alsa-1:1.2.7.1-1
projectm-3.1.12-3
postgresql-libs-14.5-1
perl-lwp-protocol-https-6.10-4
perl-mozilla-ca-20211001-1
perl-io-socket-ssl-2.074-3
perl-net-ssleay-1.90-3
openmp-14.0.6-1
npm-8.19.1-1
node-gyp-9.1.0-1
semver-7.3.7-1
nodejs-nopt-6.0.0-1
mtools-1:4.0.40-1
lynx-2.8.9-5
lsp-plugins-1.2.2-1
llvm-14.0.6-3
lirc-1:0.10.1-12
libvoikko-4.3.1-2
libtiger-0.3.4-6
libspeechd-0.11.2-1
libnfs-5.0.2-1
libmicrohttpd-0.9.75-1
liblouis-3.23.0-1
libgoom2-2k4-5
libgnome-keyring-3.12.0+13+g4f8ab73-3
libfbclient-4.0.0.2496-1
libappindicator-gtk3-12.10.0.r296-2
libindicator-gtk3-12.10.1-10
ladspa-1.17-1
iw-5.19-1
intel-media-driver-22.4.4-2
intel-gmmlib-22.1.4-2
ibus-1.5.27-1
libibus-1.5.27-1
hspell-1.4-4
hdf5-1.12.2-1
libaec-1.0.6-1
gutenprint-5.3.4-1
gst-plugins-bad-1.20.3-1
zvbi-0.2.35-4
zbar-0.23.1-9
wildmidi-0.4.4-1
svt-hevc-1.5.1-2
soundtouch-2.3.1-2
mjpegtools-2.2.1-1
libsrtp-1:2.4.2-1
libopenmpt-0.6.5-1
libnice-0.1.19-1
gupnp-igd-1.2.0-2
libmicrodns-0.2.0-1
libltc-1.3.2-1
liblrdf-0.6.1-4
libkate-0.4.1-8
libgme-0.6.3-1
libdvdnav-6.1.1-1
libdvdread-6.1.3-1
libavtp-0.2.0-1
glm-0.9.9.8-1
ftgl-2.4.0-2
foomatic-db-gutenprint-ppds-5.3.4-1
foomatic-db-3:20220328-1
dotconf-1.3-6
ctags-1:5.9.20220828.0-1
colord-sane-1.4.6-1
calf-0.90.3-5
fluidsynth-2.2.8-1
portaudio-1:19.7.0-1
libinstpatch-1.1.6-1
bluez-5.65-3
bash-completion-2.11-2
avisynthplus-3.7.2-1
aribb25-0.2.7-2
pcsclite-1.9.8-1
ca-certificates-20210603-1
ca-certificates-mozilla-3.82-1
aribb24-1.0.3-3
alsa-plugins-1:1.2.7.1-1
1 Like

Thanks. Regarding orphans, aren’t they usually encountered as part of the upgrading cycles anyway?

Not always is my experience. If a package is replaced the old one is removed. Sometimes a new package can take over the function of an old package and the user has time to switch. Eventually the package get’s orphaned. Or dependencies chance & when removing without removing orphans the list grows.

I run a pamac remove --orphans after every update and check if there are packages to remove. I used to be careful and check all packages and make some explicitly installed when I want to have those around. Nowadays I’m confident to glance at the list, check one or two if I expect trouble but generally remove the lot.

Why these two are listed as unnecessary, is not entirely clear to me. At least evolution needs ca-certificates for accessing the mailboxes so I had to re-install that one.
And, even more weird: After re-installing ca-certificates-20210603-1, I had expected that pacman -Qqd | pacman -Rsu --print - would list that package as it did before.
But this time, the command simply comes back with There is nothing to do.

It’s not “weird”: you did just now install it (explicitly) - hence it’s no orphan.
To prevent that, you could have used:

$ pacman -Syu --asdeps ca-certificates-20210603-1
1 Like

any package installed/re-installed becomes an “explicitly installed” package at which point, it will not be treated as a orphaned package even if it is not required by any other.

2 Likes