[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#50231: apt: clean installed command?



reopen 50231
thanks

Jason Gunthorpe wrote:
> 
> The command you seek is:
> 
> apt-get -o APT::Clean-Installed=true autoclean

Unless there is something other wrong, the above does not
work as intended. Please see the following typescript:

root@pkfp20 [~] # apt-get -q install lintian
Reading Package Lists...
Building Dependency Tree...
Sorry, lintian is already the newest version
Starting
Starting 2
Done
0 packages upgraded, 0 newly installed, 0 to remove and 75 not upgraded.
root@pkfp20 [~] # ls -l /var/cache/apt/archives/lintian*
-rw-r--r--    1 root     root       158726 Sep 28 20:53 /var/cache/apt/archives/lintian_1.11.4_all.deb
root@pkfp20 [~] # apt-get -q -o APT::Clean-Installed=true autoclean
Reading Package Lists...
Building Dependency Tree...
root@pkfp20 [~] # apt-get -q -o APT::Clean-Installed=true autoclean
root@pkfp20 [~] 504# ls -l /var/cache/apt/archives/lintian*
-rw-r--r--    1 root     root       158726 Sep 28 20:53 /var/cache/apt/archives/lintian_1.11.4_all.deb

What I think it should do, is deleting lintian_1.11.4_all.deb.
Here is my apt.conf:

// Options for the downloading routines
Acquire
{
  Queue-Mode "host";       // host|access
  Retries "0";
  
  ftp
  {
    Timeout "30";
    
    /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
       is prefered if possible */
    Passive "false";
  };
  
};

/* Options you can set to see some debugging text They corrispond to names
   of classes in the source code */
Debug 
{
  pkgProblemResolver "true";
  pkgAcquire "false";
  pkgAcquire::Worker "false";
  pkgDPkgPM "false";
  
  pkgInitialize "false";   // This one will dump the configuration space
  NoLocking "false";
  Acquire::Ftp "false";    // Show ftp command traffic
}

DPkg 
{
   Options {"--force-overwrite";}
}

// Pre-configure all packages before they are installed.
// (Automatically added by debconf.)
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};



  Ulf




Reply to: