Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How does emerge know which files to delete during unmerge?
Date: Thu, 14 Jul 2011 13:15:52
Message-Id: 1506975.05Gb0WO2fI@weird
In Reply to: [gentoo-user] How does emerge know which files to delete during unmerge? by Pandu Poluan
1 Pandu Poluan asks:
2
3 > How does emerge know which files to delete during unmerge?
4
5 The list of files belonging to a package can be found in
6 /var/db/pkg/<category>/<package>-<version>/CONTENTS.
7
8 > I'm asking this one because I'm in the midst of writing an ebuild, and
9 > I want to know how to tell emerge what new files has been added (if
10 > necessary)
11
12 That's not necessary, the CONTENTS file is being generated automatically
13 from the contents in /var/tmp/portage/<category>/<package>-<version>/image
14 directory. That's where packages are being installed into, and then portage
15 copies them into the live file system.
16
17 Wonko