It isn't Webmin that gives that message, it is apt.  That means that if you do all of your package management through apt, you can run autoremove with no trouble. 
Another interesting option would be to parse the message from apt and then offer the user a list of those packages to chose which to remove. 

- Y

On Saturday, June 16, 2012, Jamie Cameron wrote:

I suppose I could add a separate button for that ... but automatically removing packages seems dangerous, as Webmin can't know if the sysadmin is really still using them. In the case of kernel packages like this, they might still be used as GRUB options that can be selected at boot time. 

On 16/Jun/2012 19:22 Sart Cole <> wrote ..


For me "System - Software Package Updates" is Nirvana

On my Ubuntu servers, when I do my updates i get some messages like:

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-40-server linux-headers-2.6.32-35-server
  linux-headers-2.6.32-39-server linux-headers-2.6.32-32-server
  linux-headers-2.6.32-36-server linux-headers-2.6.32-21
  linux-headers-2.6.32-30 linux-headers-2.6.32-31 linux-headers-2.6.32-32
  linux-headers-2.6.32-34 linux-headers-2.6.32-29 linux-headers-2.6.32-40
  linux-headers-2.6.32-35 linux-headers-2.6.32-36 linux-headers-2.6.32-37
  linux-headers-2.6.32-38 linux-headers-2.6.32-39
  linux-headers-2.6.32-21-server linux-headers-2.6.32-37-server
  linux-headers-2.6.32-30-server linux-headers-2.6.32-34-server
  linux-headers-2.6.32-29-server linux-headers-2.6.32-38-server
Use 'apt-get autoremove' to remove them.   <------ LAST LINE *********

For me the last line is interresting

Could a option be added to "System - Software Package Updates"

to execute 'apt-get autoremove'

If this is problematic please leave "System - Software Package Updates" as is



Sent from a gizmo with a very small keyboard and hyper-active auto-correct.