Results 1 to 4 of 4

Thread: Finding python2 dependent software

  1. #1
    Join Date
    Nov 2016
    Beans
    5

    Finding python2 dependent software

    Now that we are 10 months into python2 being eol, I'd like to track down which applications are dependent on python2 so I can finally begin migrating off of python2 and have only python3 in use on my system.

    What apt command would I use to find packages that require python2 to be installed?

    Thank you.

  2. #2
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Finding python2 dependent software

    What i'm using : synaptic
    select 'python2' (or yours) then check Dependencies -> dependants

    or via python commands https://stackoverflow.com/questions/...ions-in-python

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Finding python2 dependent software

    I do not have python2 anymore and if I see some app wanting it, I do not install it.
    depends & reverse depends
    apt-cache showpkg python2.7

    Not sure if Ubuntu 20.04 offers any apps with 2.7?

    I have script to install my most favorite apps in groups. When a group showed it wanted python2, I did not install it and went back and installed each app to find the one that wanted python2. Updated script to exclude it.

    One of my apps is calibre, author said he was not going to update.
    https://www.reddit.com/r/linux/comme...hor_says_i_am/
    But I now see it has a new python3 version calibre 5, so I can go back and install it. Snaptic shows 4.99, but python3 as depends.
    https://calibre-ebook.com/new-in/fourteen

    You can also check by running the uninstall command without actually running it, just to see what it wants to uninstall.
    With older system where python2 is used for system, it offers to uninstall just about your entire system, or huge list.
    Do not accept or say yes, but just use to check what it shows.
    sudo apt remove python2.7
    or sudo apt purge python2.7
    Last edited by oldfred; October 30th, 2020 at 04:05 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Finding python2 dependent software

    You can simulate an uninstall of python2 like this:

    Code:
    sudo apt-get -s remove python2.7
    It should show which packages will have been uninstalled, but won't do anything else.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •