Skip to content

Instantly share code, notes, and snippets.

@AlecSchneider
Last active October 21, 2024 23:21
Show Gist options
  • Save AlecSchneider/f7f8861a1f8cb361a624902f66ab1a8e to your computer and use it in GitHub Desktop.
Save AlecSchneider/f7f8861a1f8cb361a624902f66ab1a8e to your computer and use it in GitHub Desktop.
How to install apk and Python on your iPhone using the iSH Shell
cd
# you can do this all in one command
wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static
apk add python3
@bizimburak
Copy link

Help me bro

Burak--iPhone:~# wget -qO- http://dl-cdn.alpinelin
ux.org/alpine/v3.12/main/x86/apk-tools-static-2.10
.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.
static add apk-tools && rm sbin/apk.static

WARNING: Ignoring file:///ish/apk/main/x86/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring file:///ish/apk/community/x86/APKINDEX.tar.gz: No such file or directory
OK: 5 MiB in 14 packages
Burak--iPhone:#
Burak--iPhone:
# apk add python3
WARNING: Ignoring file:///ish/apk/main/x86/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring file:///ish/apk/community/x86/APKINDEX.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
python3 (missing):
required by: world[python3]

Copy link

ghost commented Feb 6, 2021

exec format error

@Ninefrm
Copy link

Ninefrm commented Jun 4, 2021

Hi everyone, If anyone finds it useful, I currently installed on im iPad:

wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.6-r0.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

apk add python3

Any editor you recommend?

@Gabrieltobi1
Copy link

Hi everyone, If anyone finds it useful, I currently installed on im iPad:

wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.6-r0.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

apk add python3

Any editor you recommend?

Thanks it works for me

@cleaver-hat
Copy link

please its still not working for me
any help

@yennlinux
Copy link

Hey when I run # wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

I get this error : wget: server returned error: HTTP/1.1 404 Not Found
tar: invalid magic
tar: short read
tar: sbin/apk.static: not found in archive

Please help

@nikileshBalaji
Copy link

nikileshBalaji commented Sep 4, 2021

Yebblinux please following below
URL

you don't need to download any package just run APK add python3

@BoKa33
Copy link

BoKa33 commented Jan 8, 2022

nikileshBalaji is right just type "apk add python3".

@dphans
Copy link

dphans commented Feb 26, 2022

Great!
But how to install virtual environments package into python installed above?

I can install pip by:

apk add py3-pip

But apk add py3-venv not working.

@ashlynhar
Copy link

install all in one command

wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

@gauravbagul003
Copy link

Thanks @dphans

@gauravbagul003
Copy link

@Kuludare
Copy link

Kuludare commented Sep 4, 2023

I finally install mine

@David-ux-cyber
Copy link

Yebblinux please following below URL

you don't need to download any package just run APK add python3

Hello!
Don’t work this command :
localhost:~$ apk add python3
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied

I need help please.

@NRTC4m0
Copy link

NRTC4m0 commented Dec 26, 2023

Try sudo @David-ux-cyber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment