Last active
January 19, 2026 15:18
-
-
Save aachyee/b38c5aa8c8270ceaa71bc75e6cf587c5 to your computer and use it in GitHub Desktop.
install apt-fast on termux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| pkg upd | |
| apt_fast_path=`command -v apt-fast` || : | |
| if [ -n "$apt_fast_path" ]; then | |
| cp "$apt_fast_path" "$apt_fast_path."`date -r $apt_fast_path '+%Y%m%d-%H%M%S'` | |
| pkg show apt-fast >/dev/null 2>&1 && pkg remove -y apt-fast >/dev/null 2>&1 || : | |
| rm -r "$apt_fast_path" >/dev/null || : | |
| fi | |
| curl -LSsfg https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-inst | |
| all.sh | sed -e 's/ sudo / /g;s#run_cmd rm -f /usr/local/sbin/apt-fast#run_cmd rm | |
| -f /usr/local/sbin/apt-fast `command -v apt-fast || :`#;s#wget "$apt_fast_url"/a | |
| pt-fast -O /usr/local/bin/apt-fast#wget "$apt_fast_url"/apt-fast -O - | sed -e s% | |
| /tmp%\$PREFIX/tmp%g\\;s%exec\\ sudo\\ %\\ %g\\;s%\\\\\\\[\\ \\"\\$root\\"\\ -ne\\ | |
| 0\\ \\\\\\\]%false\\ \\\&\\\&\\ \\\[\\ \\"\\$root\\"\\ -ne\\ 0\\ \\\]% > $PREFIX | |
| /bin/apt-fast#;s#/usr/local/bin#$PREFIX/bin#g;s#/etc/#$PREFIX/etc/#g' | sh | |
| pkg i -y ncurses-utils | |
| command -v apt-fast > /dev/null && apt-fast --help || { echo 'installation failed'>&2 | |
| ; exit 1; } | |
| apt-fast install sl # or cowsay | |
| sl | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment