points by banana_giraffe 5 years ago

For those that just want to play:

    cd
    wget http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86/apk-tools-static-2.10.5-r1.apk
    cd /
    tar xvzf ~/apk-tools-static-2.10.5-r1.apk
    ln -s /sbin/apk.static /sbin/apk
    cd
    apk
userbinator 5 years ago

It took me longer than it should to realise that you weren't referring to an Android version.

teruakohatu 5 years ago

Thank you very much. Copy n pasting that, followed by

# apk add R

And I finally have R on my iPad!

mdolahBI 5 years ago

Just tried this but it seems to have failed on the `wget` command

  iPhone:~# wget http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86/apk-tools-static-2.10.5-r1.apk
  wget: bad address 'dl-cdn.alpinelinux.org'
  • banana_giraffe 5 years ago

    Odd, not sure why that's failing for you. You can bypass the wget command by downloading that file in Safari, then doing

        mount -t ios . /mnt
        # Pick "Downloads" from "On My iPad" in the GUI
    

    Then you can run

        tar xvzf /mnt/apk-tools-static-2.10.5-r1.apk
    

    When you cd to the root.

    Though, I suspect apk itself will fail if you can't resolve domain names.

    Edit: As gorkish points out, make sure iSH has network permissions first and try again with the original command.

  • gorkish 5 years ago

    The first network access fails until you grant local network permissions to iSH.

datfrojo 5 years ago

What are you trying to achieve here? What’s wrong with apk 2.10.4 that ships with iSH?

  • banana_giraffe 5 years ago

    The version in the app store linked here does not ship with a binary of apk.

    • datfrojo 5 years ago

      Ahhhh I installed the version from the App Store and it just kept the app data from the version installed via Xcode. Didn’t realise that the App Store version was missing apk