QEMU: use pkg-install

pull/936/head
Botspot 4 years ago
parent d3322ce645
commit 1100124168

@ -8,15 +8,12 @@ function error {
} }
#Remove any qemu packages first to prevent conflicting packages #Remove any qemu packages first to prevent conflicting packages
sudo apt purge -y qemu* sudo apt purge -yqq qemu* &>/dev/null
cd $HOME
#remove deb if present
rm -f ./qemu*-armhf.deb
rm -f ~/qemu.deb
#Download QEMU #Download QEMU
wget https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-armhf.deb || error 'Failed to Download QEMU!' wget -O ~/qemu.deb https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-armhf.deb || error 'Failed to Download QEMU!'
#Install QEMU #Install QEMU
"${DIRECTORY}/pkg-install" "$(pwd)/qemu-6.0.50-armhf.deb" "$(dirname "$0")" || error 'Failed to install QEMU!' "${DIRECTORY}/pkg-install" "$HOME/qemu.deb" "$(dirname "$0")" || error 'Failed to install qemu.deb!'
rm -f qemu*-armhf.deb rm -f ~/qemu.deb

@ -8,13 +8,12 @@ function error {
} }
#Remove any qemu packages first to prevent conflicting packages #Remove any qemu packages first to prevent conflicting packages
sudo apt purge -y qemu* sudo apt purge -yqq qemu* &>/dev/null
cd $HOME rm -f ~/qemu.deb
#remove deb is exists
rm -f ./qemu*arm64.deb
#Download QEMU #Download QEMU
wget https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-arm64.deb || error 'Failed to Download QEMU!' wget -O ~/qemu.deb https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-arm64.deb || error 'Failed to Download QEMU!'
#Install QEMU #Install QEMU
sudo apt install -fy ./qemu-6.0.50-arm64.deb || error 'Failed to install QEMU!' "${DIRECTORY}/pkg-install" "$HOME/qemu.deb" "$(dirname "$0")" || error 'Failed to install qemu.deb!'
rm -f qemu-6.0.50-arm64.deb rm -f ~/qemu.deb

Loading…
Cancel
Save