diff --git a/docs/COMPILE.md b/docs/COMPILE.md index 39fbfe137..ad750399d 100755 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -2,15 +2,42 @@ Compiling/Installing ---- #### Debian-based Linux -You can use [@Itai-Nelken](https://github.com/Itai-Nelken)'s apt repository to install precompiled box86 debs, updated weekly. +You can use the [Pi-Apps-Coders apt repository](https://github.com/Pi-Apps-Coders/box86-debs) to install precompiled box86 debs, updated every 24 hours. ``` -sudo wget https://itai-nelken.github.io/weekly-box86-debs/debian/box86.list -O /etc/apt/sources.list.d/box86.list -wget -qO- https://itai-nelken.github.io/weekly-box86-debs/debian/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box86-debs-archive-keyring.gpg -sudo apt update && sudo apt install box86 -y +# check if .list file already exists +if [ -f /etc/apt/sources.list.d/box86.list ]; then + sudo rm -f /etc/apt/sources.list.d/box86.list || exit 1 +fi +# check if .sources file already exists +if [ -f /etc/apt/sources.list.d/box86.sources ]; then + sudo rm -f /etc/apt/sources.list.d/box86.sources || exit 1 +fi +# download gpg key from specified url +if [ -f /usr/share/keyrings/box86-archive-keyring.gpg ]; then + sudo rm -f /usr/share/keyrings/box86-archive-keyring.gpg +fi +sudo mkdir -p /usr/share/keyrings +wget -qO- "https://pi-apps-coders.github.io/box86-debs/KEY.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/box86-archive-keyring.gpg +# create .sources file +echo "Types: deb +URIs: https://Pi-Apps-Coders.github.io/box86-debs/debian +Suites: ./ +Signed-By: /usr/share/keyrings/box86-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/box86.sources >/dev/null ``` -**Note:** On a 64bit OS, install the `box86:armhf` package. +On a 32bit OS, run the following additional commands +``` +sudo apt update +sudo apt install box86-generic-arm -y +``` + +On a 64bit OS, run the following additional commands +``` +sudo dpkg --add-architecture armhf +sudo apt update +sudo apt install box86-generic-arm:armhf -y +``` Alternatively, you can generate your own package using the [instructions below](https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md#debian-packaging).