← Back to team overview

lubuntu-desktop team mailing list archive

Re: system requirements (periodic disk cleanup)

 

On Mon, 2 May 2011, Jean-Pierre Vidal Piesset <jpxsat@xxxxxxxxx> wrote:

> is there a way to launch periodiquelly "sudo apt-get clean" on lubuntu?

cron exists on Lubuntu, so yes.  

Do you want to know what the way *is*, too? :)  Just do something like:

  echo "apt-get clean" |sudo tee /etc/cron.weekly/aptclean
  sudo chmod 0755 /etc/cron.weekly/aptclean

and your system will run that command (as root) once a week (at 06:47
AM on Sundays, if you really need to know the details!).  Of course,
you must make sure the system is powered on and running Lubuntu at that
time every Sunday for this to be useful.

> also why it keep all the kernels? that's tones of hard disk space for a
> little hard drive... maybe lubuntu should have a way to do a little 
> cleaning :)

Deleting old kernels is more controversial, because you cannot be
100% sure the latest installed kernel works perfectly on your machine.
There are some little shell scripts around that do this, which you could
add to /etc/cron.monthly/ if you wish.

Neither of these are Lubuntu-specific, incidentally.

Jonathan
-- 
Jonathan Marsden <jmarsden@xxxxxxxxxxx>


References