Skip to content

Instantly share code, notes, and snippets.

@AlecSchneider
Last active May 18, 2024 10:53
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
@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