На этот вопрос уже есть ответ:
Я вижу sudo apt remove package_name
и sudo apt purge package_name
,
но в чем разница? один безопаснее другого, или один из них удаляет пакеты, установленные этим пакетом?
Можно прочитать руководство Кв. с
man apt
На строке 35 Вы найдете следующее
Removing a package removes all packaged data, but leaves usually
small (modified) user configuration files behind, in case the
remove was an accident. Just issuing an installation request for
the accidentally removed package will restore its function as
before in that case. On the other hand you can get rid of these
leftovers by calling purge even on already removed packages. Note
that this does not affect any data or configuration stored in your
home directory.
Так короче говоря: remove
оставляет некоторые файлы конфигурации где purge
не делает. И можно даже использовать чистку, если позже Вы хотите удалить те файлы конфигурации.
Страница справочника apt-get
(выполненный man apt-get
для наблюдения этого), говорит:
remove
remove is identical to install except that packages are removed instead of installed. Note that removing a
package leaves its configuration files on the system. If a plus sign is appended to the package name (with
no intervening space), the identified package will be installed instead of removed.
purge
purge is identical to remove except that packages are removed and purged (any configuration files are
deleted too).
Короче говоря remove
сохраняет конфигурационные файлы в то время как purge
удаляет их. Оба безопасны, но какой выбрать зависит от того, хотите ли Вы удалить конфигурации.