Gentoo Archives: gentoo-user

From: Daniel Pielmeier <billie@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] world symlinking
Date: Tue, 02 Nov 2010 07:09:20
Message-Id: AANLkTimbsucR+OgCvSYQFPSv8YCyFv0ZrKco6mLLbntU@mail.gmail.com
In Reply to: [gentoo-user] world symlinking by Gary Golden
1 2010/11/2 Gary Golden <mail@××××××××××.me>:
2 > Hi, list.
3 > I keep changes of my /etc with git and I would like to include
4 > /var/lib/portage/world file into the repository.
5 >
6 > Can I safely do:
7 >
8 > mv /var/lib/portage/world /etc/portage
9 > ln -s /etc/portage /var/lib/portage/world
10 >
11 > Will portage update handle it properly?
12 > Using hardlinks seems to be more cleaner way, but for some reason I
13 > don't want to use it for this task.
14
15 It should work. Just try it out, but make a copy of your world file
16 before. Should be easy to switch back if anything fails.
17
18 Afaik, the creation of the symbolic link should look like this:
19 ln -s /etc/portage/world /var/lib/portage/world
20
21 --
22 Daniel Pielmeier

Replies

Subject Author
Re: [gentoo-user] world symlinking Gary Golden <mail@××××××××××.me>