mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
添加支持gentoo系统的一键安装脚本 (#809)
This commit is contained in:
parent
352ee04918
commit
1df85daf8f
@ -94,6 +94,20 @@ install_ubuntu_debian_pkg()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# 当检测到gentoo时,执行此函数 #
|
||||||
|
####################################
|
||||||
|
gentoo()
|
||||||
|
{
|
||||||
|
pkgman="emerge"
|
||||||
|
echo "检测到Gentoo发行版"
|
||||||
|
echo "正在更新包管理器的列表..."
|
||||||
|
sudo "${pkgman}" --sync
|
||||||
|
echo "正在安装所需的包..."
|
||||||
|
sudo "${pkgman}" net-misc/curl net-misc/wget net-misc/bridge-utils net-dns/dnsmasq sys-apps/diffutils dev-util/pkgconf sys-apps/which app-arch/unzip sys-apps/util-linux sys-fs/dosfstools sys-devel/gcc dev-build/make sys-devel/flex sys-apps/texinfo dev-libs/gmp dev-libs/mpfr app-emulation/qemu dev-libs/mpc dev-libs/openssl
|
||||||
|
}
|
||||||
|
|
||||||
install_archlinux_pkg()
|
install_archlinux_pkg()
|
||||||
{
|
{
|
||||||
pkgman="pacman"
|
pkgman="pacman"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user