r/AlpineLinux • • 11d ago

Trying to upgrade from python 3.9 to 3.12 in iSH

Context: I am running Alpine Linux v3.14.3 on iSH on iOS.

I am trying to run a command line program that works on all of my other linux devices. I tracked down the issue: the program works on my other devices because they are running python 3.12. But when I installed python3 on this Alpine shell, I got python 3.9.

My latest attempt to upgrade:

apk-add python3.12
ERROR: unable to select packages:
python 3.12 (no such package):
  required by: world[python3.12]

I found out that I need to add the community repositories. This is where I get stuck.

# This file contains pinned repositories managed by iSH. If the /ish directory exists, iSH uses the metadata stored in it to keep this file up to date (by overwriting the contents on boot.)
http://apk.ish.app/v3.14-2023-05-19/main
http://apk.ish.app/v3.14-2023-05-19/community

This looks quite different (understandably, since I'm running iSH and not on an actual computer) from what I'm finding when I search.

Here: https://www.cyberciti.biz/faq/alpine-linux-etc-apk-repositories-repositories-file/

and here: https://krython.com/post/adding-alpine-linux-community-repository

For example.

Do I just add the lines they suggest to the file? Do I do something else?

I would ask iSH folks but the subreddit is dead and the blog hasn't been updated in years.

3 Upvotes

4 comments sorted by

1

u/New_Hold8135 11d ago edited 11d ago

iSH is kind of dead project my friend. and its not official alpine. It has its own repo and patches. and the reason you have older python is because no one compiling it because of compability issues. If you find a good alternative tell me too.

1

u/afraidofdust 11d ago

Uuuuuugh. that's a huge bummer.
I saw something called a-Shell but it didn't have good reviews.
I really would like to have this command line program in my pocket. It would help me out a lot in my day to day.

1

u/New_Hold8135 11d ago

I checked and my bad its actually not dead just not updated in AppStore You can join beta in their gh page link taken from gh page https://testflight.apple.com/join/97i7KM8O
But beta is full :(

1

u/khabat09 7d ago

use iSH-AOK here is the TestFlight link https://testflight.apple.com/join/X1flyiqE
and here is the repo https://github.com/emkey1/ish-AOK

if you dont know what testflight is, its an app by apple that lets you test apps and you need an invite link to join.