Cyrus Yip's blog

Removing Python 2 on Arch Linux

Cyrus Yip

Python 2 was dropped from Arch Linux. It was lucky that there were only two python2 packages on my Arch.

1
2
3
4
5
 pacman -Qs python2
local/python2 2.7.18-5
    A high-level scripting language
local/python2-setuptools 2:44.1.1-2
    Easily download, build, install, upgrade, and uninstall Python packages

I removed them without hesitation.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 sudo pacman -Rscn python2 python2-setuptools
checking dependencies...

Package (2)         Old Version  Net Change

python2             2.7.18-5     -76.84 MiB
python2-setuptools  2:44.1.1-2    -3.81 MiB

Total Removed Size:  80.65 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/2) removing python2-setuptools
(2/2) removing python2
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
Tags:

Comments powered by giscus. If comments are not loaded, giscus may be blocked by your Internet service provider.