Mickaël Bucas wrote:
> Le lun. 11 nov. 2019 à 09:35, Mick <[email protected]> a écrit :
>> On Monday, 11 November 2019 08:25:06 GMT n952162 wrote:
>>> I re-installed gentoo from the minimal boot cd (amd64), re-emerged
>>> everything from my old, saved world file, overnight, and its up and
>>> running, more or less.  Then, I wanted to see what was available and
>>> discovered, there's no /usr/portage directory! What did I do wrong?
>> Nothing.
>>
>> /usr/portage has now moved to /var/db/repos/gentoo/.
>>
>> /usr/portage/distfiles has moved to /var/cache/distfiles/
>>
>> Portage will work fine with both legacy and new fs locations.
>> --
>> Regards,
>>
>> Mick
> My two systems are currently using the old locations.
> Is there a documentation about the way to migrate to the new locations
> without breaking things ?
> The profile links comes to mind but other things are probably necessary !
>
> Has anyone already done the migration ?
> In this case do you have advices or warnings about it ?
>
> Thanks
>
> Best regards
> Mickaël Bucas
>
>


Others have posted some good info but sometimes a example that is in use
can help a lot.  Here's what is in my make.conf:


root@fireball / # cat /etc/make.conf | grep var
PORT_LOGDIR=/var/log/portage/
source /var/lib/layman/make.conf
DISTDIR="/var/cache/portage/distfiles/"
PKGDIR="/var/cache/portage/packages"
PORTDIR="/var/cache/portage/tree"
root@fireball / #


The last three are what you need to look at.  I moved mine years ago,
long before the defaults were changed and maybe even on my last rig.  At
the time, there was good logic for it being where I put it but I'm sure
others have their own ideas and you may place yours somewhere else for
yet another good reason. 

In all honesty, you can put them practically anywhere as long as portage
knows where they are and the permissions can be set correctly.  By the
way, those are portage:portage for them all as far as I know.  This is mine:


root@fireball / # ls -al /var/cache/portage/
total 160
drwxr-xr-x   5 root    root      4096 Dec 20  2012 .
drwxr-xr-x  13 root    root      4096 Nov 11 03:39 ..
drwxrwxr-x   3 portage portage 143360 Nov 11 00:07 distfiles
drwxr-xr-x 109 portage portage   4096 Nov 11 01:22 packages
drwxr-xr-x 175 portage portage   4096 Nov 10 20:09 tree
root@fireball / #




For those who question where make.conf is, it's a link to the real one. 
Saves me some typing and I don't have to remember where the thing went
too.  ;-)  Y'all know how I am.  lol 

Hope that helps, a tiny bit more anyway.  You got some good info to
start with.

Dale

:-)  :-) 

Reply via email to