要自定義aptitude的配置文件,可以按照以下步驟在Ubuntu上進(jìn)行操作:
sudo nano /etc/apt/apt.conf
APT::APTITUDE::CmdLine::Update-PkgLists "0";
APT::APTITUDE::CmdLine::Upgrade "0";
APT::APTITUDE::CmdLine::Safe "0";
APT::APTITUDE::CmdLine::Safe-Upgrade "0";
APT::APTITUDE::CmdLine::Remove-Unused "0";
sudo aptitude update
通過(guò)這些步驟,您可以在Ubuntu上自定義aptitude的配置文件以滿足特定的需求。