From Python2 and Python3.9 to Python 3.10

After the long time without update that my computer have known (I made as usually the update launching sudo pacman -Syu in TTY2), I wanted to check the python question and also upgrade my AUR packages (the two questions seems linked by the use of pamac).

pacman -Qoq /usr/lib/python3.9
ceph-libs
python-sip4

As @ufo_driver recommended:

I have launched:

pamac build $(pacman -Qoq /usr/lib/python3.9) --no-confirm
Préparation...
Vérification des dépendances de python-sip4...
Vérification des dépendances de ceph-libs...
Résolution des dépendances...
Recherche des conflits entre paquets...

À installer  (100):
  python-filelock                       3.8.0-1       (Requis par : ceph-libs)  community  16,3 Ko
  python-joblib                         1.2.0-1       (Requis par : ceph-libs)  community  416,2 Ko
  erlang-nox                            25.1.2-1      (Requis par : ceph-libs)  community  41,8 Mo
  socat                                 1.7.4.3-2     (Requis par : ceph-libs)  extra      184,6 Ko
  rabbitmq                              3.10.7-1      (Requis par : ceph-libs)  community  15,3 Mo
  python-tomlkit                        0.11.6-1      (Requis par : ceph-libs)  community  75,5 Ko
  python-wcwidth                        0.2.5-6       (Requis par : ceph-libs)  community  33,1 Ko
  python-prettytable                    3.5.0-1       (Requis par : ceph-libs)  community  46,6 Ko
  python-pytz                           2022.6-1      (Requis par : ceph-libs)  community  40,8 Ko
  python-tempora                        5.0.2-1       (Requis par : ceph-libs)  community  28,5 Ko
  xmlstarlet                            1.6.1-3       (Requis par : ceph-libs)  community  228,1 Ko
  python-docutils                       1:0.19-2      (Requis par : ceph-libs)  community  725,2 Ko
  abseil-cpp                            20220623.1-1  (Requis par : ceph-libs)  community  981,5 Ko
  python-grpcio                         1.50.1-2      (Requis par : ceph-libs)  community  1,9 Mo
  python-dill                           0.3.6-1       (Requis par : ceph-libs)  community  163,1 Ko
  python-pbr                            5.11.0-1      (Requis par : ceph-libs)  community  136,3 Ko
  python-mock                           3.0.5-9       (Requis par : ceph-libs)  community  47,4 Ko
  python-babel                          2.11.0-1      (Requis par : ceph-libs)  community  6,4 Mo
  python-imagesize                      1.4.1-2       (Requis par : ceph-libs)  community  11,9 Ko
  python-snowballstemmer                2.2.0-3       (Requis par : ceph-libs)  community  188,3 Ko
  python-sphinx-alabaster-theme         0.7.12-9      (Requis par : ceph-libs)  community  15,9 Ko
  python-sphinxcontrib-applehelp        1.0.2-9       (Requis par : ceph-libs)  community  34,0 Ko
  python-sphinxcontrib-devhelp          1.0.2-9       (Requis par : ceph-libs)  community  27,5 Ko
  python-sphinxcontrib-htmlhelp         2.0.0-5       (Requis par : ceph-libs)  community  39,2 Ko
  python-sphinxcontrib-jsmath           1.0.1-12      (Requis par : ceph-libs)  community  8,8 Ko
  python-sphinxcontrib-qthelp           1.0.3-9       (Requis par : ceph-libs)  community  31,9 Ko
  python-sphinxcontrib-serializinghtml  1.1.5-4       (Requis par : ceph-libs)  community  32,6 Ko
  python-sphinx                         5.3.0-1       (Requis par : ceph-libs)  community  1,9 Mo
  python-xmlsec                         1.3.13-1      (Requis par : ceph-libs)  community  38,7 Ko
  python-waitress                       2.1.2-1       (Requis par : ceph-libs)  community  84,3 Ko
  python-iniconfig                      1.1.1-5       (Requis par : ceph-libs)  community  9,2 Ko
  python-apipkg                         3.0.1-1       (Requis par : ceph-libs)  community  15,3 Ko
  python-py                             1.11.0-1      (Requis par : ceph-libs)  community  160,7 Ko
  python-cachetools                     5.2.0-1       (Requis par : ceph-libs)  community  20,1 Ko
  python-pyasn1                         0.4.8-7       (Requis par : ceph-libs)  extra      117,9 Ko
  python-pyasn1-modules                 0.2.8-6       (Requis par : ceph-libs)  extra      205,5 Ko
  python-rsa                            4.9-1         (Requis par : ceph-libs)  community  48,4 Ko
  python-google-auth                    2.7.0-1       (Requis par : ceph-libs)  community  157,0 Ko
  yasm                                  1.3.0-5       (Requis par : ceph-libs)  extra      813,9 Ko
  cpio                                  2.13-2        (Requis par : ceph-libs)  extra      228,9 Ko
  python-webob                          1.8.7-4       (Requis par : ceph-libs)  community  180,6 Ko
  python-webtest                        3.0.0-3       (Requis par : ceph-libs)  community  60,4 Ko
  python-logutils                       0.3.5-10      (Requis par : ceph-libs)  community  32,3 Ko
  python-pecan                          1.4.2-1       (Requis par : ceph-libs)  community  341,7 Ko
  numactl                               2.0.16-1      (Requis par : ceph-libs)  extra      81,1 Ko
  python-threadpoolctl                  3.1.0-1       (Requis par : ceph-libs)  community  25,6 Ko
  python-jaraco.classes                 3.2.3-1       (Requis par : ceph-libs)  community  10,8 Ko
  python-zc.lockfile                    2.0-8         (Requis par : ceph-libs)  community  13,5 Ko
  python-platformdirs                   2.5.3-1       (Requis par : ceph-libs)  extra      22,8 Ko
  python-portend                        3.1.0-1       (Requis par : ceph-libs)  community  10,3 Ko
  python-lazy-object-proxy              1.8.0-1       (Requis par : ceph-libs)  extra      27,9 Ko
  python-wrapt                          1.14.1-1      (Requis par : ceph-libs)  extra      48,2 Ko
  python-astroid                        2.12.12-1     (Requis par : ceph-libs)  community  381,7 Ko
  leveldb                               1.23-3        (Requis par : ceph-libs)  community  174,6 Ko
  python-defusedxml                     0.7.1-4       (Requis par : ceph-libs)  extra      33,4 Ko
  python-httplib2                       0.21.0-2      (Requis par : ceph-libs)  community  118,3 Ko
  python-prometheus_client              0.15.0-1      (Requis par : ceph-libs)  extra      89,5 Ko
  python-isort                          5.10.1-6      (Requis par : ceph-libs)  community  150,4 Ko
  python-mccabe                         0.7.0-1       (Requis par : ceph-libs)  community  14,5 Ko
  python-pylint                         2.15.5-1      (Requis par : ceph-libs)  community  950,3 Ko
  libcurl-compat                        7.86.0-3      (Requis par : ceph-libs)  core       288,5 Ko
  python-aniso8601                      9.0.1-4       (Requis par : ceph-libs)  community  85,0 Ko
  python-flask-restful                  0.3.9-4       (Requis par : ceph-libs)  community  41,7 Ko
  gperftools                            2.10-1        (Requis par : ceph-libs)  extra      710,5 Ko
  python-exceptiongroup                 1.0.1-1       (Requis par : ceph-libs)  community  22,4 Ko
  python-scipy                          1.9.3-1       (Requis par : ceph-libs)  community  18,3 Mo
  python-jaraco.collections             3.5.2-1       (Requis par : ceph-libs)  community  19,3 Ko
  python-pkgconfig                      1.5.5-3       (Requis par : ceph-libs)  community  11,5 Ko
  coffeescript                          2.7.0-1       (Requis par : ceph-libs)  community  219,8 Ko
  python-coverage                       6.5.0-2       (Requis par : ceph-libs)  community  251,6 Ko
  python-pluggy                         1.0.0-1       (Requis par : ceph-libs)  community  26,1 Ko
  python-pytest                         7.2.0-4       (Requis par : ceph-libs)  community  524,3 Ko
  python-pytest-cov                     4.0.0-1       (Requis par : ceph-libs)  community  32,2 Ko
  python-cheroot                        8.6.0-2       (Requis par : ceph-libs)  community  165,0 Ko
  python-google-auth-httplib2           0.1.0-3       (Requis par : ceph-libs)  community  13,5 Ko
  python-uritemplate                    4.1.1-1       (Requis par : ceph-libs)  community  22,6 Ko
  python-protobuf                       21.9-1        (Requis par : ceph-libs)  extra      305,5 Ko
  python-elasticsearch                  7.9.0-1       (Requis par : ceph-libs)  community  152,2 Ko
  python-googleapis-common-protos       1.56.4-1      (Requis par : ceph-libs)  community  135,5 Ko
  python-google-api-core                2.10.2-1      (Requis par : ceph-libs)  community  119,7 Ko
  jre11-openjdk-headless                11.0.17.u1-1  (Requis par : ceph-libs)  extra      37,7 Mo
  java-hamcrest                         1.3-5         (Requis par : ceph-libs)  extra      276,9 Ko
  python-pycodestyle                    2.9.1-2       (Requis par : ceph-libs)  community  63,5 Ko
  junit                                 4.13.2-1      (Requis par : ceph-libs)  extra      329,0 Ko
  cunit                                 2.1.3-3       (Requis par : ceph-libs)  community  75,2 Ko
  python-google-api-python-client       2.65.0-1      (Requis par : ceph-libs)  community  3,8 Mo
  librabbitmq-c                         0.11.0-2      (Requis par : ceph-libs)  community  88,0 Ko
  debuginfod                            0.187-2       (Requis par : ceph-libs)  core       134,2 Ko
  valgrind                              3.19.0-5      (Requis par : ceph-libs)  extra      12,0 Mo
  python-repoze.lru                     0.7-8         (Requis par : ceph-libs)  community  22,5 Ko
  fcgi                                  2.4.2-2       (Requis par : ceph-libs)  extra      41,9 Ko
  python-cherrypy                       18.8.0-1      (Requis par : ceph-libs)  community  450,9 Ko
  python-scikit-learn                   1.1.3-1       (Requis par : ceph-libs)  community  6,5 Mo
  python-routes                         2.5.1-5       (Requis par : ceph-libs)  community  60,2 Ko
  librdkafka                            1.9.2-2       (Requis par : ceph-libs)  community  740,5 Ko
  python-bcrypt                         4.0.1-1       (Requis par : ceph-libs)  community  191,1 Ko
  python-virtualenv                     20.16.6-1     (Requis par : ceph-libs)  extra      6,3 Mo
  python-pyjwt                          2.6.0-1       (Requis par : ceph-libs)  community  37,1 Ko
  python-isodate                        0.6.1-1       (Requis par : ceph-libs)  community  48,6 Ko
  python-nose                           1.3.7-14      (Requis par : ceph-libs)  extra      223,8 Ko
À construire  (2):
  python-sip4                           4.19.25-3     (4.19.25-1)               AUR
  ceph-libs                             17.2.5-4      (15.2.8-2)                AUR

Taille totale de téléchargement : 166,0 Mo
Taille totale installée: 719,3 Mo

Seeing all the python results to be built and installed, I have not installed them.

Unfortunately I do not remember why I have installed ceph-libs and python-sip4…

That is why I have launched:

pacman -Qo python-sip4
erreur : aucun paquet ne contient python-sip4
pacman -Qo ceph-libs
erreur : aucun paquet ne contient ceph-libs

But it brings no satisfactory result.

Normally after updating pacman using sudo pacman -Syu in TTY2 I do sudo pamac -a.
Today it results in the following, namely a lot of python packages to be installed and built:

sudo pamac upgrade -a
Préparation...
Vérification des dépendances de python2-distlib...
Vérification des dépendances de python2-setuptools...
Vérification des dépendances de python2...
Vérification des dépendances de python2-pip...
Vérification des dépendances de python2-cffi...
Vérification des dépendances de lib32-polkit...
Vérification des dépendances de zotero...
Vérification des dépendances de python2-numpy...
Vérification des dépendances de python2-idna...
Vérification des dépendances de python2-resolvelib...
Vérification des dépendances de libglade...
Vérification des dépendances de python2-packaging...
Vérification des dépendances de python-sip4...
Vérification des dépendances de python2-requests...
Vérification des dépendances de python2-six...
Vérification des dépendances de ceph-libs...
Vérification des dépendances de ttf-symbola...
Vérification des dépendances de python2-configparser...
Vérification des dépendances de python2-webencodings...
Vérification des dépendances de python2-toml...
Vérification des dépendances de skypeforlinux-stable-bin...
Vérification des dépendances de python2-urllib3...
Vérification des dépendances de virtualbox-ext-oracle...
Vérification des dépendances de libmagick6...
Vérification des dépendances de brave...
Vérification des dépendances de libguess...
Vérification des dépendances de libunicodenames...
Vérification des dépendances de python2-appdirs...
Vérification des dépendances de python2-backports...
Vérification des dépendances de celt...
Vérification des dépendances de python2-enum34...
Vérification des dépendances de gnome-icon-theme...
Vérification des dépendances de python2-scandir...
Vérification des dépendances de python2-pyopenssl...
Vérification des dépendances de python2-cachecontrol...
Vérification des dépendances de python2-gobject...
Vérification des dépendances de python2-pep517...
Vérification des dépendances de clamav-unofficial-sigs...
Vérification des dépendances de gconf...
Vérification des dépendances de xfce4-places-plugin...
Vérification des dépendances de diogenes...
Vérification des dépendances de python2-distro...
Vérification des dépendances de galculator-gtk2...
Vérification des dépendances de python2-html5lib...
Vérification des dépendances de python2-mutagen...
Vérification des dépendances de python2-more-itertools...
Vérification des dépendances de lib32-jack...
Vérification des dépendances de python2-pathlib2...
Vérification des dépendances de python2-attrs...
Vérification des dépendances de jack...
Vérification des dépendances de python2-chardet...
Vérification des dépendances de python2-gobject2...
Vérification des dépendances de python2-colorama...
Vérification des dépendances de python2-lockfile...
Vérification des dépendances de python2-importlib-metadata...
Vérification des dépendances de python2-msgpack...
Vérification des dépendances de python2-retrying...
Vérification des dépendances de python2-pycparser...
Vérification des dépendances de teams...
Vérification des dépendances de python2-wheel...
Vérification des dépendances de cython2...
Vérification des dépendances de python2-pytest...
Vérification des dépendances de python2-setuptools-scm...
Vérification des dépendances de python2-nose...
Vérification des dépendances de python2-flaky...
Vérification des dépendances de python2-mock...
Vérification des dépendances de python2-pytest-freezegun...
Vérification des dépendances de python2-pytest-runner...
Vérification des dépendances de python2-pytest-timeout...
Vérification des dépendances de python2-tornado...
Vérification des dépendances de python2-trustme...
Vérification des dépendances de ncurses5-compat-libs...
Vérification des dépendances de python2-pretend...
Vérification des dépendances de python2-pytest-expect...
Vérification des dépendances de python2-pbr...
Vérification des dépendances de python2-pytest-cov...
Vérification des dépendances de python2-py...
Vérification des dépendances de python2-pluggy...
Vérification des dépendances de python2-atomicwrites...
Vérification des dépendances de python2-wcwidth...
Vérification des dépendances de python2-funcsigs...
Vérification des dépendances de python2-genty...
Vérification des dépendances de python2-freezegun...
Vérification des dépendances de python2-pexpect...
Vérification des dépendances de python2-backports-abc...
Vérification des dépendances de python2-futures...
Vérification des dépendances de python2-singledispatch...
Vérification des dépendances de python2-monotonic...
Vérification des dépendances de python2-pycurl...
Vérification des dépendances de python2-trollius...
Vérification des dépendances de python2-twisted...
Vérification des dépendances de python2-service-identity...
Vérification des dépendances de python2-u-msgpack...
Vérification des dépendances de python2-coverage...
Vérification des dépendances de python2-backports.functools_lru_cache...
Vérification des dépendances de python2-unittest2...
Vérification des dépendances de python2-dateutil...
Vérification des dépendances de python2-ptyprocess...
Vérification des dépendances de python2-zope-interface...
Vérification des dépendances de python2-incremental...
Vérification des dépendances de python2-constantly...
Vérification des dépendances de python2-automat...
Vérification des dépendances de python2-hyperlink...
Vérification des dépendances de python2-pyhamcrest...
Vérification des dépendances de python2-pyasn1-modules...
Vérification des dépendances de python2-pyasn1...
Vérification des dépendances de python2-traceback2...
Vérification des dépendances de python2-graphviz...
Vérification des dépendances de python2-m2r...
Vérification des dépendances de python2-typing...
Vérification des dépendances de python2-linecache2...
Vérification des dépendances de python2-mistune...
Vérification des dépendances de python2-docutils...
Vérification des dépendances de python2-pygments...
Avertissement : gutenprint : ignore la mise à jour du paquet (5.3.1-2 => 5.3.4-1)
Résolution des dépendances...
Recherche des conflits entre paquets...
Avertissement : cycle de dépendances détecté :
Avertissement : python2-setuptools sera installé avant sa dépendance python2-appdirs
Avertissement : cycle de dépendances détecté :
Avertissement : python2-packaging sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-six sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-pytest sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-setuptools-scm sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-pathlib2 sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-scandir sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-attrs sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-more-itertools sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-atomicwrites sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-wcwidth sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-funcsigs sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-unittest2 sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-traceback2 sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-linecache2 sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python2-pbr sera installé avant sa dépendance python2-setuptools
Avertissement : cycle de dépendances détecté :
Avertissement : python-incremental sera installé avant sa dépendance python-twisted
^C

À installer  (141):
  python-protobuf                        21.9-1                 (Requis par : brave)               extra      305,5 Ko
  gdb-common                             12.1-2                 (Requis par : python2)             extra      84,3 Ko
  gdb                                    12.1-2                 (Requis par : python2)             extra      4,3 Mo
  xorg-server-xvfb                       21.1.4-1               (Requis par : python2)             extra      964,7 Ko
  luit                                   20221028-1             (Requis par : python2)             extra      30,6 Ko
  xbitmaps                               1.1.2-3                (Requis par : python2)             extra      27,0 Ko
  xterm                                  375-1                  (Requis par : python2)             extra      453,8 Ko
  tk                                     8.6.12-1               (Requis par : python2)             extra      2,0 Mo
  jre11-openjdk-headless                 11.0.17.u1-1           (Requis par : brave)               extra      37,7 Mo
  python-pbr                             5.11.0-1               (Requis par : ceph-libs)           community  
  python-mock                            3.0.5-9                (Requis par : ceph-libs)           community  
  python-nose                            1.3.7-14               (Requis par : ceph-libs)           extra      223,8 Ko
  python-pycodestyle                     2.9.1-2                (Requis par : ceph-libs)           community  63,5 Ko
  python-lazy-object-proxy               1.8.0-1                (Requis par : ceph-libs)           extra      27,9 Ko
  python-wrapt                           1.14.1-1               (Requis par : ceph-libs)           extra      48,2 Ko
  python-astroid                         2.12.12-1              (Requis par : ceph-libs)           community  381,7 Ko
  python-dill                            0.3.6-1                (Requis par : ceph-libs)           community  
  python-isort                           5.10.1-6               (Requis par : ceph-libs)           community  150,4 Ko
  python-mccabe                          0.7.0-1                (Requis par : ceph-libs)           community  14,5 Ko
  python-platformdirs                    2.5.3-1                (Requis par : ceph-libs)           extra      22,8 Ko
  python-tomlkit                         0.11.6-1               (Requis par : ceph-libs)           community  
  python-pylint                          2.15.5-1               (Requis par : ceph-libs)           community  950,3 Ko
  python-exceptiongroup                  1.0.1-1                (Requis par : ceph-libs)           community  22,4 Ko
  python-iniconfig                       1.1.1-5                (Requis par : ceph-libs)           community  
  python-pluggy                          1.0.0-1                (Requis par : ceph-libs)           community  26,1 Ko
  python-pytest                          7.2.0-4                (Requis par : ceph-libs)           community  524,3 Ko
  python-coverage                        6.5.0-2                (Requis par : ceph-libs)           community  251,6 Ko
  python-pytest-cov                      4.0.0-1                (Requis par : ceph-libs)           community  32,2 Ko
  coffeescript                           2.7.0-1                (Requis par : ceph-libs)           community  219,8 Ko
  cpio                                   2.13-2                 (Requis par : ceph-libs)           extra      228,9 Ko
  cunit                                  2.1.3-3                (Requis par : ceph-libs)           community  75,2 Ko
  fcgi                                   2.4.2-2                (Requis par : ceph-libs)           extra      41,9 Ko
  gperftools                             2.10-1                 (Requis par : ceph-libs)           extra      710,5 Ko
  java-hamcrest                          1.3-5                  (Requis par : ceph-libs)           extra      276,9 Ko
  junit                                  4.13.2-1               (Requis par : ceph-libs)           extra      329,0 Ko
  leveldb                                1.23-3                 (Requis par : ceph-libs)           community  174,6 Ko
  libcurl-compat                         7.86.0-3               (Requis par : ceph-libs)           core       288,5 Ko
  librabbitmq-c                          0.11.0-2               (Requis par : ceph-libs)           community  88,0 Ko
  librdkafka                             1.9.2-2                (Requis par : ceph-libs)           community  740,5 Ko
  numactl                                2.0.16-1               (Requis par : ceph-libs)           extra      81,1 Ko
  python-bcrypt                          4.0.1-1                (Requis par : ceph-libs)           community  191,1 Ko
  python-cheroot                         8.6.0-2                (Requis par : ceph-libs)           community  165,0 Ko
  python-pytz                            2022.6-1               (Requis par : ceph-libs)           community  
  python-tempora                         5.0.2-1                (Requis par : ceph-libs)           community  
  python-portend                         3.1.0-1                (Requis par : ceph-libs)           community  10,3 Ko
  python-jaraco.classes                  3.2.3-1                (Requis par : ceph-libs)           community  10,8 Ko
  python-jaraco.collections              3.5.2-1                (Requis par : ceph-libs)           community  19,3 Ko
  python-zc.lockfile                     2.0-8                  (Requis par : ceph-libs)           community  13,5 Ko
  python-cherrypy                        18.8.0-1               (Requis par : ceph-libs)           community  450,9 Ko
  python-elasticsearch                   7.9.0-1                (Requis par : ceph-libs)           community  152,2 Ko
  python-aniso8601                       9.0.1-4                (Requis par : ceph-libs)           community  85,0 Ko
  python-flask-restful                   0.3.9-4                (Requis par : ceph-libs)           community  41,7 Ko
  python-cachetools                      5.2.0-1                (Requis par : ceph-libs)           community  20,1 Ko
  python-pyasn1                          0.4.8-7                (Requis par : ceph-libs)           extra      117,9 Ko
  python-pyasn1-modules                  0.2.8-6                (Requis par : ceph-libs)           extra      205,5 Ko
  python-rsa                             4.9-1                  (Requis par : ceph-libs)           community  48,4 Ko
  python-google-auth                     2.7.0-1                (Requis par : ceph-libs)           community  157,0 Ko
  python-httplib2                        0.21.0-2               (Requis par : ceph-libs)           community  118,3 Ko
  python-google-auth-httplib2            0.1.0-3                (Requis par : ceph-libs)           community  13,5 Ko
  python-uritemplate                     4.1.1-1                (Requis par : ceph-libs)           community  22,6 Ko
  python-googleapis-common-protos        1.56.4-1               (Requis par : ceph-libs)           community  135,5 Ko
  python-google-api-core                 2.10.2-1               (Requis par : ceph-libs)           community  119,7 Ko
  python-google-api-python-client        2.65.0-1               (Requis par : ceph-libs)           community  3,8 Mo
  abseil-cpp                             20220623.1-1           (Requis par : ceph-libs)           community  
  python-grpcio                          1.50.1-2               (Requis par : ceph-libs)           community  
  python-isodate                         0.6.1-1                (Requis par : ceph-libs)           community  48,6 Ko
  python-defusedxml                      0.7.1-4                (Requis par : ceph-libs)           extra      33,4 Ko
  python-pkgconfig                       1.5.5-3                (Requis par : ceph-libs)           community  11,5 Ko
  python-xmlsec                          1.3.13-1               (Requis par : ceph-libs)           community  
  python-webob                           1.8.7-4                (Requis par : ceph-libs)           community  180,6 Ko
  python-waitress                        2.1.2-1                (Requis par : ceph-libs)           community  
  python-webtest                         3.0.0-3                (Requis par : ceph-libs)           community  60,4 Ko
  python-logutils                        0.3.5-10               (Requis par : ceph-libs)           community  32,3 Ko
  python-pecan                           1.4.2-1                (Requis par : ceph-libs)           community  341,7 Ko
  python-wcwidth                         0.2.5-6                (Requis par : ceph-libs)           community  
  python-prettytable                     3.5.0-1                (Requis par : ceph-libs)           community  
  python-prometheus_client               0.15.0-1               (Requis par : ceph-libs)           extra      89,5 Ko
  python-apipkg                          3.0.1-1                (Requis par : ceph-libs)           community  15,3 Ko
  python-py                              1.11.0-1               (Requis par : ceph-libs)           community  160,7 Ko
  python-pyjwt                           2.6.0-1                (Requis par : ceph-libs)           community  37,1 Ko
  python-repoze.lru                      0.7-8                  (Requis par : ceph-libs)           community  22,5 Ko
  python-routes                          2.5.1-5                (Requis par : ceph-libs)           community  60,2 Ko
  python-scipy                           1.9.3-1                (Requis par : ceph-libs)           community  18,3 Mo
  python-joblib                          1.2.0-1                (Requis par : ceph-libs)           community  
  python-threadpoolctl                   3.1.0-1                (Requis par : ceph-libs)           community  25,6 Ko
  python-scikit-learn                    1.1.3-1                (Requis par : ceph-libs)           community  6,5 Mo
  python-babel                           2.11.0-1               (Requis par : ceph-libs)           community  
  python-docutils                        1:0.19-2               (Requis par : ceph-libs)           community  
  python-imagesize                       1.4.1-2                (Requis par : ceph-libs)           community  
  python-snowballstemmer                 2.2.0-3                (Requis par : ceph-libs)           community  
  python-sphinx-alabaster-theme          0.7.12-9               (Requis par : ceph-libs)           community  
  python-sphinxcontrib-applehelp         1.0.2-9                (Requis par : ceph-libs)           community  
  python-sphinxcontrib-devhelp           1.0.2-9                (Requis par : ceph-libs)           community  
  python-sphinxcontrib-htmlhelp          2.0.0-5                (Requis par : ceph-libs)           community  
  python-sphinxcontrib-jsmath            1.0.1-12               (Requis par : ceph-libs)           community  
  python-sphinxcontrib-qthelp            1.0.3-9                (Requis par : ceph-libs)           community  
  python-sphinxcontrib-serializinghtml   1.1.5-4                (Requis par : ceph-libs)           community  
  python-sphinx                          5.3.0-1                (Requis par : ceph-libs)           community  710,1 Ko
  python-filelock                        3.8.0-1                (Requis par : ceph-libs)           community  16,3 Ko
  python-virtualenv                      20.16.6-1              (Requis par : ceph-libs)           extra      6,3 Mo
  erlang-nox                             25.1.2-1               (Requis par : ceph-libs)           community  41,8 Mo
  socat                                  1.7.4.3-2              (Requis par : ceph-libs)           extra      184,6 Ko
  rabbitmq                               3.10.7-1               (Requis par : ceph-libs)           community  15,3 Mo
  debuginfod                             0.187-2                (Requis par : ceph-libs)           core       134,2 Ko
  valgrind                               3.19.0-5               (Requis par : ceph-libs)           extra      12,0 Mo
  xmlstarlet                             1.6.1-3                (Requis par : ceph-libs)           community  228,1 Ko
  yasm                                   1.3.0-5                (Requis par : ceph-libs)           extra      813,9 Ko
  gnome-common                           3.18.0-4               (Requis par : gconf)               extra      9,4 Ko
  perl-xml-sax-expat                     0.51-7                 (Requis par : gnome-icon-theme)    community  9,0 Ko
  perl-xml-simple                        2.25-7                 (Requis par : gnome-icon-theme)    extra      58,3 Ko
  icon-naming-utils                      0.8.90-5               (Requis par : gnome-icon-theme)    extra      9,4 Ko
  libxml++                               3.2.4-1                (Requis par : jack)                extra      85,8 Ko
  libconfig                              1.7.3-1                (Requis par : jack)                community  89,2 Ko
  dbus-c++                               0.9.0-10               (Requis par : jack)                community  122,2 Ko
  libffado                               2.4.6-1                (Requis par : jack)                community  986,0 Ko
  highway                                1.0.2-1                (Requis par : libmagick6)          community  572,0 Ko
  libjxl                                 0.7.0-3                (Requis par : libmagick6)          community  2,0 Mo
  python-pretend                         1.0.9-10               (Requis par : python2-packaging)   community  9,0 Ko
  python-zope-interface                  5.5.0-1                                                   extra      324,9 Ko
  python-constantly                      15.1.0-11                                                 extra      13,1 Ko
  python-incremental                     22.10.0-1                                                 extra      29,1 Ko
  python-automat                         22.10.0-1                                                 extra      53,1 Ko
  python-hyperlink                       21.0.0-4                                                  extra      110,8 Ko
  python-twisted                         22.10.0-1              (Requis par : python2-twisted)     extra      5,1 Mo
  gcc-fortran                            12.2.0-1               (Requis par : python2-numpy)       core       11,9 Mo
  python-pyflakes                        2.5.0-1                (Requis par : python2-pep517)      community  124,9 Ko
  python-entrypoints                     0.4-2                  (Requis par : python2-pep517)      community  10,5 Ko
  flake8                                 1:5.0.4-2              (Requis par : python2-pep517)      community  99,1 Ko
  python-pytest-flake8                   1.1.1-1                (Requis par : python2-pep517)      community  11,7 Ko
  python-testpath                        0.6.0-1                (Requis par : python2-pep517)      community  16,0 Ko
  python-lark-parser                     1.1.4-1                (Requis par : python2-resolvelib)  community  184,4 Ko
  python-commentjson                     0.9.0-5                (Requis par : python2-resolvelib)  community  20,0 Ko
  python-pytest-runner                   6.0.0-1                (Requis par : python2-pip)         community  12,3 Ko
  python-freezegun                       1.2.2-1                (Requis par : python2-pip)         community  23,7 Ko
  python-pytest-rerunfailures            10.2-5                 (Requis par : python2-pip)         community  19,5 Ko
  python-execnet                         1.9.0-4                (Requis par : python2-pip)         community  77,3 Ko
  python-pytest-xdist                    3.0.2-1                (Requis par : python2-pip)         community  59,6 Ko
  python-scripttest                      1.3.0-8                (Requis par : python2-pip)         community  16,7 Ko
  python-tomli-w                         1.0.0-5                (Requis par : python2-pip)         extra      11,7 Ko
  python-csv23                           0.3.4-1                (Requis par : python2-pip)         extra      27,0 Ko
  python-sphinx-inline-tabs              2022.01.02.beta11-1    (Requis par : python2-pip)         community  12,2 Ko
À construire  (114):
  python2                                2.7.18-8               (2.7.18-2)                         AUR
  ncurses5-compat-libs                   6.3-1                                                     AUR
  brave                                  1.29.79-1              (1.20.103-1)                       AUR
  celt                                   0.11.3-5               (0.11.3-4)                         AUR
  ceph-libs                              17.2.5-4               (15.2.8-2)                         AUR
  clamav-unofficial-sigs                 7.2.5-1                (7.2.2-1)                          AUR
  diogenes                               4.5-1                  (4.3-1)                            AUR
  galculator-gtk2                        2.1.4-6                (2.1.4-5)                          AUR
  gconf                                  3.2.6+11+g07808097-10  (3.2.6+11+g07808097-7)             AUR
  gnome-icon-theme                       3.12.0-7               (3.12.0-6)                         AUR
  jack                                   0.126.0-5              (0.125.0-9)                        AUR
  lib32-jack                             0.126.0-1              (0.125.0-3)                        AUR
  lib32-polkit                           122-1                  (0.118-1)                          AUR
  libglade                               2.6.4-8                (2.6.4-7)                          AUR
  libguess                               1.2-4                  (1.2-3)                            AUR
  libmagick6                             6.9.12.67-1            (6.9.12.3-1)                       AUR
  libunicodenames                        1.2.2-2                (1.2.2-1)                          AUR
  python-sip4                            4.19.25-3              (4.19.25-1)                        AUR
  python2-six                            1.16.0-6               (1.15.0-3)                         AUR
  python2-setuptools-scm                 5.0.2-1                                                   AUR
  python2-py                             1.11.0-2                                                  AUR
  python2-backports                      1.1-2                  (1.0-3)                            AUR
  python2-configparser                   4.0.2-3                (4.0.2-2)                          AUR
  python2-scandir                        1.10.0-8               (1.10.0-3)                         AUR
  python2-pathlib2                       2.3.7.post1-2          (2.3.5-1)                          AUR
  python2-importlib-metadata             2.1.3-2                (2.1.1-1)                          AUR
  python2-pluggy                         0.13.1-9                                                  AUR
  python2-attrs                          21.4.0-1               (20.3.0-3)                         AUR
  python2-more-itertools                 5.0.0-3                (5.0.0-2)                          AUR
  python2-atomicwrites                   1.4.0-7                                                   AUR
  python2-backports.functools_lru_cache  1.6.4-3                                                   AUR
  python2-wcwidth                        0.2.5-6                                                   AUR
  python2-pbr                            5.9.0-2                                                   AUR
  python2-linecache2                     1.0.0-5                                                   AUR
  python2-traceback2                     1.4.0-7                                                   AUR
  python2-unittest2                      1.1.0-8                                                   AUR
  python2-funcsigs                       1.0.2-4                                                   AUR
  python2-pytest                         4.6.11-1                                                  AUR
  python2-packaging                      20.9-7                 (20.9-1)                           AUR
  python2-setuptools                     2:44.1.1-2             (2:44.1.1-1)                       AUR
  python2-appdirs                        1.4.4-6                (1.4.4-3)                          AUR
  cython2                                0.29.32-2                                                 AUR
  python2-msgpack                        1.0.4-2                (0.6.2-4)                          AUR
  python2-mock                           3.0.5-9                                                   AUR
  python2-genty                          1.3.2-8                                                   AUR
  python2-nose                           1.3.7-13                                                  AUR
  python2-flaky                          3.7.0-4                                                   AUR
  python2-pytest-runner                  5.2-5                                                     AUR
  python2-pretend                        1.0.9-9                                                   AUR
  python2-idna                           2.10-4                 (2.10-3)                           AUR
  python2-pycparser                      2.21-1                 (2.20-3)                           AUR
  python2-cffi                           1.15.0-3               (1.14.5-1)                         AUR
  python2-enum34                         1.1.10-2               (1.1.9-1)                          AUR
  python2-pyopenssl                      21.0.0-6               (20.0.1-1)                         AUR
  python2-dateutil                       2.8.2-2                                                   AUR
  python2-freezegun                      0.3.15-8                                                  AUR
  python2-pytest-freezegun               0.4.2-1                                                   AUR
  python2-ptyprocess                     0.7.0-1                                                   AUR
  python2-pexpect                        4.8.0-1                                                   AUR
  python2-pytest-timeout                 1.4.2-5                                                   AUR
  python2-backports-abc                  0.5-3                                                     AUR
  python2-futures                        3.3.0-3                                                   AUR
  python2-singledispatch                 3.7.0-3                                                   AUR
  python2-monotonic                      1.6-2                                                     AUR
  python2-pycurl                         7.44.1-7                                                  AUR
  python2-trollius                       2.2.1-1                                                   AUR
  python2-zope-interface                 5.4.0-2                                                   AUR
  python2-pyasn1                         0.4.8-5                                                   AUR
  python2-pyasn1-modules                 0.2.8-4                                                   AUR
  python2-service-identity               21.1.0-1                                                  AUR
  python2-incremental                    21.3.0-1                                                  AUR
  python2-constantly                     15.1.0-9                                                  AUR
  python2-graphviz                       0.16-1                                                    AUR
  python2-mistune                        0.8.4-6                                                   AUR
  python2-docutils                       0.18.1-1                                                  AUR
  python2-pygments                       2.5.2-2                                                   AUR
  python2-m2r                            0.2.1-7                                                   AUR
  python2-automat                        20.2.0-7                                                  AUR
  python2-typing                         3.10.0.2-1                                                AUR
  python2-hyperlink                      21.0.0-2                                                  AUR
  python2-pyhamcrest                     1.10.1-1                                                  AUR
  python2-twisted                        20.3.0-5                                                  AUR
  python2-tornado                        5.1.1-5                                                   AUR
  python2-trustme                        0.9.0-5                                                   AUR
  python2-urllib3                        1.26.11-1              (1.26.3-1)                         AUR
  python2-chardet                        4.0.0-3                (3.0.4-7)                          AUR
  python2-requests                       2.27.1.r5.gfa1b0a36-1  (2.25.1-1)                         AUR
  python2-cachecontrol                   0.12.6-7               (0.12.6-3)                         AUR
  python2-colorama                       0.4.5-1                (0.4.4-3)                          AUR
  python2-distlib                        0.3.3-1                (0.3.1-2)                          AUR
  python2-distro                         1.6.0-1                (1.5.0-3)                          AUR
  python2-gobject                        3.36.1-5               (3.36.1-3)                         AUR
  python2-gobject2                       2.28.7-7               (2.28.7-6.1)                       AUR
  python2-webencodings                   0.5.1-7                (0.5.1-6)                          AUR
  python2-u-msgpack                      2.7.1-3                                                   AUR
  python2-pytest-expect                  1.1.0-8                                                   AUR
  python2-html5lib                       1.1-12                 (1.1-6)                            AUR
  python2-lockfile                       0.12.2-9               (0.12.2-8)                         AUR
  python2-mutagen                        1.43.1-2               (1.43.1-1)                         AUR
  python2-numpy                          1.16.6-2               (1.16.6-1)                         AUR
  python2-toml                           0.10.2-7               (0.10.2-3)                         AUR
  python2-pep517                         0.11.0-1               (0.9.1-3)                          AUR
  python2-retrying                       1.3.3-13               (1.3.3-9)                          AUR
  python2-resolvelib                     0.5.5-1                (0.5.4-1)                          AUR
  python2-coverage                       5.5-3                                                     AUR
  python2-pytest-cov                     2.12.1-3                                                  AUR
  python2-wheel                          0.37.1-3                                                  AUR
  python2-pip                            20.3.4-1               (20.3.1-1)                         AUR
  skypeforlinux-stable-bin               8.91.0.404-1           (8.69.0.77-1)                      AUR
  teams                                  1.5.00.23861-1         (1.4.00.7556-1)                    AUR
  ttf-symbola                            14.00-1                (13.00-8)                          AUR
  virtualbox-ext-oracle                  7.0.4-1                (6.1.18-1)                         AUR
  xfce4-places-plugin                    1.8.3-1                (1.8.1-1)                          AUR
  zotero                                 6.0.18-1               (5.0.96-1)                         AUR

Once again, seeing all the python results to be built and installed, I have not installed nor built them.

Unfortunately I do not remember why I have installed python2…

Below you can find some more maybe interesting information:

pacman -Qoq python2
python2
pactree -r python2

python2
├─python2-appdirs
│ ├─python2-pip
│ └─python2-setuptools
│   ├─python2-chardet
│   │ └─python2-requests
│   │   ├─python2-cachecontrol
│   │   │ └─python2-pip
│   │   └─python2-pip
│   ├─python2-cryptography
│   │ └─python2-pyopenssl
│   │   └─python2-pip
│   ├─python2-distro
│   │ └─python2-pip
│   ├─python2-mutagen
│   └─python2-pip
├─python2-asn1crypto
│ └─python2-cryptography
├─python2-attrs
├─python2-backports
│ └─python2-configparser
│   └─python2-importlib-metadata
│     └─python2-pep517
│       └─python2-pip
├─python2-cairo
│ └─pygtk
├─python2-colorama
│ └─python2-pip
├─python2-contextlib2
│ ├─python2-importlib-metadata
│ ├─python2-pip
│ └─python2-zipp
│   ├─python2-importlib-metadata
│   └─python2-pep517
├─python2-distlib
│ └─python2-pip
├─python2-distro
├─python2-enum34
│ └─python2-cryptography
├─python2-gobject
├─python2-gobject2
│ └─pygtk
├─python2-idna
│ ├─python2-cryptography
│ └─python2-requests
├─python2-ipaddress
│ ├─python2-cryptography
│ └─python2-pip
├─python2-lockfile
├─python2-more-itertools
├─python2-msgpack
│ └─python2-cachecontrol
├─python2-numpy
├─python2-ordered-set
│ └─python2-setuptools
├─python2-ply
│ └─python2-pycparser
│   └─python2-cffi
│     └─python2-cryptography
├─python2-progress
│ └─python2-pip
├─python2-pyopenssl
├─python2-pyparsing
│ └─python2-packaging
│   ├─python2-pip
│   └─python2-setuptools
├─python2-pytoml
├─python2-resolvelib
│ └─python2-pip
├─python2-scandir
│ └─python2-pathlib2
│   └─python2-importlib-metadata
├─python2-six
│ ├─python2-cryptography
│ ├─python2-html5lib
│ │ └─python2-pip
│ ├─python2-more-itertools
│ ├─python2-packaging
│ ├─python2-pathlib2
│ ├─python2-pip
│ ├─python2-pyopenssl
│ └─python2-retrying
│   └─python2-pip
├─python2-toml
│ ├─python2-pep517
│ └─python2-pip
├─python2-urllib3
│ └─python2-requests
└─python2-webencodings
  └─python2-html5lib

I have read different threads concerning this question and I have seen for example this interesting post written by @RandomScumbag :

Does anyone have an idea how to process securely?
Should I launch sudo pacman -Rcns python2 for example ?

Thanks a lot for your attention!


pacman -Qo expects a file path as argument: pacman(8)
But that wouldn’t answer your question anyway. You should dig into /var/log/pacman.log instead for that.


You may need to explicitly list the python2-* packages to remove.

1 Like

Thanks a lot for your answer @maycne.sonahoz ! I have now looked at this file.
I can see there that python-sip4 was installed during the full system upgrade made the 2nd February 2021 (probably the stable update one of the 2021-01-19 ) since I can read:

[2021-02-02T21:34:43+0100] [PACMAN] starting full system upgrade
[...]
[2021-02-02T21:45:30+0100] [ALPM] upgraded python-shiboken2 (5.15.2-2 -> 5.15.2-4)
[2021-02-02T21:45:30+0100] [ALPM] installed python-sip4 (4.19.24-1)

I can see there that ceph-libs was installed during the full system upgrade made the 14th May 2020 (probably the stable update one of the 11th May 2020 - which forum page have not been archived by the Wayback machine ) since I can read:

[2020-05-14T11:45:33+0200] [PACMAN] Running 'pacman -Syu'
[...]
[2020-05-14T11:47:41+0200] [ALPM] upgraded s-nail (14.9.18-1 -> 14.9.19-1)
[2020-05-14T11:47:41+0200] [ALPM] installed oath-toolkit (2.6.2-8)
[2020-05-14T11:47:41+0200] [ALPM] installed ceph-libs (14.2.8-1)

How this information can help me? I am a bit lost and confused…

Thanks anyway for your attention!

I am not sure to have fully understood what you have written @maycne.sonahoz
Using sudo pacman -Rs python2, it will according what I can understand remove the packages and its depencies which are not required by another installed package. So I thought that it will clear all my unneeded python2 packages.

Do you mean that I have to launch sudo pacman -Rs which the different unused python2-* packages that I have?

Thanks again, have a nice day!

Or you could use pamac which has clear names for what it will do:

pamac remove --cascade --orphans python2

1 Like

Il te conseille simplement d’utiliser -Rs sans le c, cela est juste plus sécuritaire car tu vas devoir ajouter manuellement les dépendances que pacman va indiquer.

Mais, vu ce que retourne ton pactree, je suppose que l’option c est bonne, reste à jour avant de valider que tu as que des python2 et pygtk. Attention: peut-être que pygtk va demander aussi à supprimer quelques applications…

1 Like

You can find below my answer originally published in French, since I have received a French message.

Thanks a lot for all your precisions @papajoke !

I am not really sure to have understodf this part of your sentence : do you mean that I must have done all my updated before launching sudo pacman -Rsc python2 ?

My pactree -r results only the following:

pactree -r pygtk
pygtk

Therefore pygtk seems to be required by no other package.

Thanks for the precision! If it is more sure, I will rather try sudo pacman -Rs python2. But how can I then know the dependencies that pacman can indicate me?

Thanks again!

French answer:

Merci beaucoup pour toutes tes précision @papajoke !

Je bute sur cette partie de ta phrase, je ne suis pas sûr d’avoir bien saisi : veux-tu dire que je dois avoir fait mes mises à jour avant de lancer sudo pacman -Rsc python2 ?

Mon pactree -r donne seulement:

pactree -r pygtk
pygtk

Donc pygtk n’a l’air d’être requis par aucun autre paquet.

Merci pour la précision ! Si c’est plus sécure, je vais plutôt tenter sudo pacman -Rs python2. Mais comment connaître alors les dépendances que pacman peut m’indiquer ?

Merci encore !

@papajoke @Killi Since you’re not posting in the #languages:francais section, please edit your posts to include English translations for the rest of us.

1 Like

Done! Sorry @Yochanan.
@papajoke answers me kindly in French so I thought it will be easier to answer him in French.