Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.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:16:49
Message-Id: 1310649223.376119.3.camel@localhost.localdomain
In Reply to: [gentoo-user] How does emerge know which files to delete during unmerge? by Pandu Poluan
1 On Thursday, July 14 at 19:56 (+0700), Pandu Poluan said:
2
3 > Another question:
4 >
5 > How does emerge know which files to delete during unmerge?
6 >
7 > I'm asking this one because I'm in the midst of writing an ebuild, and
8 > I want to know how to tell emerge what new files has been added (if
9 > necessary)
10
11 You don't tell emerge. Emerge already knows. It keeps a manifest in
12 the package database (/var/db/pkg) and that's how it knows what to
13 delete. Most package managers work similarly.