FetchLinux在CentOS中的配置方法
一 环境准备与安装
sudo yum update -ysudo yum install -y git wget curl openssh-servergit clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux二 配置步骤
cd /opt/fetchlinuxsudo cp fetchlinux.conf.example fetchlinux.confsudo nano fetchlinux.confREPOSITORY_URL="http://your-mirror-url/fetchlinux"MIRROR_NAME="YourMirrorName"UPDATE_FREQUENCY="daily"sudo groupadd fetchlinuxsudo useradd -r -g fetchlinux fetchlinuxsudo chown -R fetchlinux:fetchlinux /opt/fetchlinuxsudo systemctl enable fetchlinux && sudo systemctl start fetchlinuxsudo fetchlinux --update三 常用操作
fetchlinux --helpfetchlinux download fedorasha256sum image-file,与官方校验值比对rsync -aAXv --exclude '.git' /opt/fetchlinux/ backup/--help 输出与项目文档为准。四 故障排查与注意事项
systemctl list-unit-files | grep fetchlinuxjournalctl -u fetchlinux -xe/opt/fetchlinux 及其子目录归属 fetchlinux:fetchlinux,避免因权限不足导致拉取或写入失败。fetchlinux.conf.example 中不存在 UPDATE_FREQUENCY 等键,说明该版本未使用该配置项,删除或保留默认值即可。make menuconfig)、编译与安装流程进行,勿将两者混用。