Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
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:13:40
Message-Id: 1310649103.20424.0@numa-i
In Reply to: [gentoo-user] How does emerge know which files to delete during unmerge? by Pandu Poluan
1 On 07/14/2011 02:56:46 PM, Pandu Poluan wrote:
2 > Another question:
3 >
4 > How does emerge know which files to delete during unmerge?
5 >
6 > I'm asking this one because I'm in the midst of writing an ebuild,
7 > and
8 > I want to know how to tell emerge what new files has been added (if
9 > necessary)
10 >
11
12 emerge saves a list of all installed files. This is independent of any
13 ebuild file. It works even if the installed version doesn't have a
14 corresponding ebuild anymore.
15
16 You can try qlist <package name> to see which files belong to that
17 package and qfile <some fully qualified file name> to see the package
18 this file belongs to.
19 Every thing is fully automatic. That's one of the biggest advantages of
20 Gentoo in comparison to LFS.
21
22 Helmut.