Войдите на свой сервер Ubuntu под своей обычной учетной записью пользователя. Мы будем устанавливать git из репозиториев Ubuntu по умолчанию:
~$ sudo apt-get установить git-core
Чтобы удалить только сам пакет git из Ubuntu 14.04, выполните на терминале:
$ sudo apt-get remove git
Чтобы удалить пакет git и любой другой зависимый пакет, который больше не нужен из Ubuntu Trusty.
$ sudo apt-get удалить --auto-remove git
Если вы также хотите удалить файлы конфигурации и/или данных git из Ubuntu Trusty, это сработает:
$ sudo apt-get purge git
Чтобы удалить файлы конфигурации и/или данных git и его зависимостей из Ubuntu Trusty, выполните:
$ sudo apt-get purge --auto-remove git