Re: [gull] Installer le paquet pcmcia-cs sans que le deamon ne démarre
FLUO
fluo at linuxbourg.ch
Thu Sep 1 17:40:53 CEST 2005
Marc SCHAEFER a écrit :
>On Thu, Sep 01, 2005 at 02:59:10PM +0200, FLUO wrote:
>
>
>
>>d'opération possible. Une option d'apt-get genre
>>--(low|middle|high|critic)-priority aurait été sympa, mais peut-être que
>>trop d'options tue l'option. :-)
>>
>>
>
>Dans apt.conf(5) sont documentés des options (section HOW APT CALLS
>DPKG) que l'on peut donner lors de l'appel à dpkg. En théorie l'option
>-plow pourrait être passée.
>
>Au lieu de modifier /etc/apt/apt.conf, on peut aussi passer des
>configurations APT via l'option -o.
>
>En théorie tu as donc tout en main pour le faire.
>
>
Entre la théorie et la pratique, il y a le gouffre de la réalité.
Dans la version de man que j'ai:
Linux 29 February 2004 APT.CONF(5)
Il n'y pas grand chose comme explications sur les options ou ça ne me
saute pas aux yeux et j'aimerais savoir où acheter les lunettes qui font
de la destéganographie :-D
----------------8<----------------
HOW APT CALLS DPKG
Several configuration directives control how APT invokes dpkg(8).
These are in the DPkg section.
options
This is a list of options to pass to dpkg. The options
must be specified using the list notation and each list item is passed
as a single argument to dpkg(8).
Pre-Invoke, Post-Invoke,
This is a list of shell commands to run before/after
invoking dpkg(8). Like options this must be specified in list notation.
The commands are invoked in order using /bin/sh, should any fail APT
will abort.
Pre-Install-Pkgs
This is a list of shell commands to run before invoking
dpkg. Like options this must be specified in list notation. The
commands are invoked in order using /bin/sh, should any fail APT will
abort. APT will pass to the commands on standard input the filenames of
all .deb files it is going to install, one per line.
Version 2 of this protocol dumps more information,
including the protocol version, the APT configuration space and the
packages, files and versions being changed. Version 2 is enabled by
setting DPkg::Tools::options::cmd::Version to 2.
cmd is a command given to Pre-Install-Pkgs.
Run-Directory
APT chdirs to this directory before invoking dpkg, the
default is /.
Build-options
These options are passed to dpkg-buildpackage(1) when
compiling packages, the default is to disable signing and produce
all binaries.
---------------->8----------------
Dans le man, il parle de /usr/share/doc/apt/examples/configure-index.gz
qui parle de dpkg-preconfigure qui a l'option
----------------8<----------------
-pvaleur, --priority=valeur
Positionne la priorité la plus basse des question dont vous
vous intéressez. Toutes les question en dessous de la priorité
sélectionnée seront ignorées et les réponses par défaut seront utilisées.
---------------->8----------------
Je ne sais pas trop comment "inliner" cela:
DPkg
{
// Pre-configure all packages before they are installed using debconf.
Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low
--frontend=dialog";};
}
Dpkg::preconfigure::priority="medium" ?
En tout cas:
apt-get --reinstall -o Dpkg::preconfigure::priority="medium" install
pcmcia-cs
apt-get --reinstall -o Dpkg-preconfigure::priority="medium" install
pcmcia-cs
apt-get -V --reinstall -o DPkg::Pre-Install-Pkgs="dpkg-preconfigure
--priority=medium --frontend=dialog " install pcmcia-cs
ne donnent rien.
Sur http://www.delafond.org/traducmanfr/deb/man7/debconf.7 , il parle
d'une variable d'environnement DEBIAN_PRIORITY , mais
# DEBIAN_PRIORITY=low apt-get --reinstall install pcmcia-cs
ne donne rien
More information about the gull
mailing list