1 |
Bo Ørsted Andresen wrote: |
2 |
> On Saturday 09 September 2006 05:33, Dale wrote: |
3 |
> |
4 |
>> What would be a good way of finding files that were not deleted when |
5 |
>> something was upgraded/unmerged? I thought depclean was different from |
6 |
>> what I wanted to say but it got the ball rolling. |
7 |
>> |
8 |
> |
9 |
> Depclean is to remove packages that are no longer in or a dependency of |
10 |
> something in your world file. |
11 |
> |
12 |
> |
13 |
>> Last part, zoooooooom, right over my head I think. Let's see if I get |
14 |
>> this right. emerge put a file in there, something, me maybe, changed |
15 |
>> something so it leaves it alone. That right?? |
16 |
>> |
17 |
> |
18 |
> Yep. |
19 |
> |
20 |
> So just to illustrate: |
21 |
> |
22 |
> # touch /usr/share/vim/vimfiles/plugin/bugsummary.vim |
23 |
> |
24 |
> # emerge --unmerge -va gentoo-syntax |
25 |
> |
26 |
>>>> These are the packages that would be unmerged: |
27 |
>>>> |
28 |
> [SNIP] |
29 |
> |
30 |
>>>> Unmerging app-vim/gentoo-syntax-20051221-r1... |
31 |
>>>> |
32 |
> No package files given... Grabbing a set. |
33 |
> [SNIP] |
34 |
> <<< obj /usr/share/vim/vimfiles/plugin/newinitd.vim |
35 |
> <<< obj /usr/share/vim/vimfiles/plugin/neweselect.vim |
36 |
> <<< obj /usr/share/vim/vimfiles/plugin/newebuild.vim |
37 |
> <<< obj /usr/share/vim/vimfiles/plugin/gentoo-common.vim |
38 |
> --- !mtime obj /usr/share/vim/vimfiles/plugin/bugsummary.vim |
39 |
> [SNIP] |
40 |
> --- !empty dir /usr/share/vim |
41 |
> <<< dir /usr/share/doc/gentoo-syntax-20051221-r1 |
42 |
> |
43 |
> All the things that has a "<<<" are actually removed. The things with "---" |
44 |
> are not removed for the reason given in the following column. Since I |
45 |
> touch'ed /usr/share/vim/vimfiles/plugin/bugsummary.vim it wasn't removed |
46 |
> with the reason: "!mtime" which means the last modified time has been altered |
47 |
> after it was installed. The reason "!empty" is the reason for dirs which |
48 |
> aren't empty (others packages have installed files in the same dirs...). |
49 |
> |
50 |
> After the unmerge is complete the only way to know is that the files no longer |
51 |
> belong to any package. Of course when I remerge this package in a few minutes |
52 |
> the files will be overwritten and the mtime will be correct again... |
53 |
> |
54 |
> Hope that makes it clear. |
55 |
> |
56 |
> |
57 |
So basically if I mess with a file and then unmerge the program it |
58 |
belongs to, I have to remember which ones I messed with and delete them |
59 |
myself? If I unmerge this in a console and can't read all the "-- |
60 |
!mtime" as they roll by, I'm stuck with orphan files on my rig? This |
61 |
needs a fix but I wouldn't want to be the dev to figure this one out. ;-) |
62 |
|
63 |
Dale |
64 |
|
65 |
:-) :-) |
66 |
-- |
67 |
gentoo-user@g.o mailing list |