以下是在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
。