Results 1 to 5 of 5

Thread: updates filling hard drive?

  1. #1
    Join Date
    Dec 2007
    Location
    SW Minnesota
    Beans
    16
    Distro
    Ubuntu 14.04 Trusty Tahr

    Smile updates filling hard drive?

    Will update manager eventually fill up my hard drive? What happens after update manager downloads megabytes of files and installs them?
    Whole-roasted flavor

  2. #2
    Join Date
    Apr 2008
    Location
    Montréal, Québec
    Beans
    90
    Distro
    Ubuntu

    Re: updates filling hard drive?

    Nah.

    Three things happen :

    First, the update itself will replace the files on your computer and not just cumullate all the verions. Sometimes, this adds a little space, sometimes, it's actually smaller.

    Second : The updating process involves "packages". Your package manager keeps a cache of what you download. This does take a little room, but old packages eventually get flushed. There is also a size limit.
    If you look at the file /etc/apt.conf.d/20archive you'll see a parameter called "APT::Archives::MaxSize" you can set that to how big you allow your cache to grow.

    Third : There is one exception : The kernel packages (their name usually start with "linux-") don't get flushed so that you can revert to old versions should the new ones not work. Even if these updates don'happen very often, it does, indeed, accumulate over time. If, like me, you have a very small boot partition, you might want, every once in a while, go and uninstall the very old versions.

    WARNING : Do not uninstall the kernel you are currently running !!! (I'm pretty sure most package tools are going to warn you if you do so, but still, better safe than sorry). If you want to know what you are running, open a command line and type "uname -a"

    have fun !

  3. #3
    Join Date
    May 2010
    Beans
    39

    Re: updates filling hard drive?

    there is a way to purge old kernels:



    Kernel old purge , dry run :
    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove


    Actual remove Old Kernel:
    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge


    Of course one can use the Synaptic for same thing.



    Please wait for confirmations from more established users before actually trying it out .

  4. #4
    Join Date
    Dec 2007
    Location
    SW Minnesota
    Beans
    16
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: updates filling hard drive?

    Thanks for the lucid, to-the-point replies. Ubuntu 12.04 is a great OS, and the automatic updates seem to be keeping it that way.
    Whole-roasted flavor

  5. #5
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: updates filling hard drive?

    You can also clean the apt-get cache
    Code:
    sudo apt-get clean
    On system with smaller hard disks (e.g. netbooks with 8GB SSD), this is advisable.
    If you don't make backups of your important data, your data is obviously not important to you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •