Установка DEB-пакетов в Ubuntu

Файлы формата DEB представляют собой специальный пакет, предназначенный для установки программ в Linux. Использование такого метода инсталляции софта будет полезно тогда, когда невозможно получить доступ к официальному репозиторию (хранилищу) или оно просто отсутствует. Методов выполнения поставленной задачи существует несколько, каждый из них будет максимально полезен определенным пользователям. Давайте разберем все способы для операционной системы Ubuntu, а вы, исходя из своей ситуации, выберите наиболее оптимальный вариант.
Устанавливаем DEB-пакеты в Ubuntu
Сразу хочется отметить, что такой метод инсталляции имеет один существенный недостаток — приложение не будет автоматически обновляться и вы не получите уведомлений о вышедшей новой версии, поэтому придется регулярно просматривать эту информацию на официальном сайте разработчика. Каждый рассмотренный ниже метод достаточно простой и не требует от пользователей дополнительных знаний или навыков, просто следуйте приведенным инструкциям и все обязательно получится.
Способ 1: Использование браузера
Если у вас на компьютере еще не имеется скачанного пакета, но присутствует активное подключение к интернету, загрузить его и сразу же запустить будет очень легко. В Ubuntu по умолчанию присутствует веб-обозреватель Mozilla Firefox, давайте же рассмотрим весь процесс на этом примере.

-
Запустите браузер из меню или панели задач и перейдите на необходимый сайт, где следует отыскать рекомендованный пакет формата DEB. Кликните на соответствующую кнопку для начала скачивания.
Преимущество этого способа в том, что после инсталляции на компьютере не остается лишних файлов — DEB-пакет сразу же удаляется. Однако не всегда у пользователя имеется доступ к интернету, поэтому советуем ознакомиться со следующими способами.
Способ 2: Стандартный установщик приложений
Оболочка Ubuntu имеет встроенный компонент, позволяющий устанавливать приложения, запакованные в DEB-пакеты. Он может пригодиться в том случае, когда сама программа находится на съемном накопителе или в локальном хранилище.
- Запустите «Менеджер пакетов» и воспользуйтесь панелью навигации слева, чтобы перейти в папку хранения софта.

- Нажмите правой кнопкой мыши по программе и выберите пункт «Открыть в Установка приложений».

- Проведите процедуру инсталляции аналогичную той, которую мы рассмотрели в предыдущем способе.

Если во время установки возникли какие-либо ошибки, придется задать параметр выполнения для необходимого пакета, а делается это буквально в несколько кликов:
- Щелкните на файле ПКМ и кликните на «Свойства».

- Переместитесь во вкладку «Права» и отметьте галочкой пункт «Разрешить выполнение файла как программы».

- Повторите установку.
Возможности рассмотренного стандартного средства достаточно урезаны, что не устраивает определенную категорию пользователей. Поэтому специально им мы советуем обратиться к следующим методам.
Способ 3: Утилита GDebi
Если так случилось, что стандартная программа-установщик не функционирует или она вам попросту не подходит, придется устанавливать дополнительное обеспечение, чтобы провести аналогичную процедуру распаковки пакетов DEB. Наиболее оптимальным решением будет добавление утилиты GDebi в Убунту, а делается это двумя методами.
- Сначала разберемся, как сделать это черед «Терминал». Откройте меню и запустите консоль либо щелкните ПКМ по рабочему столу и выберите соответствующий пункт.

- Введите команду sudo apt install gdebi и нажмите на Enter.

- Впишите пароль для учетной записи (символы при вводе отображаться не будут).

- Подтвердите операцию по изменению дискового пространства из-за добавления новой программы, выбрав вариант Д.

- Когда GDebi будет добавлен, появится строка для ввода, можно закрыть консоль.

Добавление GDebi доступно и через Менеджер приложений, что выполняется следующим образом:
- Откройте меню и запустите «Менеджер приложений».

- Нажмите на кнопку поиска, введите нужное название и откройте страницу утилиты.

- Щелкните на кнопку «Установить».

На этом добавление дополнений закончено, осталось только выбрать необходимую утилиту для распаковки DEB-пакета:
- Перейдите в папку с файлом, щелкните по нему ПКМ и во всплывающем меню найдите «Открыть в другом приложении».

- Из списка рекомендованных приложений выберите GDebi, дважды кликнув по строке ЛКМ.

- Нажмите на кнопку для начала установки, по окончании которой вы увидите новые функции — «Переустановить пакет» и «Удалить пакет».

Способ 4: «Терминал»
Иногда бывает проще задействовать привычную консоль, введя всего одну команду для запуска инсталляции, нежели бродить по папкам и использовать дополнительные программы. Вы можете сами убедиться, что в этом методе нет ничего сложного, ознакомившись с инструкцией ниже.
- Перейдите в меню и откройте «Терминал».

- Если вы не знаете наизусть путь к требуемому файлу, откройте его через менеджер и перейдите в «Свойства».

- Здесь вас интересует пункт «Родительская папка». Запомните или скопируйте путь и возвращайтесь к консоли.

- Использоваться будет консольная утилита DPKG, поэтому нужно ввести только одну команду sudo dpkg -i /home/user/Программы/name.deb , где home — домашняя директория, user — имя пользователя, программы — папка с сохраненным файлом, а name.deb — полное название файла, включая .deb.

- Укажите свой пароль и нажмите на Enter.

- Ожидайте завершения инсталляции, после чего можете переходить к использованию необходимого приложения.

Если во время установки одним из представленных методов у вас возникают ошибки, попробуйте задействовать другой вариант, а также внимательно изучайте коды ошибок, уведомления и различные предупреждения, появляющиеся на экране. Такой подход позволит сразу же найти и исправить возможные неполадки.
SoftwareManagementRu
В этом разделе вы узнаете как использовать менеджер пакетов для установки и удаления приложений Ubuntu всего несколькими щелчками мыши. Также вы узнаете как эффективно управлять приложениями и, возможно, захотите установить и попробовать некоторые дополнительные программы.
Что такое менеджер пакетов?
Менеджер пакетов — это программа, которая поможет вам устанавливать и удалять приложения. Также менеджер пакетов отслеживает зависимости между программами и сохраняет систему в целостности.
Для установки и удаления приложений в Ubuntu вам нужно использовать менеджер пакетов. Он автоматически скачает из интернета нужное вам приложение и установит его.
- Установка/удаление программ — Это самый легкий путь для установки и удаления программ.
- Synaptic — Расширенное управление приложениями и другими компонентами системы.
- Apt — если вы предпочитаете использовать Терминал.
Если вы открыли более чем один экземпляр этой программы, то она не будет работать. Закройте их и откройте только один экземпляр.
Вам необходимы права администратора для того, чтобы использовать эти приложения.
Репозитории программного обеспечения
Репозиторий (хранилище) ПО — это место откуда вы можете скачать программное обеспечение.
Для Ubuntu доступны тысячи программ. Эти программы хранятся в специальных хранилищах ПО (репозиториях) и легко доступны через интернет. Таким образом вы можете легко установить новые приложения. Это проверенный и надёжный способ, так как каждая программа в репозитории собрана и протестирована специально для Ubuntu.
Репозитории Ubuntu упорядочены в следующие категории: Main, Restricted, Universe, и Multiverse. Это нужно чтобы разделить программы с разными уровнями пользовательской поддержки и разными условиями использования. (Смотри Философия свободного ПО).
Стандартный установочный диск Ubuntu содержит некоторые приложения из категорий Main и Restricted.
Если ваш компьютер подключён к интернету, вам доступно намного больше ПО для установки. Например репозитории "Universe" и "Multiverse" доступны только через интернет.
Репозиторий Multiverse содержит ПО, которое классифицировано как не свободное. Использование такого ПО в некоторых случаях может быть ограничено. Перед тем, как установить приложение из этого репозитория, вы должны убедиться, что не нарушаете законодательства вашей страны. Также для этого ПО могут отсутствовать обновления безопасности.
Вы можете найти дополнительную информацию о репозиториях на сайте проекта Ubuntu.
Добавление дополнительных репозиториев
Можно добавить дополнительные репозитории, например сторонние или репозитории старых версий Ubuntu.
Установка и удаление приложений
Выбрав Установка/удаление… из меню Приложения, вы можете установить новые программы. Там же можно и удалить ненужные программы. Для использования Установка/удаление приложений вам понадобятся права администратора.
Если вы знаете название программы, которую хотите установить, то введите ее имя в поле Поиск. В противном случае выберите категорию программ слева.
Программы, которые уже установлены, помечены галочкой перед названием пакета. Снимите галочку, если вы хотите удалить пакет с компьютера.
Когда вы нажмете Применить или OK любые новые программы будут скачаны с интернета и Ubuntu внесет измененния, которые вы сделали. Если вы не включали он-лайн архивы пакетов, то вас попросят вставить диск с Ubuntu в привод для установки некоторых пакетов.
Некоторые программы нельзя установить или удалить используя Установка/удаление приложений. Если вы не находите нужный вам пакет, щёлкните по Advanced для запуска менеджера пакетов Synaptic (смотри Раздел ― Расширенное управление пакетами).
Расширенное управление пакетами
В Ubuntu есть несколько разных менеджеров пакетов. Они предоставляют большие возможности, чем Установка/удаление приложений.
Менеджер пакетов Synaptic
Synaptic — менеджер пакетов, который может устанавливать и удалять любые пакеты в системе. Имеет графический интерфейс, как и Установка/удаление приложений, но предоставляет намного больше информации и более полный контроль над программами в компьютере.
Чтобы запустить Synaptic из меню Система выберите Система → Администрирование → Менеджер пакетов Synaptic. Вам понадобятся права администратора для использования Synaptic.
Если вы знаете имя пакета который хотите установить, но в нажмите кнопку Поиск и введите имя требуемого пакета или частичное название. Также можно производить поиск по описанию в пакетах (например вы можете найти все упоминания пакетов "аркада" или "математика").
Используйте категории в левой панели для фильтрации списка пакетов. Для отображения списка категорий после выполнения поиска, нажмите Разделы.
Чтобы установить пакет, щёлкните по нему и выберите Отметить для установки. Если вы передумали, выберите Снять отметку.
Чтобы удалить пакет, который уже установлен, выберите Отметить для удаления.
Когда вы закончите, нажмите Применить и Ubuntu применит выбранные изменения. Если вы не хотите ничего изменять, то просто закройте окно.
Управление пакетами из командной строки с помощью APT
Если вы умеете пользоваться Терминалом, вы можете использовать apt (Advanced Packaging Tool) для установки или удаления программ. Вам понадобятся права администратора для использования apt.
Для обновления локального списка пакетов наберите в Терминале:
Для установки всех существующих обновлений:
Чтобы найти пакет:
Для установки пакета:
Для удаления пакета:
Для получения списка других команд и опций apt:
Установка пакета из файла
Для установки пакетов предпочтительнее использовать менеджеры пакетов, которые будут описаны в этом разделе. Хотя архивы пакета Ubuntu являются очень большими, возможно, что вы захотите установить пакет, который не доступен в архивах Ubuntu. Если это поизойдет, то вы можете также загрузить и установить файлы с веб сайтов.
Перед установкой необходимо убедиться в том, что файлы, которые вы загружаете, получены из надежного источника.
Существует много различных форматов Linux пакетов. Большинство из них привязаны к менеджерам пакетов определенных Linux дистрибутивов. Например Debian пакет (.deb файлы), RPM менеджер пакетов (.rpm файлы), и Тарбол (.tar файлы).
Этот раздел рассказывает об установке таких одиночных файлов.
Нет никакой гарантии, что эти файлы будут совместимы с вашей системой, и Вы не будете получать обновления безопасности, если установите эти файлы. По этим причинам, если вы желаете установить программу, всегда используйте родной Ubuntu пакет приложения, доступный через менеджер пакетов, если он доступен.
Установка/удаление ».deb» файлов
Эти файлы — это пакеты Debian. Файлы пакетов имеют расширение .deb и подходят для Ubuntu потому что Ubuntu тесно связан с дистрибутивом Debian GNU/Linux. Вам понадобятся права администратора для установки .deb файла.
Для установки .deb файла, кликните на нем двойным щелчком мышки. Если вы предпочитаете использовать терминал, то введите:
Для удаления .deb файла снимите отметку с него в вашем менеджере пакетов. Или наберите в Терминале:
Преобразование файлов ».rpm» в файлы ».deb»
Установка из »тарбола»
Файлы с расширениями .tar, .tgz, .tar.gz или .tar.bz2 — пакеты, известные как tarballs (тарбол), которые также используются в Linux и Unix.
Если в репозиториях нет нужного пакета для Ubuntu, используя командную строку вы можете установить/удалить пакет в формате tar.
Первым шагом будет распаковка и извлечение файлов из tarball. Если это .tgz или .tar.gz, в Терминале введите:
Затем нужно следовать инструкции, приложенной к пакету. Обычно это файл README или INSTALL.
Пакеты tarball часто содержат исходные коды программы, которые должны быть скомпилированы перед использованием.
Для компиляции программ требуются пакеты, которые по умолчанию не установлены. Их можно установить пакетом build-essential.
SoftwareManagementRu (последним исправлял пользователь knome 2013-12-13 23:36:06)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
Package management
Ubuntu features a comprehensive package management system for installing, upgrading, configuring, and removing software. In addition to providing access to an organized base of over 60,000 software packages for your Ubuntu computer, the package management facilities also feature dependency resolution capabilities and software update checking.
Several tools are available for interacting with Ubuntu’s package management system, from simple command-line utilities that can be easily automated by system administrators, to an easy-to-use graphical interface for those new to Ubuntu.
Introduction
Ubuntu’s package management system is derived from the same system used by the Debian GNU/Linux distribution. The package files contain all of the necessary files, metadata, and instructions to implement a particular functionality or software application on your Ubuntu computer.
Debian package files typically have the extension .deb , and usually exist in repositories which are collections of packages found online or on physical media, such as CD-ROM discs. Packages are normally in a pre-compiled binary format; thus installation is quick and requires no compiling of software.
Many packages use dependencies. Dependencies are additional packages required by the principal package in order to function properly. For example, the speech synthesis package festival depends upon the package alsa-utils , which is a package supplying the Advanced Linux Sound Architecture (ALSA) sound library tools needed for audio playback. In order for festival to function, it – and all of its dependencies – must be installed. The software management tools in Ubuntu will do this automatically.
Advanced Packaging Tool – APT
The apt command is a powerful command-line tool, which works with Ubuntu’s Advanced Packaging Tool (APT). The commands contained within apt provide the means for installing new software packages, upgrading existing software packages, updating the package list index, and even upgrading the entire Ubuntu system.
Some examples of popular uses for the apt utility include:
Install a Package
Installation of packages using apt is quite simple. For example, to install the nmap network scanner, type the following:
Tip
You can specify multiple packages to be installed or removed, by separating them with spaces.
Remove a Package
Removal of a package (or packages) is also straightforward. To remove the package installed in the previous example, simply type:
Adding the —purge option to apt remove will remove the package configuration files as well. This may or may not be the desired effect, so use with caution.
Note:
While apt is a command-line tool, it is intended to be used interactively, and not to be called from non-interactive scripts. The apt-get command should be used in scripts (perhaps with the —quiet flag). For basic commands the syntax of the two tools is identical.
Update the package index
The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file and in the /etc/apt/sources.list.d directory. To update the local package index with the latest changes made in the repositories, type the following:
Upgrade packages
Installed packages on your computer may periodically have upgrades available from the package repositories (e.g., security updates). To upgrade your system, first, update your package index with sudo apt update , and then type:
For details on how to upgrade to a new Ubuntu release, see our guide on upgrading.
Actions of the apt command, such as installation and removal of packages, are logged in the /var/log/dpkg.log log file.
For further information about the use of APT, read the comprehensive APT User’s Guide, or type apt help .
Aptitude
Launching Aptitude with no command-line options will give you a menu-driven, text-based frontend to the APT system. Many of the common package management functions, such as installation, removal, and upgrade, can be performed in Aptitude with single-key commands, which are typically lowercase letters.
Aptitude is best suited for use in a non-graphical terminal environment to ensure proper functioning of the command keys. You can start the menu-driven interface of Aptitude as a normal user by typing the following command at a terminal prompt:
When Aptitude starts, you will see a menu bar at the top of the screen and two panes below the menu bar. The top pane contains package categories, such as New Packages and Not Installed Packages. The bottom pane contains information related to the packages and package categories.
Using Aptitude for package management is relatively straightforward, and the user interface makes common tasks simple to perform. The following are examples of common package management functions as performed in Aptitude:
Install Packages
To install a package, locate it via the Not Installed Packages package category by using the keyboard arrow keys and the Enter key. Highlight the desired package, then press the + key. The package entry should turn green, indicating it has been marked for installation. Now press g to be presented with a summary of package actions. Press g again, and the package will be downloaded and installed. When finished, press Enter to return to the menu.
Remove Packages
To remove a package, locate it in the Installed Packages package category by using the keyboard arrow keys and the Enter key. Highlight the package you want to remove, then press the — key. The package entry should turn pink, indicating it has been marked for removal. Now press g to be presented with a summary of package actions. Press g again, and the package will be removed. When finished, press Enter to return to the menu.
Update Package Index
To update the package index, simply press the u key.
Upgrade Packages
To upgrade packages, first update the package index as detailed above, and then press the U key to mark all packages with updates. Now press g , which will present you with a summary of package actions. Press g again to begin the download and installation. When finished, press Enter to return to the menu.
The first column of information displayed in the package list (in the top pane) lists the current state of the package (when viewing packages). It uses the following key to describe the package state:
i: Installed package
c: Package not installed, but package configuration remains on the system
p: Purged from system
v: Virtual package
B: Broken package
u: Unpacked files, but package not yet configured
C: Half-configured — configuration failed and requires fix
H: Half-installed — removal failed and requires a fix
To exit Aptitude, simply press the q key and confirm you wish to exit. Many other functions are available from the Aptitude menu by pressing the F10 key.
Command Line Aptitude
You can also use Aptitude as a command-line tool, similar to apt . To install the nmap package with all necessary dependencies (as in the apt example), you would use the following command:
To remove the same package, you would use the command:
Consult the Aptitude manpages for full details of Aptitude’s command-line options.
dpkg is a package manager for Debian-based systems. It can install, remove, and build packages, but unlike other package management systems, it cannot automatically download and install packages – or their dependencies. APT and Aptitude are newer, and layer additional features on top of dpkg . This section covers using dpkg to manage locally installed packages:
To list all packages in the system’s package database, installed and uninstalled, from a terminal prompt type:
Depending on the number of packages on your system, this can generate a large amount of output. Pipe the output through grep to see if a specific package is installed:
Replace apache2 with any package name, part of a package name, or a regular expression.
To list the files installed by a package, in this case the ufw package, enter:
If you are unsure which package installed a file, dpkg -S may be able to tell you. For example:
The output shows that the /etc/host.conf belongs to the base-files package.
Note:
Many files are automatically generated during the package install process, and even though they are on the filesystem, dpkg -S may not know which package they belong to.
You can install a local .deb file by entering:
Change zip_3.0-4_amd64.deb to the actual file name of the local .deb file you wish to install.
You can uninstall a package by:
Caution:
Uninstalling packages using dpkg , is NOT recommended in most cases. It is better to use a package manager that handles dependencies to ensure that the system is in a consistent state. For example, using dpkg -r zip will remove the zip package, but any packages that depend on it will still be installed and may no longer function correctly.
For more dpkg options see the manpage: man dpkg .
APT configuration
Configuration of the APT system repositories is stored in the /etc/apt/sources.list file and the /etc/apt/sources.list.d directory. An example of this file is referenced here, along with information on adding or removing repository references from the file.
You can edit the file to enable and disable repositories. For example, to disable the requirement of inserting the Ubuntu CD-ROM whenever package operations occur, simply comment out the appropriate line for the CD-ROM, which appears at the top of the file:
Extra repositories
In addition to the officially-supported package repositories available for Ubuntu, there are also community-maintained repositories which add thousands more packages for potential installation. Two of the most popular are the universe and multiverse repositories. These repositories are not officially supported by Ubuntu, but because they are maintained by the community they generally provide packages which are safe for use with your Ubuntu computer.
Note:
Packages in the multiverse repository often have licensing issues that prevent them from being distributed with a free operating system, and they may be illegal in your locality.
Warning:
Be advised that neither universe nor multiverse contain officially-supported packages. In particular, there may not be security updates for these packages.
Many other package sources are available – sometimes even offering only one package, as in the case of packages provided by the developer of a single application. You should always be very careful and cautious when using non-standard package sources/repos, however. Research the packages and their origins carefully before performing any installation, as some packages could render your system unstable or non-functional in some respects.
By default, the universe and multiverse repositories are enabled. If you would like to disable them, edit /etc/apt/sources.list and comment out the following lines:
Automatic updates
The unattended-upgrades package can be used to automatically install updated packages and can be configured to update all packages or just install security updates. First, install the package by entering the following in a terminal:
To configure unattended-upgrades , edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust the following to fit your needs:
Certain packages can also be excluded and therefore will not be automatically updated. To block a package, add it to the list:
Note:
The double “//” serve as comments, so whatever follows “//” will not be evaluated.
To enable automatic updates, edit /etc/apt/apt.conf.d/20auto-upgrades and set the appropriate APT configuration options:
The above configuration updates the package list, downloads, and installs available upgrades every day. These actions are triggered by timer units at a set time but with a random delay: apt-daily.timer and apt-daily-upgrade.timer . These timers activate the correspondent services that run the /usr/lib/apt/apt.systemd.daily script.
However, it may happen that if the server is off at the time the timer unit elapses, the timer will be triggered immediately at the next startup. As a result, they will often run on system startup
and thereby cause immediate activity and hold the apt-lock.
In many cases this is beneficial, but in some cases it might be counter-productive; examples are administrators with many shut-down machines or VM images that are only started for some quick action, which is delayed or even blocked by the unattended upgrades. To adapt this behaviour, we can change/override the configuration of both APT’s timer units [ apt-daily-upgrade.timer, apt-daily.timer ]. To do so, use systemctl edit <timer_unit> and override the Persistent attribute, for example with Persistent=delay :
The local download archive is cleaned every week. On servers upgraded to newer versions of Ubuntu, depending on your responses, the file listed above may not be there. In this case, creating a new file of the same name should also work.
Note:
You can read more about apt Periodic configuration options in the apt.conf(5) manpage and in the /usr/lib/apt/apt.systemd.daily script header.
The results of unattended-upgrades will be logged to /var/log/unattended-upgrades .
Notifications
Configuring Unattended-Upgrade::Mail in /etc/apt/apt.conf.d/50unattended-upgrades will enable unattended-upgrades to email an administrator detailing any packages that need upgrading or have problems.
Another useful package is apticron . apticron will configure a cron job to email an administrator information about any packages on the system that have updates available, as well as a summary of changes in each package.
To install the apticron package, enter the following command in a terminal:
Once the package is installed, edit /etc/apticron/apticron.conf , to set the email address and other options:
References
Most of the material covered in this chapter is available in man pages, many of which are available online.
The Installing Software Ubuntu wiki page has more information.
For more dpkg details see the dpkg man page.
The APT User’s Guide and apt man page contain useful information regarding APT usage.
For more info about systemd timer units (and systemd in general), visit the systemd man page and systemd.timer man page.
See the Aptitude user’s manual for more Aptitude options.
The Adding Repositories HOWTO (Ubuntu Wiki) page contains more details on adding repositories.
How do I install a .deb file via the command line?
Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude , which in turn are the backend for GUI install apps like the Software Center and Synaptic.
Something along the lines of:
dpkg —> apt-get , aptitude —> Synaptic, Software Center
But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the dpkg command which is the base for all of them.
Since dpkg is the base, you can use it to install packaged directly from the command line.
Install a package
For example if the package file is called askubuntu_2.0.deb then you should do sudo dpkg -i askubuntu_2.0.deb . If dpkg reports an error due to dependency problems, you can run sudo apt-get install -f to download the missing dependencies and configure everything. If that reports an error, you’ll have to sort out the dependencies yourself by following for example How do I resolve unmet dependencies after adding a PPA?.
Remove a package
For example if the package is called askubuntu then you should do sudo dpkg -r askubuntu .
Reconfigure an existing package
This is useful when you need to reconfigure something related to said package. Some useful examples it the keyboard-configuration when you want to enable the Ctrl + Alt + Backspace in order to reset the X server, so you would the following:
Another great one is when you need to set the Timezone for a server or your local testing computer, so you use use the tzdata package: