Le vendredi 29 juillet 2005 à 10:29, d'après
Patrice Karatchentzeff <[EMAIL PROTECTED]> :

> > je suis certain qu'il existe une commande apt ou dpkg pour ça mais
> 
> non

En fait, il y a moyen de ne pas "purger" le paquet bash :

  - supprimer (ou renommer) le fichier de config incriminé
  - dans /etc/apt/apt.conf, mettre :
  
    DPkg {
        Options {
            "--force-confmiss";
        }
    }

  - lancer "apt-get --reinstall install bash"
  - annuler la modification faite ci-dessus dans /etc/apt/apt.conf

Toute l'astuce est dans le --force-confmiss, et ça fonctionne :

# apt-get --reinstall install bash
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/793kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
(Reading database ... 96780 files and directories currently installed.)
Preparing to replace bash 3.0-15 (using .../archives/bash_3.0-15_i386.deb) ...
Unpacking replacement bash ...
Setting up bash (3.0-15) ...

Configuration file `/etc/bash.bashrc', does not exist on system.
Installing new config file as you request.

-- 
A: Yes.                             Thomas Parmelan <[EMAIL PROTECTED]>
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting annoying in email?


-- 
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à