[Aptitude-devel] Bug#664576: don't ask if there is nothing to do

jidanni at jidanni.org jidanni at jidanni.org
Sun Mar 18 23:40:15 UTC 2012


Package: aptitude
Version: 0.6.5-1
Severity: wishlist

I wanted to make a script that would not bother me if there was noting
to do. And if there was, then prompt as usual.

I have got what I want -- but not without a price:


# aptitude purge ~o~nlinux-doc
# aptitude -o Aptitude::CmdLine::Always-Prompt=false purge ~o~nlinux-doc
set -- `aptitude search ~o~nlinux-doc`
if test $# -gt 0
then
    aptitude purge ~o~nlinux-doc
fi

By the way here is my conf;
APT::Cache::AllVersions false;
APT::Clean-Installed false;
APT::Get::Purge true;
APT::Install-Recommends false;
Aptitude::CmdLine::Always-Prompt true;
Aptitude::Purge-Unused true;
Aptitude::CmdLine::Show-Why true; //511230 at bugs.debian.org
Aptitude::CmdLine::Show-Deps true; //587582 at bugs.debian.org
Acquire::http::No-Cache true; //564829





More information about the Aptitude-devel mailing list