Can I change the package download location?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Can I change the package download location?

Postby hariharan022 » Sat Nov 26, 2011 1:28

Is it possible to change the location that Entropy downloads the packages to? I use a small "/" partition so it fills up pretty quickly. I tried a silly workaround (using a symlink to my other, larger partition) but Entropy corrected it the next time I downloaded an update. I could, of course, keep running "equo cleanup", but I'd like to keep the downloads around so I can use deltup/getdelta.

So I'd really like to know if I can just point Entropy to download somewhere else other than /var/lib/entropy/client.
hariharan022
Baby Hen
 
Posts: 1
Joined: Sat Nov 26, 2011 1:17

Re: Can I change the package download location?

Postby BHReach » Sat Dec 03, 2011 9:26

You can mount another partition there like this:

Code: Select all
mount  /var/lib/entropy/client /dev/sdf5


You can also mount another directory there using bind:

Code: Select all
mount --bind /var/lib/entropy/client /home/extra


The bind mounts.

Since Linux 2.4.0 it is possible to remount part of the file
hierarchy somewhere else. The call is

mount --bind olddir newdir
or shortoption
mount -B olddir newdir
or fstab entry is:
/olddir /newdir none bind

After this call the same contents is accessible in two places.
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: Can I change the package download location?

Postby Martux » Tue Oct 09, 2012 15:46

I was just asking myself the same question as the OP and find the "mount --bind" option unsatisfactory. In which configuration file is this set, where can I change it?
Martux
Simple Hen
 
Posts: 40
Joined: Thu Apr 15, 2010 18:04


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: gocool and 2 guests