温馨提示×

如何安装FetchLinux

小樊
57
2025-08-13 17:43:20
栏目: 智能运维

安装FetchLinux主要有以下两种方法:

  • 使用包管理器安装
    • Debian/Ubuntu系统:更新包列表sudo apt update,然后安装sudo apt install fetchlinux
    • Fedora系统:更新包列表sudo dnf update,接着安装sudo dnf install fetchlinux
    • Arch Linux系统:更新包列表sudo pacman -Syu,再安装sudo pacman -S fetchlinux
  • 从GitHub克隆安装
    • 克隆仓库:git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
    • 进入目录并复制配置文件:cd /opt/fetchlinuxsudo cp fetchlinux.conf.example fetchlinux.conf
    • 创建用户和组:sudo groupadd fetchlinuxsudo useradd -r -g fetchlinux fetchlinux
    • 更改目录权限:sudo chown -R fetchlinux:fetchlinux /opt/fetchlinux
    • 启动服务:sudo systemctl enable fetchlinuxsudo systemctl start fetchlinux

0