@@ -168,6 +168,7 @@ test_tools() {
168168
169169install_tools () {
170170 { apt --version> /dev/null2>&1 && $sudoprefix apt install -y git build-essential libreadline-dev; }||
171+ { dnf --version> /dev/null2>&1 && $sudoprefix dnf install -y git readline-devel bzip2 @development-tools; }||
171172 { yum --version> /dev/null2>&1 && $sudoprefix yum install -y git readline-devel bzip2&& $sudoprefix yum groupinstall -y' Development Tools' ; }||
172173 { zypper --version> /dev/null2>&1 && $sudoprefix zypper --non-interactive install git readline-devel&& $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; }||
173174 { pacman -V> /dev/null2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel ncurses readline; }||
@@ -179,7 +180,7 @@ install_tools() {
179180 { xbps-install --version> /dev/null2>&1 && $sudoprefix xbps-install -Sy git base-devel; }# void
180181
181182}
182- test_tools|| { install_tools&& test_tools; }|| raise" $( echo -e' Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t* yum\n\t* zypper\n\t* pacman\n\t* portage\n\t* xbps\n Please install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)' ) " 1
183+ test_tools|| { install_tools&& test_tools; }|| raise" $( echo -e' Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t*dnf\n\t* yum\n\t* zypper\n\t* pacman\n\t* portage\n\t* xbps\n Please install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)' ) " 1
183184
184185# -----------------------------------------------------------------------------
185186# install xmake