Код: Выделить всё
# eselect python list
Available Python interpreters, in order of preference:
[1] python3.12
[2] python3.11 (fallback)
# emerge -a --unmerge python
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.
>>> These are the packages that would be unmerged:
* Not unmerging package dev-lang/python-3.11.6 since there is no valid reason
* for Portage to unmerge currently used Python interpreter.
dev-lang/python
selected: 3.12.0_p1
protected: 3.11.6
omitted: none
All selected packages: =dev-lang/python-3.12.0_p1
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Would you like to unmerge these packages? [Yes/No] ^CInterrupted.
# python --version
Python 3.12.0
Написал то, что он просит:
Код: Выделить всё
# emerge -pv --depclean =dev-lang/python-3.11.6
Calculating dependencies... done!
dev-lang/python-3.11.6 pulled in by:
app-crypt/gcr-3.41.1-r2 requires dev-lang/python:3.11
app-crypt/mit-krb5-1.20.1 requires dev-lang/python:3.11
app-portage/gemato-20.5 requires dev-lang/python:3.11[threads(+)]
app-text/iso-codes-4.15.0 requires dev-lang/python:3.11
dev-libs/glib-2.76.4 requires dev-lang/python:3.11[xml(+)]
dev-libs/gobject-introspection-1.76.1 requires dev-lang/python:3.11[xml(+)]
dev-libs/icu-73.2 requires dev-lang/python:3.11
dev-libs/libevdev-1.13.1 requires dev-lang/python:3.11
dev-libs/libgusb-0.4.6 requires dev-lang/python:3.11[xml(+)]
dev-libs/libxml2-2.11.5 requires dev-lang/python:3.11[xml(+)]
dev-python/PySocks-1.7.1-r2 requires dev-lang/python:3.11
dev-python/certifi-3021.3.16-r4 requires dev-lang/python:3.11
dev-python/charset-normalizer-3.3.2 requires dev-lang/python:3.11
dev-python/idna-3.4 requires dev-lang/python:3.11
dev-python/requests-2.31.0 requires dev-lang/python:3.11[threads(+)]
dev-python/urllib3-2.1.0 requires dev-lang/python:3.11[ssl(+)]
media-libs/fontconfig-2.14.2-r3 requires dev-lang/python:3.11
media-libs/graphene-1.10.8 requires dev-lang/python:3.11
media-libs/libepoxy-1.5.10-r2 requires dev-lang/python:3.11[xml(+)]
media-libs/libglvnd-1.7.0 requires dev-lang/python:3.11
media-libs/mesa-23.1.9 requires dev-lang/python:3.11
media-libs/opus-1.4 requires dev-lang/python:3.11
net-fs/cifs-utils-7.0 requires dev-lang/python:3.11
net-fs/samba-4.18.8 requires dev-lang/python:3.11[threads(+),xml(+)]
sys-apps/portage-3.0.51 requires dev-lang/python:3.11[ssl(+)], dev-lang/python:3.11[bzip2(+),threads(+)]
sys-apps/systemd-254.5-r1 requires dev-lang/python:3.11
sys-auth/pambase-20220214 requires dev-lang/python:3.11
sys-devel/clang-16.0.6 requires dev-lang/python:3.11
sys-libs/glibc-2.37-r7 requires dev-lang/python:3.11
sys-libs/ldb-2.7.2 requires dev-lang/python:3.11[threads(+)]
sys-libs/talloc-2.4.0 requires dev-lang/python:3.11[threads(+)]
sys-libs/tdb-1.4.8 requires dev-lang/python:3.11[threads(+)]
sys-libs/tevent-0.14.1 requires dev-lang/python:3.11[threads(+)]
>>> No packages selected for removal by depclean
Packages installed: 582
Packages in world: 1
Packages in system: 49
Required packages: 582
Number to remove: 0
Отредактировал файл /etc/python-exec/python-exec.conf, вписал туда:
Код: Выделить всё
python3.12
-python3.11
Код: Выделить всё
# eselect python list
Available Python interpreters, in order of preference:
[1] python3.12
[2] python3.11 (disabled)
# emerge --unmerge =dev-lang/python-3.11
emerge: no python-exec wrapped executable found in /usr/lib/python-exec.