You are not logged in.

#1 2022-03-02 11:53:08

fiddlinmacx
Member
Registered: 2011-03-02
Posts: 89

[Resolved] Safely remove old Python versions

I have Python38 and Python39 still on my system, but I can't figure out a way to tell if they're needed. I'd like to see if I can remove them

Of course, when I run `pacman -Rns python38` I get a long list of packages that depend on python. How can I tell which packages need Python38 (or Python39), specifically, and how do I safely remove either Python package if I'm sure they're not needed?

Last edited by fiddlinmacx (2022-03-02 20:33:31)

Offline

#2 2022-03-02 12:00:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,739

Re: [Resolved] Safely remove old Python versions

All python packages that don't need it should not be depending on python38 or 39 (... but on python(3.10)) specifically and thus not land in that list. Maybe post that output you get. Whether that's in any way still needed is up to you, you installed these after all.

Offline

#3 2022-03-02 12:21:28

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [Resolved] Safely remove old Python versions

The python38 & python39 aur packages do provide python, probably very little in that list does depend on the older version explicitly.


older llvm, gcc & lua version packages don't provide generic llvm / gcc / lua . No idea why python packages do .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2022-03-02 12:24:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,739

Re: [Resolved] Safely remove old Python versions

Ah right, hmm that's annoying then, I'd guess the old

pacman -Qo /usr/lib/python3.{9,8}/site-packages/

trick then?

Last edited by V1del (2022-03-02 12:24:38)

Offline

#5 2022-03-02 16:09:32

fiddlinmacx
Member
Registered: 2011-03-02
Posts: 89

Re: [Resolved] Safely remove old Python versions

@V1del That might work. I didn't think of that. Thanks.

Offline

Board footer

Powered by FluxBB