[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ayuda comando dpkg-reconfigure



On Mar 02 Abr 2013 08:26:29 Camaleón escribió:
> El Mon, 01 Apr 2013 16:30:10 -0600, Dennis Xiloj escribió:
> > On Lun 01 Abr 2013 07:07:08 Camaleón escribió:
> (...)
> 
> >> Para eso tendrás que consultar el manual o la documentación de lo que
> >> hace cada paquete ya que la utilidad "dpkg-reconfigure" sólo vuelve a
> >> ejecutar la rutina inicial del configuración.
> > 
> > Con una sutil diferencia, muchos paquetes inicialmente se configuran con
> > valores predefinidos, sin consultar nada.
> 
> ¿Y qué van a consultar si no hay nada y se parte de cero?
> 

Esa no es la diferencia, instalar de cero un paquete y volver a configurarlo no 
es lo mismo. El nivel de prioridad de las preguntas cambia.

> > dpkg-reconfigure en cambio consulta cada cosa, dependiendo del paquete,
> > claro.
> 
> ¿A qué te refieres? La página del manual no menciona ninguna
> diferenciación:
> 
> ***
> DESCRIPTION
> dpkg-reconfigure reconfigures packages after they have already been
> installed. Pass it the names of a package or packages to reconfigure. It
> will ask configuration questions, much like when the package was first
> installed.
> ***

La clave está en el "much like". 

Esto en realidad depende de debconf, dpkg-reconfigure sólo es una utilidad que 
hace uso de debconf. 

La cantidad de preguntas que aparecen depende del nivel de prioridad, veamos 
lo que dice el manual de debconf:

****
Priorities
       Another nice feature of debconf is that the questions it asks  you  are
       prioritized. If you don’t want to be bothered about every little thing,
       you can set up debconf to only ask you the  most  important  questions.
       On the other hand, if you are a control freak, you can make it show you
       all questions. Each question has a priority.  In  increasing  order  of
       importance:

       low    Very  trivial questions that have defaults that will work in the
              vast majority of cases.

       medium Normal questions that have reasonable defaults.

       high   Questions that don’t have a reasonable default.

       critical
              Questions that you really, really need to see (or else).

       Only questions with a priority equal to or greater  than  the  priority
       you  choose  will  be  shown  to you. You can set the priority value by
       reconfiguring debconf, or temporarily by passing  --priority=  followed
       by  the  value  to  the  dpkg-reconfigure(8)  and  dpkg-preconfigure(8)
       commands, or by setting the DEBIAN_PRIORITY environment variable.
****

Debconf siempre usa prioridad "high", a no ser que se configure de otra forma.
En cambio dpkg-reconfigure siempre usa la prioridad "low", a no ser que se le 
especifique de otra forma.

Por eso, dpkg-reconfigure en muchas ocasiones hace muchas más preguntas al 
usuario que las que se presentan normalmente en instalaciones/reinstalaciones. 

> 
> Si quieres decir que al preguntarte te toma las variables que ya están
> presentes en los archivos de configuración, pues es posible, es más,
> sería lo más lógico.
> 

Eso también lo hace.

> Saludos,

Saludos

-- 
Dennis Xiloj
Ing. Telecomunicaciones | Desarrollador Web


Reply to: