PersianGulf Asked: 2019-02-07 04:42:11 +0800 CST2019-02-07 04:42:11 +0800 CST 2019-02-07 04:42:11 +0800 CST 在apt中禁用自动清洁[重复] 772 我不想清理/var/cache/apt/archives/,我需要把我的 deb 文件留在那里。哪个 apt 选项适合我? debian apt 1 个回答 Voted Best Answer Stephen Kitt 2019-02-07T04:54:18+08:002019-02-07T04:54:18+08:00 您需要覆盖Keep-Downloaded-Packagesfor apt: Binary::apt::APT::Keep-Downloaded-Packages "1"; 在apt.conf或/etc/apt.conf.d/片段中,例如 echo 'Binary::apt::APT::Keep-Downloaded-Packages "1";' | sudo tee /etc/apt/apt.conf.d/10apt-keep-downloads (apt并没有真正“自动清理”,它不会保留下载的包。)
您需要覆盖
Keep-Downloaded-Packages
forapt
:在
apt.conf
或/etc/apt.conf.d/
片段中,例如(
apt
并没有真正“自动清理”,它不会保留下载的包。)