TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: CHRIS GREEN
date: 2020-12-30 09:58:00
subject: Re: Should it be possible

Martin Gregorie  wrote:
> On Tue, 29 Dec 2020 21:59:18 +0000, Chris Green wrote:
>
> > Python 2.7 went out of support at the beginning of 2020, is it now
> > possible to remove it from buster installations?
>
> Check whether you haven't got any Raspbian packages that use Python 2.7
> and no other Python programs from 2rd parties or written by yourself.
>
> If you don't have any of these dependencies it can be removed.
>
Yes, this is what I assumed would be true but I just wanted to check
that there aren't any system dependencies on Python 2.7.


> To search for them:
>
> - if you write Python, grep your local source files for strings unique to
>   Python 2.7 such as library functions used by 2.7 and not by 3.7
>
I moved and/or converted all my Python code to Python three a while ago.


> - running "apt-get --no-remove autoremove"  should report any packages
>   that were installed to satisfy dependencies without removing them.
>   **** caution I've not tried this, but its documented in the apt-get
>   **** manpage.
>
Well one can simply do "apt remove python2.7" and see if it removes
anything significant with it (apart from the associated libraries of
course, which should go). You only have to say "N" when it asks if you
want to continue so it doesn't then do the removal.

--
Chris Green
ยท

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.