deep-wine-runner/InstallQemuUser.sh

29 lines
720 B
Bash
Raw Normal View History

#!/bin/bash
# 判断是否有安装 Qemu User
which qemu-i386 > /dev/null
2023-03-19 19:29:04 +08:00
if [[ $? == 0 ]]; then
echo 您已安装过 Qemu User按回车键后退出
read
exit 1
fi
2024-02-02 18:07:06 +08:00
# 判断是不是 Fedora
if [[ -f /etc/fedora-release ]]; then
sudo yum update -y
sudo yum install qemu-user qemu-user-static -y
echo 安装完成,按回车键后退出
read
exit
fi
2024-01-31 21:21:12 +08:00
# 判断是不是 Arch Linux
if [[ -f /etc/arch-release ]]; then
sudo pacman -Syu
2024-02-01 18:52:19 +08:00
sudo pacman -S qemu-user qemu-user-static --noconfirm
2024-01-31 21:21:12 +08:00
echo 安装完成,按回车键后退出
read
2024-02-02 18:07:06 +08:00
exit
2024-01-31 21:21:12 +08:00
fi
sudo apt update
sudo apt install binfmt-support qemu-user qemu-user-static -y
echo 安装完成,按回车键后退出
2023-03-19 19:29:04 +08:00
read