以下是在CentOS上使用FetchLinux的教程:
sudo yum install -y git wget curl openssh-server
。git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
。cd /opt/fetchlinux
,sudo cp fetchlinux.conf.example fetchlinux.conf
。nano
或vi
打开fetchlinux.conf
,设置仓库URL、镜像名称、更新频率等参数。sudo groupadd fetchlinux
,sudo useradd -r -g fetchlinux fetchlinux
。sudo chown -R fetchlinux:fetchlinux /opt/fetchlinux
。sudo systemctl enable fetchlinux
,sudo systemctl start fetchlinux
。fetchlinux --help
。fetchlinux download <镜像名称>
,如fetchlinux download fedora
。