Tags

, , , , ,


To change apt cache permanently :
cd /new/cache/is/here
mkdir partial
nano /etc/apt/apt.conf

 

Add this line:
 

dir::cache::archives /new/cache/is/here
 

To change temporarily:
sudo apt-get -o dir::cache::archives="/new/cache/is/here" install packagename
 

Or you can create a symbolic link (it will DELETE your current cache)
 

sudo rm -rf /var/cache/apt/archives
sudo ln -s /path/to/new/cache /var/cache/apt/archives

 
 
source: ubuntuforum.org