Skip to content

Commit d12aeda

Browse files
committed
Update(2025/06/05)
1 parent 4f82ffa commit d12aeda

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

f8x

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Proxy_OK=
3232
Docker_OK=
3333
error=0
3434
Linux_architecture_Name=
35-
F8x_Version="1.7.5 Dev(2025/06/03)"
35+
F8x_Version="1.7.5 Dev(2025/06/05)"
3636
wget_option="-q --show-progress"
3737

3838
# ===================== Software version variable setting (dev) =====================
@@ -1852,12 +1852,12 @@ Update_YUM_Mirror(){
18521852
curl -o /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun Yum update sources" || Echo_ERROR "aliyun Yum update sources download failed"
18531853
elif [ $1 == huawei ] 2>> /tmp/f8x_error.log
18541854
then
1855-
curl -o /etc/yum.repos.d/fedora.repo https://f8x.io/repo/fedora.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum sources" || Echo_ERROR "huaweicloud Yum sources download failed"
1856-
curl -o /etc/yum.repos.d/fedora-updates.repo https://f8x.io/repo/fedora-updates.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum update sources" || Echo_ERROR "huaweicloud Yum update sources download failed"
1855+
curl -o /etc/yum.repos.d/fedora.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/fedora.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum sources" || Echo_ERROR "huaweicloud Yum sources download failed"
1856+
curl -o /etc/yum.repos.d/fedora-updates.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/fedora-updates.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum update sources" || Echo_ERROR "huaweicloud Yum update sources download failed"
18571857
elif [ $1 == tuna ] 2>> /tmp/f8x_error.log
18581858
then
1859-
curl -o /etc/yum.repos.d/fedora.repo https://f8x.io/tuna/fedora.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
1860-
curl -o /etc/yum.repos.d/fedora-updates.repo https://f8x.io/tuna/fedora-updates.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum update sources" || Echo_ERROR "tuna Yum update sources download failed"
1859+
curl -o /etc/yum.repos.d/fedora.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/fedora.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
1860+
curl -o /etc/yum.repos.d/fedora-updates.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/fedora-updates.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum update sources" || Echo_ERROR "tuna Yum update sources download failed"
18611861
fi
18621862
;;
18631863
esac
@@ -1904,7 +1904,7 @@ Update_EPEL_Mirror(){
19041904
yum install -y https://mirrors.huaweicloud.com/epel/epel-release-latest-8.noarch.rpm > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud EPEL sources" || Echo_ERROR "huaweicloud EPEL sources download failed"
19051905
elif [ $1 == tuna ] 2>> /tmp/f8x_error.log
19061906
then
1907-
curl -o /etc/yum.repos.d/epel.repo https://f8x.io/tuna/epel-8.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
1907+
curl -o /etc/yum.repos.d/epel.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/epel-8.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
19081908
fi
19091909
;;
19101910
7)
@@ -1913,18 +1913,18 @@ Update_EPEL_Mirror(){
19131913
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun EPEL sources" || Echo_ERROR "aliyun EPEL sources download failed"
19141914
elif [ $1 == huawei ] 2>> /tmp/f8x_error.log
19151915
then
1916-
curl -o /etc/yum.repos.d/epel.repo https://f8x.io/repo/epel-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud EPEL sources" || Echo_ERROR "huaweicloud EPEL sources download failed"
1916+
curl -o /etc/yum.repos.d/epel.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/epel-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud EPEL sources" || Echo_ERROR "huaweicloud EPEL sources download failed"
19171917
elif [ $1 == tuna ] 2>> /tmp/f8x_error.log
19181918
then
1919-
curl -o /etc/yum.repos.d/epel.repo https://f8x.io/tuna/epel-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
1919+
curl -o /etc/yum.repos.d/epel.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/epel-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
19201920
fi
19211921
;;
19221922
6)
19231923
if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
19241924
then
19251925
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun EPEL sources" || Echo_ERROR "aliyun EPEL sources download failed"
19261926
else
1927-
curl -o /etc/yum.repos.d/epel.repo https://f8x.io/tuna/epel-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
1927+
curl -o /etc/yum.repos.d/epel.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/epel-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna EPEL sources" || Echo_ERROR "tuna EPEL sources download failed"
19281928
fi
19291929
;;
19301930
*)
@@ -1952,7 +1952,7 @@ Update_CentOS_Mirror(){
19521952
then
19531953
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun Yum sources" || Echo_ERROR "aliyun Yum sources download failed"
19541954
else
1955-
curl -o /etc/yum.repos.d/CentOS-Base.repo https://f8x.io/tuna/Centos-8.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
1955+
curl -o /etc/yum.repos.d/CentOS-Base.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/Centos-8.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
19561956
fi
19571957
;;
19581958
7)
@@ -1963,10 +1963,10 @@ Update_CentOS_Mirror(){
19631963
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun Yum sources" || Echo_ERROR "aliyun Yum sources download failed"
19641964
elif [ $1 == huawei ] 2>> /tmp/f8x_error.log
19651965
then
1966-
curl -o /etc/yum.repos.d/CentOS-Base.repo https://f8x.io/repo/Centos-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum sources" || Echo_ERROR "huaweicloud Yum sources download failed"
1966+
curl -o /etc/yum.repos.d/CentOS-Base.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/Centos-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded huaweicloud Yum sources" || Echo_ERROR "huaweicloud Yum sources download failed"
19671967
elif [ $1 == tuna ] 2>> /tmp/f8x_error.log
19681968
then
1969-
curl -o /etc/yum.repos.d/CentOS-Base.repo https://f8x.io/tuna/Centos-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
1969+
curl -o /etc/yum.repos.d/CentOS-Base.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/Centos-7.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
19701970
fi
19711971
;;
19721972
6)
@@ -1976,7 +1976,7 @@ Update_CentOS_Mirror(){
19761976
then
19771977
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded aliyun Yum sources" || Echo_ERROR "aliyun Yum sources download failed"
19781978
else
1979-
curl -o /etc/yum.repos.d/CentOS-Base.repo https://f8x.io/tuna/Centos-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
1979+
curl -o /etc/yum.repos.d/CentOS-Base.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/tuna/Centos-6.repo > /dev/null 2>&1 && Echo_INFOR "Downloaded tuna Yum sources" || Echo_ERROR "tuna Yum sources download failed"
19801980
fi
19811981
;;
19821982
*)
@@ -2795,7 +2795,7 @@ Docker_Install(){
27952795

27962796
if [ $1 == tuna ] 2>> /tmp/f8x_error.log
27972797
then
2798-
$Proxy_OK curl -o /etc/yum.repos.d/docker-ce.repo https://f8x.io/docker-ce.repo > /dev/null 2>&1 && Echo_INFOR "Finished downloading the docker yum source from mirrors.tuna.tsinghua.edu.cn" || Echo_ERROR "Failed to download docker yum source"
2798+
$Proxy_OK curl -o /etc/yum.repos.d/docker-ce.repo https://raw.githubusercontent.com/No-Github/Archive/master/cdn/docker-ce.repo > /dev/null 2>&1 && Echo_INFOR "Finished downloading the docker yum source from mirrors.tuna.tsinghua.edu.cn" || Echo_ERROR "Failed to download docker yum source"
27992799
else
28002800
# https://docs.docker.com/engine/install/centos/#set-up-the-repository
28012801
$Proxy_OK yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
@@ -10699,9 +10699,9 @@ do
1069910699
Proxy_Switch
1070010700
if test -e /usr/local/bin/f8x
1070110701
then
10702-
rm -f /usr/local/bin/f8x && $Proxy_OK curl -o /usr/local/bin/f8x https://f8x.io && chmod +x /usr/local/bin/f8x && Echo_INFOR "Update successful" || Echo_ERROR "Update failed"
10702+
rm -f /usr/local/bin/f8x && $Proxy_OK curl -o /usr/local/bin/f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x && chmod +x /usr/local/bin/f8x && Echo_INFOR "Update successful" || Echo_ERROR "Update failed"
1070310703
else
10704-
rm -f f8x && $Proxy_OK curl -o f8x https://f8x.io > /dev/null 2>&1 && Echo_INFOR "Update successful" || Echo_ERROR "Update failed"
10704+
rm -f f8x && $Proxy_OK curl -o f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x > /dev/null 2>&1 && Echo_INFOR "Update successful" || Echo_ERROR "Update failed"
1070510705
fi
1070610706
;;
1070710707
-upgrade)

f8x-ctf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ then
77
sleep 0.001
88
# f8x -update
99
else
10-
curl -o f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x && echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;32m[INFOR]\033[0m - \033[1;32mInstalled f8x tools\033[0m" || echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;31m[ERROR]\033[0m - \033[1;31mf8x installation failed\n\033[0m"
10+
curl -o f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x && echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;32m[INFOR]\033[0m - \033[1;32mInstalled f8x tools\033[0m" || echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;31m[ERROR]\033[0m - \033[1;31mf8x installation failed\n\033[0m"
1111
fi
1212

1313
. /usr/local/bin/f8x > /dev/null 2>&1

f8x-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ then
77
sleep 0.001
88
# f8x -update
99
else
10-
curl -o f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x && echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;32m[INFOR]\033[0m - \033[1;32mInstalled f8x tools\033[0m" || echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;31m[ERROR]\033[0m - \033[1;31mf8x installation failed\n\033[0m"
10+
curl -o f8x https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x && echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;32m[INFOR]\033[0m - \033[1;32mInstalled f8x tools\033[0m" || echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;31m[ERROR]\033[0m - \033[1;31mf8x installation failed\n\033[0m"
1111
fi
1212

1313
. /usr/local/bin/f8x > /dev/null 2>&1

f8x.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# To execute this script:
1313
# 1) Open powershell window as administrator
1414
# 2) Allow script execution by running command "set-ExecutionPolicy Unrestricted"
15-
# 3) running "curl -o f8x.ps1 https://f8x.io/ps1"
15+
# 3) running "curl -o f8x.ps1 https://raw.githubusercontent.com/ffffffff0x/f8x/main/f8x.ps1"
1616
# 4) Unblock the install script by running "Unblock-File .\f8x.ps1"
1717
# 5) Execute the script by running ".\f8x.ps1"
1818

0 commit comments

Comments
 (0)