APT: Use Different Folder for Cache

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
garda
Level 5
Level 5
Posts: 743
Joined: Sat Aug 30, 2008 2:55 am
Location: /root

APT: Use Different Folder for Cache

Postby garda » Sat Nov 22, 2008 7:49 am

My root partition is getting cramped (slightly less than a gig of free space remaining). So I'm thinking about moving all the *.deb's in /var/cache/apt/archives to another folder in another partition (/media/backup/apt) and tell apt/synaptic to permanently use it as cache folder. I know how to move the files but I still can't figure out how to make apt/synaptic always refer to this folder to check for and and store downloaded packages. Can someone please kindly tell me how to accomplish this?

Thank you in advance.


User avatar
garda
Level 5
Level 5
Posts: 743
Joined: Sat Aug 30, 2008 2:55 am
Location: /root

Re: APT: Use Different Folder for Cache

Postby garda » Sat Nov 22, 2008 12:49 pm

Thanks for the link. I discovered a symlink method too, and I've just finished writing a simple how-to about it:

How To Move APT's Archive Directory to Another Partition


Return to “Newbie Questions”

Who is online

Users browsing this forum: WharfRat, Woelfe and 11 guests