# Archlinux removing python2 from the repositories

**URL:** <https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052>\
**Category:** Important notifications\
**Created:** [September 23, 2022, 4:06pm UTC](https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052 "2022-09-23T16:06:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [September 23, 2022, 4:06pm UTC](https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052/1 "2022-09-23T16:06:12Z")

</div>

![2022-09-23_18-02](https://forum.endeavouros.com/uploads/default/original/3X/f/2/f2934206239077371a85cba7ae80bb1a0fe1807f.jpeg)  
[https://archlinux.org/news/removing-python2-from-the-repositories/](https://archlinux.org/news/removing-python2-from-the-repositories/)

```auto
[18:00:40] build :: xfce4-build ➜ ~ » yay -Rc python2               
[sudo] password for build: 
checking dependencies...

Package (1) Old Version Net Change

python2 2.7.18-5 -76,84 MiB

Total Removed Size: 76,84 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing python2 [----------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

```

So check if you still need it or have any used apps installed needing it…  
**they should show up for removal question when running**  
`yay -Rc python2`

And in case it is needed by an application you do need … do **NOT** remove python2 and wait till there is a replacement PKGBUILD or a solution to the needed package … so check the source for them.

---

<div class="post-metadata">

**Author:** ![niknik1971](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/niknik1971/32/56776_2.png) [@niknik1971](https://forum.endeavouros.com/u/niknik1971)\
**Post date:** [September 24, 2022, 11:35am UTC](https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052/2 "2022-09-24T11:35:07Z")

</div>

How do you find out if it is needed or not?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [September 24, 2022, 11:42am UTC](https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052/3 "2022-09-24T11:42:57Z")

</div>

> [@niknik1971](#):
>
> How do you find out if it is needed or not?

You can use the command above `sudo pacman -Rc python2` and see if it wants to remove anything else before accepting the removal.

Alternatively, you can use `pactree -r python2`
