[PLUTO-ildp] Traduzione collaborativa 4 del Debian Maintenance HOWTO ... :-)

Hugh Hartmann hhartmann a fastwebnet.it
Sab 16 Nov 2013 15:26:57 CET


Un saluto "partecipativo" si estende a tutti i partecipanti alla lista 
.... :-)

Io non lo dico, però se ci fosse un po' di partecipazione in più alla 
traduzione collaborativa sarebbe meglio, io però non l'ho detto ... 
diciamo che l'ho "pensato" ad "alta voce" ... :-))

Di seguito riporto il contenuto del file file alternatives.sgml 
(capitolo alternatives dell'HOWTO), per chi volesse tradurlo ... come si 
può notare, anche questo è un file un po' più grande ... :-)


alternatives.sgml

[...]

<chapt id=alternatives>Alternatives

<p>
Debian has developed a mechanism that will provide you with an
interface to install several packages that provide the same
functionality.  For example take the program <prgn>vi</prgn>.  There
is not a single vi package but half a dozen of them.  All can be
installed to provide <prgn>/usr/bin/vi</prgn>, the admin decides which 
of them will actually provide this common interface.

<p>
This is achieved by making <file>/usr/bin/vi</file> a symbolic link to
<file>/etc/alternatives/vi</file>.  That file again is a link, which
gets automatically created, to the real binary.  Along with the
program there is a so called slave-link for the manpage.

<p>
This mechanism is controlled by the <prgn>update-alternatives</prgn>
program.  It creates, removes, maintains and displays information
about the symbolic links comprising the Debian alternatives system.
For each major link (contrary to a slave-link) can be configured with
a priority which will control which package actually provides the
second link.

<sect>Display Alternatives

<p>
to find out which alternatives exist on your system, you have to list
the directory contents of <file>/etc/alternatives</file>.  You'll find
a lot of links in there.  Some of them are slave links that you can
ignore for the following actions.  Slave links are often manpages,
thus the links <file>foo.1.gz</file>.

<p>
If you know the link name you can issue a direct query to the system
by using <prgn>update-alternative --display vi</prgn>.  The name
<file>vi</file> is just a common example.  The program will display
all affected packages and also display the choosen one.

</sect>

<sect>Configure Alternative

<p>
The program <prgn>update-alternative</prgn> provides a simple but
sufficient configuration frontend.  Simply call it as
<prgn>update-alternatives --config foo</prgn> where foo is a major
link from <file>/etc/alternatives</file>.

</sect>

<sect>Add Alternative

<p>
A new alternative is set with <prgn>--install</prgn> as argument to
<prgn>update-alternatives</prgn>.  Each alternative has a priority
that controls the creation of the link.  The higher the priority the
more probably this alternative will be used.  Since you can change an
alternative by re-installing it you can also change the priority at
the same time.  As an example, the following code forces vi to be a
link to vim (using priority 900).  For details please refer to the
manpage for that program.

<p>
<example>
   update-alternatives --install /usr/bin/vi vi /usr/bin/vim 900 \
    --slave /usr/share/man/vi.1.gz vi.1.gz /usr/share/man/vim.1.gz
</example>

</sect>

<sect>Remove Alternative

<p>
An alternative is removed with:

<p>
<example>
   update-alternatives --remove vi /usr/bin/vim
</example>

</sect>

</chapt>

[...]


Pur essendo un po' datato, questo HOWTO è sempre utile come 
documentazione di Debian e anche per approfondire certi meccanismi che, 
anche se in modo un po' differente, si trovano in tutte le distribuzioni 
di Linux.


Au Revoire
Hugh Hartmann


-- 
CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons 
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content here of is 
prohibited. Please return it immediately to the sender and delete
the message.

         Thank you





Maggiori informazioni sulla lista pluto-ildp