1 |
Frank Peters wrote: |
2 |
> Today, doing an "emerge -pvDu world" I get the report that no packages |
3 |
> need to be updated. |
4 |
> |
5 |
> But while checking the status of another package, I happen to execute |
6 |
> "emerge -pv rpm2targz." This then reports that the package rpm2targz |
7 |
> needs to be updated. |
8 |
> |
9 |
> Why didn't the "emerge -pvDu world" tell me about this? |
10 |
|
11 |
Most likely rpm2targz is an orphaned package. Try "emerge -p --depclean" |
12 |
and see if it's listed. Orphaned packages are not updated by an emerge |
13 |
world update since nothing is using it. |
14 |
|
15 |
> Further checking reveals that all packages that are installed on my |
16 |
> machine are contained in the /var/db/pkg directory. However, the "world" |
17 |
> file, which is located at /var/lib/portage/world, should contain the same |
18 |
> listing but it does not. I notice that some packages in /var/db/pkg |
19 |
> are not listed in /var/lib/portage/world. |
20 |
> |
21 |
> Actually, the "world" file has 257 entries, while the "/var/lib/portage/world" |
22 |
> directory contains 414 packages. |
23 |
> |
24 |
> Why has portage failed to add all packages to the "world" file? |
25 |
> Have I been doing something wrong? |
26 |
|
27 |
Your world file should only contain your top level applications. All the |
28 |
other packages are dependencies and should not be listed there. |
29 |
Dependencies can come and go as functionality is moved between packages |
30 |
and by not listing them there they can easily be removed by an "emerge |
31 |
--depclean". If you insist on listing every package in your world file |
32 |
you will end up with a bloated system, full of packages that aren't used |
33 |
for anything. |
34 |
|
35 |
> In any case, I can rebuild the world file manually to accurately |
36 |
> reflect the state my system, but, based upon this current observation, |
37 |
> portage may fail to keep it accurate in the future. |
38 |
> |
39 |
> What is going on here? |
40 |
|
41 |
Nothing is going on. Everything is perfectly fine and is working |
42 |
according to its design. :-) |
43 |
|
44 |
> |
45 |
> Frank Peters |
46 |
> |
47 |
|
48 |
/Morgan |
49 |
> |