Re: retrouver un fichier de config par défaut d'un package
On Fri, Jul 29, 2005 at 11:17:08AM +0200, Thomas Parmelan wrote :
> Le vendredi 29 juillet 2005 à 10:29, d'après
> Patrice Karatchentzeff <patrice.karatchentzeff@gmail.com> :
>
> > > 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.
>
Super merci!!!
--
Brice Méalier
mealier_brice@yahoo.fr
Linux user nb. 372699
Debian Sarge
-----
"Unix IS user friendly, it is just selective about who his friends are"
Reply to: