amarao (amarao_san) wrote,
amarao
amarao_san

HOWTO reinstall original configuration file for package (apt, deb, dpkg)

aptitude -o DPkg::Options::="--force-confask" reinstall packagename

In theory --force-confnew should work, but it does not work, so I use --force-confask to ask for every configuration file to be replaced by original.


N.B. To see which package owns configuration file use apt-file (apt-file update; apt-file search /etc/some/conf.conf).
Tags: apt, debian, dpkg, howto, linux, ubuntu
Subscribe

  • Админская мудрость

    Когда вывод strace на башовый скрипт становится понятнее самого скрипта, граница разумности давно пройдена.

  • Rules of internet

    Rule 34. There is porn of it. Rule 35. It's used to mine cryptocurrencies.

  • CI без сервера

    А вот у меня есть такой запрос: я хочу иметь CI-подобный инструмент (задачи/автоматически вычисляемые зависимости порядка выполнения, параметры,…

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments