Skip to content

Commit

Permalink
添加支持gentoo系统的一键安装脚本 (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
donjuanplatinum authored May 12, 2024
1 parent 352ee04 commit 1df85da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
pkgman="pacman"
Expand Down

0 comments on commit 1df85da

Please sign in to comment.