Я вижу sudo apt remove package_name и sudo apt purge package_name, но в чем разница? один безопаснее другого или удаляет пакеты, установленные этим пакетом?
Вы можете прочитать руководство по apt с
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 с
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 с
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 нет. И вы даже можете использовать чистку, если позже вы захотите удалить эти файлы конфигурации.
В man-файле 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 удаляет их. Оба являются безопасными, но выбрать один из них зависит от того, хотите ли вы удалить конфигурации.
В man-файле 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 удаляет их. Оба являются безопасными, но выбрать один из них зависит от того, хотите ли вы удалить конфигурации.
В man-файле 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 удаляет их. Оба являются безопасными, но выбрать один из них зависит от того, хотите ли вы удалить конфигурации.