FetchDebian主要用于下载Debian软件包,而非“查找”软件。若需查找软件,可先通过apt search <关键词>命令搜索软件包名称,再使用FetchDebian下载。以下是其基本用法:
安装工具:
sudo apt update && sudo apt install fetchdebian
下载软件包:
fetchdebian <软件包名>
例:fetchdebian vimfetchdebian --source <软件包名>
例:fetchdebian --source nginx指定版本或目录:
fetchdebian <软件包名>=<版本号>
例:fetchdebian vim=2:8.2.0450-3fetchdebian -d /path/to/dir <软件包名>
例:fetchdebian -d /tmp apache2注意:FetchDebian不支持直接“查找”软件的功能,需结合apt search等命令先确认软件包名称。