3

I tried this command, but nothing changed. How can I do it?

sudo ln -s /media/myFlash/temp  /var/cache/apt/archives
5

I am not sure if you want to make the changes permanent. The solution differs between temporal and permanent.

If you want to make them permanent, try:

cd /new/cache/destinantion
mkdir partial
vim /etc/apt/apt.conf

Then add this:

dir::cache::archives /new/cache/destinantion;

For the symlink make sure you have copied and/or moved the archives from /media/myFlash/temp to /var/cache/apt/archives before creating the symlink. The creation of the symbolic will delete your current cache.

Here is a good post I found that can help you: Change an apt cache folder location

2
  • ty , it works . – Shervin Gharib Dec 15 '13 at 21:50
  • 1
    Works! Please edit the string "moved the archives from /media/myFlash/temp to /var/cache/apt/archives" to "moved the archives from /var/cache/apt/archives to /media/myFlash/temp" – eifersucht Dec 12 '16 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.