Re: retrouver un fichier de config par défaut d'un package
On Fri, Jul 29, 2005 at 12:21:13PM +0200, François TOURDE wrote :
> Le 12993ième jour après Epoch,
> Thomas Parmelan écrivait:
>
> > 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 :
>
> Il devrait être possible de faire ça en un seul apt-get...
>
> apt-get -o DPkg::Options::='--force-confmiss' --reinstall install bash
>
> Mais je viens d'essayer, et ça ne marche pas... Je sais pas pourquoi
chez moi ça marche:
TuxBox:~# apt-get -o DPkg::Options::='--force-confmiss' --reinstall
install bash
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not
upgraded.
Need to get 0B/626kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 115873 files and directories currently installed.)
Preparing to replace bash 2.05b-26 (using .../bash_2.05b-26_i386.deb)
...
Unpacking replacement bash ...
Setting up bash (2.05b-26) ...
Configuration file `/etc/bash.bashrc', does not exist on system.
Installing new config file as you request.
TuxBox:~#
--
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: