From 7e7b645e1ff26124fbb3967bd6dfce62a8f8560e Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 15 Aug 2021 15:30:51 -0500 Subject: [PATCH] QEMU: use pkg-install --- apps/QEMU/install-32 | 6 ++++-- apps/QEMU/uninstall | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/QEMU/install-32 b/apps/QEMU/install-32 index 73aa4bf..5a9172a 100755 --- a/apps/QEMU/install-32 +++ b/apps/QEMU/install-32 @@ -13,8 +13,10 @@ sudo apt purge -y qemu* cd $HOME #remove deb if present rm -f ./qemu*-armhf.deb + #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!' + #Install QEMU -sudo apt install -fy ./qemu-6.0.50-armhf.deb || error 'Failed to install QEMU!' -rm -f qemu-6.0.50-armhf.deb +"${DIRECTORY}/pkg-install" "$(pwd)/qemu-6.0.50-armhf.deb" "$(dirname "$0")" || error 'Failed to install QEMU!' +rm -f qemu*-armhf.deb diff --git a/apps/QEMU/uninstall b/apps/QEMU/uninstall index 89ec835..46bc224 100755 --- a/apps/QEMU/uninstall +++ b/apps/QEMU/uninstall @@ -7,5 +7,4 @@ function error { exit 1 } -sudo apt purge -y qemu -sudo apt autoremove -y +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1