1 |
On Tue, 01 Oct 2013 08:35:16 -0400 |
2 |
Tanstaafl <tanstaafl@×××××××××××.org> wrote: |
3 |
|
4 |
> On 2013-09-30 3:14 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
5 |
> > On 30/09/2013 19:25, Volker Armin Hemmann wrote: |
6 |
> >> Alan wrote: |
7 |
> >>> Charles wrote: |
8 |
> >>>> But... is /usr/portage the default/recommended location? If so, |
9 |
> >>>> then I don't think I want to move it - I generally never change |
10 |
> >>>> defaults unless there is a very good reason to do so. |
11 |
> |
12 |
> >>> It's /var/portage for new installs. If you want it to be |
13 |
> >>> somewhere else, just move it and adjust make.conf |
14 |
> |
15 |
> >> really? so when I moved PORTDIR to /var/portage I was ahead of the |
16 |
> >> rest? Wow... |
17 |
> |
18 |
> > You were ahead of me for sure :-) |
19 |
> |
20 |
> So... if the change from /usr/portage to /var/portage was official, |
21 |
> is there any (official) documentation on precisely how to move it? |
22 |
> |
23 |
> Hmmm.... more importantly, when did this change occur? Is it possibly |
24 |
> tied to portage 2.2? The reason I ask is, I'm still on 2.1, and man |
25 |
> portage still has references to: |
26 |
> |
27 |
> /usr/portage/sets |
28 |
> /usr/portage/metadata |
29 |
> /usr/portage/profiles |
30 |
> /usr/share/portage/config |
31 |
> |
32 |
> and man make.conf still says: |
33 |
> |
34 |
> PKGDIR = [path] <snip> |
35 |
> Defaults to /usr/portage/packages. |
36 |
> |
37 |
> and most importantly: |
38 |
> |
39 |
> PORTDIR = [path] <snip> |
40 |
> Defaults to /usr/portage. |
41 |
> |
42 |
> So... are you quite certain that this default has in fact changed? |
43 |
> |
44 |
> I know that it is probably trivial, but I like to read official docs |
45 |
> for things like this... |
46 |
> |
47 |
> Thanks again... |
48 |
> |
49 |
|
50 |
Hi, |
51 |
I haven't kept up with documentation but moving portage is |
52 |
fairly straightforward. |
53 |
Here's how I'd do it: |
54 |
|
55 |
mkdir /var/portage |
56 |
chown portage:portage /var/portage |
57 |
rsync -aHx /usr/portage/ /var/portage/ #add flags if using ext attr. |
58 |
|
59 |
edit /etc/make.conf |
60 |
PORTDIR="/var/portage" |
61 |
DISTDIR=${PORTDIR}/distfiles |
62 |
PKGDIR=${PORTDIR}/packages |
63 |
|
64 |
edit /etc/portage/repos.conf/* accordingly |
65 |
|
66 |
change default profile with eselect profile list |
67 |
or manually link /etc/make.profile to the correct path |
68 |
|
69 |
emerge --sync |
70 |
|
71 |
when everything is working ok clean /usr/portage |
72 |
|
73 |
Hope i was helpful, |
74 |
netixen |