|
@@ -1569,12 +1569,16 @@ bool DoInstall(CommandLine &CmdL)
|
|
|
bool DefRemove = false;
|
|
bool DefRemove = false;
|
|
|
if (strcasecmp(CmdL.FileList[0],"remove") == 0)
|
|
if (strcasecmp(CmdL.FileList[0],"remove") == 0)
|
|
|
DefRemove = true;
|
|
DefRemove = true;
|
|
|
|
|
+ else if (strcasecmp(CmdL.FileList[0], "purge") == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ _config->Set("APT::Get::Purge", true);
|
|
|
|
|
+ DefRemove = true;
|
|
|
|
|
+ }
|
|
|
else if (strcasecmp(CmdL.FileList[0], "autoremove") == 0)
|
|
else if (strcasecmp(CmdL.FileList[0], "autoremove") == 0)
|
|
|
{
|
|
{
|
|
|
_config->Set("APT::Get::AutomaticRemove", "true");
|
|
_config->Set("APT::Get::AutomaticRemove", "true");
|
|
|
DefRemove = true;
|
|
DefRemove = true;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// new scope for the ActionGroup
|
|
// new scope for the ActionGroup
|
|
|
{
|
|
{
|
|
|
pkgDepCache::ActionGroup group(Cache);
|
|
pkgDepCache::ActionGroup group(Cache);
|
|
@@ -2620,6 +2624,7 @@ bool ShowHelp(CommandLine &CmdL)
|
|
|
" upgrade - Perform an upgrade\n"
|
|
" upgrade - Perform an upgrade\n"
|
|
|
" install - Install new packages (pkg is libc6 not libc6.deb)\n"
|
|
" install - Install new packages (pkg is libc6 not libc6.deb)\n"
|
|
|
" remove - Remove packages\n"
|
|
" remove - Remove packages\n"
|
|
|
|
|
+ " purge - Remove and purge packages\n"
|
|
|
" source - Download source archives\n"
|
|
" source - Download source archives\n"
|
|
|
" build-dep - Configure build-dependencies for source packages\n"
|
|
" build-dep - Configure build-dependencies for source packages\n"
|
|
|
" dist-upgrade - Distribution upgrade, see apt-get(8)\n"
|
|
" dist-upgrade - Distribution upgrade, see apt-get(8)\n"
|