Linux dpkg reconfigure all

ОПИСАНИЕ¶

dpkg-reconfigure перенастраивает уже установленные пакеты. В качестве параметров указываются одно и более названий пакетов, которые нужно перенастроить. Будут заданы вопросы о настройке, их будет больше чем при начальной установке пакета.

Если вы хотите просто посмотреть текущие настройки пакета, то используйте debconf-show(1).

ПАРАМЕТРЫ¶

-fинтерфейс, —frontend=интерфейс Выбор используемого интерфейса. Интерфейс по умолчанию может быть изменён с помощью команды:

Заметим, что если у вас настроен по умолчанию не интерактивный интерфейс, то dpkg-reconfigure будет использовать вместо него диалоговый, чтобы вы действительно смогли перенастроить пакет.

-pзначение_приоритета, —priority=значение_приоритета Задать минимальный приоритет показываемых вопросов. dpkg-reconfigure показывает вопросы с низшим приоритетом независимо, какой у вас установлен приоритет по умолчанию. Список смотрите в debconf(7). —default-priority Задать приоритет вопросов по умолчанию, а не принудительный низший приоритет. -u, —unseen-only По умолчанию задаются все вопросы, даже если на них уже есть ответы. Однако если задан этот параметр, будут показаны только вопросы, которые ещё не были заданы. —force Заставить dpkg-reconfigure перенастроить пакет, даже если он в противоречивом или нерабочем состоянии. Использовать осторожно. —no-reload Запретить dpkg-reconfigure перезагрузку шаблонов. Использовать осторожно, так как это запрещает dpkg-reconfigure восстанавливать испорченные базы данных шаблонов. Однако, это может быть полезно в ограниченной среде, где перезапись базы данных шаблонов является затратной операцией. -h, —help Показать справку по использованию.

СМОТРИТЕ ТАКЖЕ¶

АВТОР¶

Source file: dpkg-reconfigure.8.ru.gz (from debconf-i18n 1.5.71)
Source last updated: 2019-02-26T09:30:35Z
Converted to HTML: 2021-07-08T15:18:34Z

Источник

Is `dpkg-reconfigure —all` still available in 16.04?

After upgrading to 16.04, I tried to use that command, but it seems that dpkg-reconfigure (or dpkg —reconfigure ) doesn’t understand the option —all . Is it still available? If not, is there an equivalent command?

Читайте также:  Astra linux kde install

3 Answers 3

Not equivalent, but probably what you are looking for if you want to be sure, everything is at least somehow configured:

( for i in `dpkg -l | grep '^ii' | awk ''`; do echo $i; sudo dpkg-reconfigure $i; done ) 2>&1 | tee dpkg-reconfigure.log 

It reconfigures all installed packages and saves the log to dpkg-reconfigure.log file.

This doesn’t work if any of the packages have a full screen dialog pop up where you have to choose «Yes» or «No». The keyboard doesn’t select the options.

@Mike, when you run sudo dpkg-reconfigure just for the package showing the screen dialog, does the keyboard work correctly that way?

Thanks, @Mike. And when you try these: 1. (sudo dpkg-reconfigure YOUR_PACKAGE) when the command is enclosed in braces, or 2. (sudo dpkg-reconfigure YOUR_PACKAGE) 2>&1 , or 3. (sudo dpkg-reconfigure YOUR_PACKAGE) 2>&1 | tee dpkg-reconfigure.log , which of those work and which don’t?

No, dpkg-reconfigure on 16.04 (but also on 15.10) does not have the option —all any more, although it was present in 14.04 (not sure about 14.10).

You could have verified that yourself by checking the command’s manpage:

On a 16.04 (or 15.10) system, this manual page will not list an —all argument, while on 14.04 one is present.

If you don’t have those systems at hand, just read the online manpages: 16.04 — 15.10 — 14.04
(note for future readers: if one of the linked releases has reached end-of-life by the time you read this, the link will redirect to the latest release’s manpage instead of showing the old, archived version)

Читайте также:  Консоль linux создание файла

Источник

DESCRIPTION¶

dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed.

If you just want to see the current configuration of a package, see debconf-show(1) instead.

OPTIONS¶

-ftype, —frontend=type Select the frontend to use. The default frontend can be permanently changed by:

Note that if you normally have debconf set to use the noninteractive frontend, dpkg-reconfigure will use the dialog frontend instead, so you actually get to reconfigure the package.

-pvalue, —priority=value Specify the minimum priority of question that will be displayed. dpkg-reconfigure normally shows low priority questions no matter what your default priority is. See debconf(7) for a list. —default-priority Use whatever the default priority of question is, instead of forcing the priority to low. -u, —unseen-only By default, all questions are shown, even if they have already been answered. If this parameter is set though, only questions that have not yet been seen will be asked. —force Force dpkg-reconfigure to reconfigure a package even if the package is in an inconsistent or broken state. Use with caution. —no-reload Prevent dpkg-reconfigure from reloading templates. Use with caution; this will prevent dpkg-reconfigure from repairing broken templates databases. However, it may be useful in constrained environments where rewriting the templates database is expensive. -h, —help Display usage help.

SEE ALSO¶

AUTHOR¶

Источник

Оцените статью
Adblock
detector