Bash script to install Alpine Linux in Termux
Open the Termux app and copy-paste the following command:
pkg update -y && \
pkg install -y git ncurses-utils && \
cd $HOME && \
git clone -b main https://github.com/illvart/termux-alpine.git && \
cd termux-alpine && \
chmod +x setup-termux-alpineInstallation options.
./setup-termux-alpine --setup-userDuring installation, you will be asked to choose either the Edge or Latest Stable branch. Please follow the on-screen instructions!
Simply run the following command in Termux:
termux-alpineYou can also run any command inside Alpine Linux like this:
termux-alpine echo "Hello World"To reinstall, simply run the installation command, type y for yes and enter.
Note: Reinstalling will not remove anything inside
/root/and/home/.
If you have created or modified data outside these directories, please backup your data before reinstalling.
You can force a fresh reinstall by passing options, for example:
./setup-termux-alpine -S -FPlease backup your current installation before uninstallation.
Recommended method:
cd ${HOME}/termux-alpine && \
./setup-termux-alpine --uninstallManual (not recommended):
rm -rf ${PREFIX}/bin/termux-alpine \
${HOME}/.termux-alpineTo upgrade the installation script, run the following commands:
rm -rf ${HOME}/termux-alpine && \
cd $HOME && \
git clone -b main https://github.com/illvart/termux-alpine.git && \
cd termux-alpineUsage: ./setup-termux-alpine [options]
Options:
--install-nodejs install nodejs-current, npm, and yarn
--install-python3 install python3 py3-pip, and py3-wheel
-S, --setup-user setup a non-root user
-F, --fake-kernel use a fake kernel
-u, --uninstall full wipe the rootfs installation
-v, --version show this program version
-h, --help show this help informationIf you use --setup-user, to login as the non-root user after installation use login your_username and enter the password.
If you’re enjoying it or want to support development, feel free to donate. Thank you! ❤️
Want to contribute? Read the Contributing.
Released under the GPL-3.0 License.
