Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running Linux Mint 9 from an 8G USB stick and it's nearly full with installed packages. How can I move some (but not all) packages to my internal drive?

share|improve this question

migrated from askubuntu.com Apr 4 '11 at 12:38

This question came from our site for Ubuntu users and developers.

    
Have you tried to clean up apt's package cache? /var/cache/apt caches the deb-files for the packages you install, and it can get quite big. (On this machine it is 2.7GB). –  Egil Apr 4 '11 at 12:18
    
To simply do what @Egil suggests, run apt-get clean –  shellholic Apr 4 '11 at 13:00
    
This question is unclear. What are you trying to do, exactly? Move your root installation, setup a local apt repository, or just clean out cached packages? –  Faheem Mitha Apr 4 '11 at 14:08
    
sorry. I was having trouble writing comments when this question was in the askubuntu forum. Thank you Egil, I will definitely do that. That will help. The reason this question is vague is because I do not know how to ask it. I want my applications to all reside on a separate drive. –  Joshua Robison Apr 4 '11 at 14:24
    
@Joshua: If you want anyone to be notified of your mail, then stick a @user in front. If you want part of your system moved to another drive, you'll have to be a little more specific about what you are trying to do. This is usually straightforward except for the boot process. –  Faheem Mitha Apr 4 '11 at 15:35

1 Answer 1

If you have another disk mounted at /mnt/another_disk, you can do this:

mkdir /mnt/another_disk/apt-cache
mv /var/cache/apt/archives/* /mnt/another_disk/apt-cache
ln -s /mnt/another_disk/apt-cache /var/cache/apt/archives

Sometimes you can try apt-get autoclean command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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