Skip to content

Instantly share code, notes, and snippets.

@cristiangu
Created March 29, 2025 08:59
Show Gist options
  • Save cristiangu/573fc71c79203cf027cef5ed42a5e11e to your computer and use it in GitHub Desktop.
Save cristiangu/573fc71c79203cf027cef5ed42a5e11e to your computer and use it in GitHub Desktop.
Install wget, yq, apktool and bundletool
# Install wget
apt update -qq && apt install -qq -y --no-install-recommends wget
# Install yq
version=v4.45.1
binary=yq_linux_amd64
wget https://github.com/mikefarah/yq/releases/download/${version}/${binary}.tar.gz -O - |\
tar xz && mv ${binary} /usr/bin/yq
# Install apktool
apktool_version=2.11.0
rm -rf /usr/local/bin/apktool.jar
rm -rf /usr/local/bin/apktool
sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar'
sudo chmod +r /usr/local/bin/apktool.jar
sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool'
sudo chmod +x /usr/local/bin/apktool
echo "apktool $apktool_version has been installed successfully"
# Install bundletool
bundletool_version=1.18.0
rm -rf /usr/local/bin/bundletool.jar
sudo -E sh -c 'wget https://github.com/google/bundletool/releases/download/$bundletool_version/bundletool-all-$bundletool_version.jar -O /usr/local/bin/bundletool.jar'
sudo chmod +x /usr/local/bin/bundletool.jar
echo "bundletool $bundletool_version has been installed successfully"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment