1 |
On Saturday 09 September 2006 05:33, Dale wrote: |
2 |
> What would be a good way of finding files that were not deleted when |
3 |
> something was upgraded/unmerged? I thought depclean was different from |
4 |
> what I wanted to say but it got the ball rolling. |
5 |
|
6 |
Depclean is to remove packages that are no longer in or a dependency of |
7 |
something in your world file. |
8 |
|
9 |
> Last part, zoooooooom, right over my head I think. Let's see if I get |
10 |
> this right. emerge put a file in there, something, me maybe, changed |
11 |
> something so it leaves it alone. That right?? |
12 |
|
13 |
Yep. |
14 |
|
15 |
So just to illustrate: |
16 |
|
17 |
# touch /usr/share/vim/vimfiles/plugin/bugsummary.vim |
18 |
|
19 |
# emerge --unmerge -va gentoo-syntax |
20 |
>>> These are the packages that would be unmerged: |
21 |
[SNIP] |
22 |
>>> Unmerging app-vim/gentoo-syntax-20051221-r1... |
23 |
No package files given... Grabbing a set. |
24 |
[SNIP] |
25 |
<<< obj /usr/share/vim/vimfiles/plugin/newinitd.vim |
26 |
<<< obj /usr/share/vim/vimfiles/plugin/neweselect.vim |
27 |
<<< obj /usr/share/vim/vimfiles/plugin/newebuild.vim |
28 |
<<< obj /usr/share/vim/vimfiles/plugin/gentoo-common.vim |
29 |
--- !mtime obj /usr/share/vim/vimfiles/plugin/bugsummary.vim |
30 |
[SNIP] |
31 |
--- !empty dir /usr/share/vim |
32 |
<<< dir /usr/share/doc/gentoo-syntax-20051221-r1 |
33 |
|
34 |
All the things that has a "<<<" are actually removed. The things with "---" |
35 |
are not removed for the reason given in the following column. Since I |
36 |
touch'ed /usr/share/vim/vimfiles/plugin/bugsummary.vim it wasn't removed |
37 |
with the reason: "!mtime" which means the last modified time has been altered |
38 |
after it was installed. The reason "!empty" is the reason for dirs which |
39 |
aren't empty (others packages have installed files in the same dirs...). |
40 |
|
41 |
After the unmerge is complete the only way to know is that the files no longer |
42 |
belong to any package. Of course when I remerge this package in a few minutes |
43 |
the files will be overwritten and the mtime will be correct again... |
44 |
|
45 |
Hope that makes it clear. |
46 |
|
47 |
-- |
48 |
Bo Andresen |