On Mon, Nov 5, 2012 at 10:52 PM, Harry Mills <span dir="ltr"><<a href="mailto:harry@haeg.in" target="_blank">harry@haeg.in</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
You probably need to do the following:<div><br></div><div>mkdir /home/apt</div><div>cp -a /var/cache/apt /home/apt</div><div>rmdir /var/cache/apt</div><div>ln -s /home/apt /var/cache/apt</div><div><br></div><div>This moves the stuff to the new place, deletes the now empty directory and links the new stuff so it appears to be in /var/cache/apt as expected by the package manager.<br clear="all">
</div></blockquote><div><br></div><div>If /var/cache/apt still has files in it rmdir may complain.  So better may be:</div><div><br></div><div>rm -f /var/cache/apt<br></div><div><br></div><div>Also cp -a may slower than just moving the files with:</div>
<div><br></div><div> mv /var/cache/apt /home/</div><div><br></div><div>which will move the entire apt directory to the /home/ location. Then rm -f will not be necessary as the directory will have already been moved to the new location.</div>
<div><br></div></div>-- <br>mike c<br>
</div>