1 |
On Mon, Jan 06, 2003 at 01:41:08AM -0000, Dhruba Bandopadhyay wrote: |
2 |
> (1) It is not completely clear which files should be deleted and which |
3 |
> overwritten. |
4 |
|
5 |
Those that you didn't alter may probably be overwritten by the newer version, |
6 |
the others would probably be better left alone, but it's still a good idea to |
7 |
see the new file, for instance if there are new options in the package. |
8 |
|
9 |
I'm glad that Portage doesn't touch my configfiles. I should be prompted (as |
10 |
I am) if there are new configfiles available, and I should be asked if I want |
11 |
to use them or not. So for me Portage is working fine. |
12 |
|
13 |
> (3) There are no guidelines on the use of etc-update. Although, |
14 |
> documentation does warn that etc-update can be dangerous and must be used |
15 |
> with care, how is the non-expert user to interpret this advice and how |
16 |
> much does it really tell him about the use of it? |
17 |
|
18 |
[... From the FAQ ...] |
19 |
|
20 |
When updating a package using emerge or ebuild, how do I avoid clobbering my |
21 |
config files? |
22 |
|
23 |
Portage now includes config file management support by default. Type emerge |
24 |
--help config for more details. The (overly) simple answer is that if a |
25 |
package installs foo somewhere under /etc, and another foo already exists |
26 |
there, then the new foo will instead be renamed to ._cfgxxxx_foo in that |
27 |
directory. A useful tool for examining and updating any protected config |
28 |
files is etc-update, currently obtained by emerge app-admin/gentoolkit. |
29 |
|
30 |
[... From the Portage Manual ...] |
31 |
|
32 |
* etc-update : shell script using vim to assist with the merging of /etc |
33 |
files (can be dangerous if used incorrectly) |
34 |
|
35 |
If I am not mistaken, these are the only documents that mention etc-update. |
36 |
In the Portage Manual is said that it can be dangerous if used incorrectly. |
37 |
This is true, for instace when etc-update wants to use a new /etc/fstab |
38 |
(which has occured frequently) and the user blindly accepts, he will be |
39 |
placed with an illegal /etc/fstab. |
40 |
|
41 |
However, I do believe that the person in question should be held liable for |
42 |
his own actions. If he doesn't read what etc-update sais, he shouldn't use |
43 |
it. |
44 |
|
45 |
|
46 |
Perhaps a nice feature would be that etc-update sais if the original file has |
47 |
been altered by the user or not, thus helping the user in his decision wheter |
48 |
or not to use the new configfile. |
49 |
|
50 |
> (4) If files are not sorted they stay in their locations indefinitely, |
51 |
> increase in number and portage warns the user about them on its every use. |
52 |
|
53 |
Don't tell me you want to disable the warning? There are occasions that ppl |
54 |
just can't easily use etc-update after an emerge -pu world. For instance |
55 |
systems that monitor the state of the important files with AIDE: they need to |
56 |
do a lot more than just accept or decline etc-update proposals. |
57 |
|
58 |
Or you just don't have the time for your configfiles right now; you surely |
59 |
don't want to forget that there are new configfiles available? |
60 |
|
61 |
> (5) Even if one does see differences in older versions and new ones how |
62 |
> does one tell if these differences should be preserved or discarded? |
63 |
|
64 |
Lines with a "-" in front are removed, those with "+" in front are added. So |
65 |
what you see are the differences between the old and the new configfile. |
66 |
|
67 |
> (6) If errors or difficulties result how does one rollback? |
68 |
|
69 |
Not. This could be handy, but also makes the system bigger. Not all ppl want |
70 |
a Portage-handled rollback (I don't), since they have their own way of doing |
71 |
things (it's called backupsà :). |
72 |
|
73 |
> I can speak from experience about suffering from problems. For instance |
74 |
> today, despite sorting files as carefully as I could, gdm won't load |
75 |
> anymore and shows no error messages since gdm files were overwritten |
76 |
> (luckily I use xdm) and also fonts in gnome related applications are now |
77 |
> huge and different because font locations were changed. Now, I did look |
78 |
> at the content of these files before I replaced the older versions but how |
79 |
> is one to know beforehand what is going to cause issues? |
80 |
|
81 |
Welcome to the wonderfull world of learning. |
82 |
|
83 |
Wkr, |
84 |
Sven Vermeulen |
85 |
-- |
86 |
Fighting for peace is like fucking for virginity. |