在安装FetchDebian前,请确保你的Debian系统已更新至最新版本(避免因软件包依赖问题导致安装失败):
sudo apt update && sudo apt upgrade -y
APT是Debian默认的软件包管理工具,可直接安装经过官方验证的FetchDebian版本,适用于大多数用户。
sudo apt update
sudo apt install fetchdebian
fetchdebian --version
若APT源中没有FetchDebian,或你需要安装最新开发版,可通过以下步骤手动编译安装:
git工具克隆FetchDebian的官方GitHub仓库到本地:git clone https://github.com/fetchdebian/fetchdebian.git
cd命令切换至克隆的仓库目录:cd fetchdebian
build-essential(编译工具链)、git(版本控制)、python3-pip(Python依赖管理)等工具,运行以下命令安装:sudo apt install build-essential git python3-pip
./autogen.sh && ./configure && make && sudo make install
--version命令确认安装是否成功:fetchdebian --version
安装完成后,可通过以下命令快速体验FetchDebian的核心功能:
fetchdebian list
fetchdebian download buster amd64
fetchdebian latest amd64
sudo提升权限,避免因权限不足导致安装失败。libssl-dev、libcurl4-openssl-dev等)。以上步骤覆盖了FetchDebian在Debian系统下的主要安装方式及基础验证,可根据实际需求选择合适的方法。