以下是在CentOS中使用FetchLinux的一些實用技巧:
sudo yum install git wget curl openssh-server
安裝必要軟件包。git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
。sudo cp fetchlinux.conf.example fetchlinux.conf
,并編輯配置倉庫URL、鏡像名稱等。fetchlinux
用戶和組,設置倉庫權限sudo chown -R fetchlinux:fetchlinux /opt/fetchlinux
。fetchlinux --help
查看可用命令。fetchlinux download <鏡像名>
。fetch build <包名>
,構建所有包用fetch build all
。fetch publish <包名>
發布軟件包。sudo systemctl enable fetchlinux
和sudo systemctl start fetchlinux
設置開機自啟和啟動服務。sudo fetchlinux --update
。