как полностью удалить postgresql linux

Как удалить Postgres из моей установки?

У меня Ubuntu 9.10 (karmic), и когда я попытался установить новую программу, postgres был установлен как зависимость от этой программы, никаких проблем, если установка прошла успешно, но произошла ошибка, и Postgres был не установлено и приложение не работает. Я пытался обновить Postgres и ничего, только сообщение «произошла ошибка и ваш postgres не может быть установлен»

Теперь я хочу полностью удалить Postgres со своей машины, как я могу это сделать, я не хочу убивать процесс при каждой загрузке. Я просто хочу удалить Postgres.

Что такое командная строка?

Это также побудит вас удалить то программное обеспечение, которое зависит от Postgres, что в данном случае, по-видимому, вы хотели бы сделать.
Я лично не запускаю 9.10 или Postgres, поэтому вполне возможно, что Postgres устанавливает себя в несколько частей. В таком случае просто:

Конечно, это зависит от списка установленных пакетов.

Шаги, которые работали на меня, Ubuntu 8.04.2 чтобы удалить postgres 8.3

Список всех пакетов, связанных с Postgres

Удалить все вышеперечисленное

Удалите следующие папки

Удалить пользователя postgres :

Когда я запускаю команду msfconsole в терминале, хотя metasploit подключается к базе данных msf через порт 5432, появляется следующее сообщение об ошибке:

Я удаляю версию 9.6 postgresql из приложения Synaptic, но проблема сохраняется (postgresql 9.6 больше не отображается в списке установленного программного обеспечения synaptic);

Но, выполнив следующую команду, мы увидим, что версия postgresql 9.6 не была полностью удалена:

С помощью следующей команды postgresql-9.6 полностью удален:
root@kali:

Появляется другое сообщение об ошибке:

Я обнаружил, что причина была в том, что на моем компьютере с Debian установлены две (2) версии Ruby, версии (2.2 и 2.3).

То же самое, я удаляю версию ruby ​​2.2 из приложения synaptic, и проблема решена, metasploit запускается без проблем.

Источник

How To Completely Uninstall PostgreSQL

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Introduction

If you’re using PostgreSQL, you may need to remove the package from your system at some point. It’s important to know how to uninstall PostgreSQL properly to make sure all components of the package are completely removed and you don’t encounter any errors. In this article, we’ll explain how to uninstall PostgreSQL from Linux, macOS and Windows operating systems.

NOTE: Be sure to elevate the privileges for any of the commands in this article with sudo if the terminal returns a Permission denied error.

Uninstall and remove PostgreSQL on Debian Linux

You can use the apt-get command to completely remove PostgreSQL on a Debian-based distribution of Linux such as Linux Mint or Ubuntu:

Grep for all PostgreSQL packages in Debian Linux

Remove all of the PostgreSQL data and directories

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Uninstall and remove PostgreSQL packages on Fedora Linux

You can use the YUM repository’s yum command to uninstall PostgreSQL on Fedora-based distributions of Linux such Red Hat or CentOS:

Be sure to remove the pgsql directory as well:

NOTE: Keep in mind that sudo is not enabled for RHEL users by default. Instead, use the su (switch user) command to enter as root and execute the above commands with elevated privileges if necessary.

Grep for the PostgreSQL packages in Fedora using ‘rpm’

If you prefer, you can shorten the search to something like post as well:

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

You can also use grep in conjunction with YUM’s list command to return a list of all package instances of PostgreSQL:

Uninstall the PostgreSQL package using YUM remove

Once you’ve located the package, use YUM’s remove command to uninstall PostgreSQL from your Linux system:

Navigate to the assigned directory for the PostgreSQL data, and then use the rm command to delete all of your databases and tables.

Uninstall and remove PostgreSQL from Windows

If you’re using Windows, type uninstall or remove into the search bar at the bottom left-hand side of the screen:

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Then, follow the steps for the removal process, making sure to select the “Entire Components option when prompted.

Delete the data folder for PostgreSQL in Windows

After you’ve completed the removal process described in the previous section, open File Explorer for Windows and navigate to the data folder. Right-click the data folder and click the Delete button. Be sure to empty the recycle bin afterwards to ensure that any sensitive data has been properly deleted.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

After all of the data has been deleted, you should restart Windows 10.

Uninstall and remove PostgreSQL on macOS

To uninstall PostgreSQL on macOS, open a new instance of Finder and navigate to the Applications directory. Look for the PostgreSQL folder and drag its contents to the Trash application folder in macOS.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Remove the PostgreSQL data in a terminal in macOS

After you’ve removed the PostgreSQL folder, open the Utilities folder in a Finder window, and then open the Terminal application.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Use the cd command to navigate to the PostgreSQL directory. You can do this by typing the directory path into the terminal prompt and pressing Return:

Don’t forget to empty the Trash application’s contents when you are finished.

Uninstall the Homebrew installation of PostgreSQL on macOS

You can use the brew command in a macOS terminal window to remove the Homebrew version of PostgreSQL. First, use the list command to return all of the applications installed using Homebrew:

Then, use the following command to force the removal the Homebrew installation of postgresql :

Conclusion

If you find yourself needing to uninstall PostgreSQL, it’s important to do a careful and thorough job. Taking shortcuts when it comes to the removal process can leave sensitive data remaining on your machine. In this article, we explained how to uninstall and remove PostgreSQL from Windows, Linux and macOS. With the step-by-step instructions detailed in this tutorial, you’ll be ready to remove PostgreSQL from any of your own machines.

Pilot the ObjectRocket Platform Free!

Try Fully-Managed CockroachDB, Elasticsearch, MongoDB, PostgreSQL (Beta) or Redis.

Источник

Как тщательно очистить и переустановить postgresql на ubuntu? [закрытый]

Как-то мне удалось полностью испортить установку postgresql на Ubuntu karmic. Я хочу начать с нуля, но когда я «очищаю» пакет с apt-get, он все еще оставляет следы, так что конфигурация переустановки не работает должным образом.

после того, как я сделал:

у меня есть «/etc/postgresql» с ничем в нем и «/etc/ postgresql-common / «имеет» pg_upgradecluser.д’ каталог и корневой.ЭЛТ и user_clusters файлы.

в /etc / passwd есть пользователь postgres; сценарий очистки, похоже, не касается его. Там была куча симптомов, которые я работаю только для того, чтобы разоблачить следующий.

прямо сейчас, когда я запускаю эту команду » pg_createcluster. «он жалуется, что’ /var/lib/postgresql/8.4/main / postgresql.conf не существует», поэтому я найду один из них, но я уверен, что это не конец.

есть ли какой-то простой однострочный (или два) который сожжет его полностью и позволит мне начать все сначала?

9 ответов

чтобы удалить все PostgreSQL из ваша система. Просто очистка postgres пакета недостаточно, так как это просто пустой мета-пакет.

после удаления всех пакетов PostgreSQL запустите:

теперь вы должны быть в состоянии:

или для полной инсталляции:

у меня была аналогичная ситуация: мне нужно было очистить postgresql 9.1 на debian wheezy ( я ранее мигрировал из 8.4, и я получал ошибки ).

во-первых, я удалил config и database

затем удален postgresql

в моем случае я заметил, что /etc/postgresql / 9.1 пуст, и работает service postgresql start ничего не возвращено

Итак, после более googling я добрался до этой команды:

С этим я мог бы запустить сервер, но теперь я получал ошибки, связанные с журналом. После дополнительного поиска я изменил разрешения на каталог/var/log / postgresql

это исправило проблему, надеюсь, это поможет

Я знаю, что ответ уже был предоставлен, но dselect не работал для меня. Вот что сработало, чтобы найти пакеты для удаления:

наконец, редактирование /etc /passwd и/etc / group

шагов, которые работали для меня Ubuntu 8.04.2 удалить postgres 8.3

Список всех Postgres связанных пакетов

удалить все перечисленные выше

удалите следующие папки

после ae шаги, которые я выполнил для удаления и переустановки. Что сработало для меня.

sudo apt-get autoremove

затем установите ‘synaptic’:

sudo apt-получить обновление

затем установить postgres

sudo apt-get install postgresql postgresql-contrib

Я просто столкнулся с той же проблемой для Ubuntu 13.04. Эти команды удалили Postgres 9.1:

мне приходит в голову, что, возможно, нужна только вторая команда, но оттуда я смог установить Postgres 9.2 (sudo apt-get install postgresql-9.2).

Я следил за ответы, При редактировании /etc / group я также удалил эту строку:

затем, при попытке установить postgresql, я получил эту ошибку

установка строки «ssl-cert:x: 112: postgres» обратно в /etc / group, похоже, исправляет это (поэтому я смог установить postgresql)

я столкнулся с той же проблемой в моем ubuntu 16.04

но я исправил эту проблему, и это очень просто, просто следуйте этим шагам, и вы сможете установить postgresql 10 в своей системе:

добавьте это в свои источники.список:

после этого добавьте эту ссылку в свой pgdg.список файлов, если его нет, вам нужно создать & & добавить ссылку & & Сохранить его.

затем обновите свою систему

и установите это unmet зависимости :

вот именно. теперь установите postgresql с помощью этой команды

Источник

How to remove Postgres from my installation?

I have ubuntu 9.10(karmic), and when I attempted to install a new program, the postgres was installed as a dependency of that program, no problem at all if the installation occurs with success, but there was an error, and the Postgres was not installed and the application is not working. I had tryed to update the Postgres and nothing, only the message «there was an error and your postgres can not be installed»

Now I want to remove completely the Postgres from my machine, how can I do that, I do not want to kill the process every boot. I just want to remove Postgres.

What is the command line?

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

5 Answers 5

The simplest way to do this is to open a terminal and type:

This will also prompt you to remove that software that depends on Postgres, which in this case it appears you would like to do.
I do not personally run 9.10 or Postgres, so it is possible that Postgres installs itself in several parts. In that case, a simple:

This is dependent on the list of packages installed, of course.

Steps that worked for me on Ubuntu 8.04.2 to remove postgres 8.3

List All Postgres related packages

Remove all above listed

Remove the following folders

Remove the postgres user:

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Follow the commands:

List all postgres related packages:

remove all the above listed packages using the command :

Confirm all the files and folders related to postgres/postgresql are deleted using the command :

Remove all the files and folders listed using rm command.

Delete the user postgres using the command :

When I run the comand msfconsole in a terminal, although metasploit connects to the msf database on port 5432, the following error message appears:

I unistall the 9.6 postgresql version from the Synaptic application, but the problem persists (postgresql 9.6 no longer appears in synaptic’s installed software list);

But by executing the command that follows we see that the version postgresql 9.6 was not completely unistalled:

With the following command, postgresql-9.6 uninstalled completely:
root@kali:

Another error message appears:

I found that the cause was that two (2) versions of Ruby are installed in my debian machine, versions (2.2 & 2.3).

Same thing, I uninstall the ruby 2.2 version from the synaptic application and the problem is solved, metasploit starts without problems.

Источник

Русские Блоги

CentOS Установка и удаление PostgreSQL

Монтаж

Команда установки Yum по умолчанию выглядит следующим образом:

Эта команда устанавливает более низкие версии PostgreSQL 8.4, конкретный процесс выглядит следующим образом:

2. Удалить

Если мы хотим установить последнюю версию PostgreSQL, эта команда, очевидно, не соответствует нашим требованиям. Удалите предыдущую версию PostgreSQL 8.4, команда выглядит следующим образом:

Конкретный процесс выглядит следующим образом:

3. Установите последнюю версию

3.1 Установить репозиторий PostgreSQL Yum

3.2 Установить PostgreSQL

Интеллектуальная рекомендация

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Процесс компиляции языка C

Возвращаемое значение 0 указывает на успех, а все остальные возвращаемые значения возвращают ненормальное состояние. #define, #include и т. д. обрабатываются на этапе предварительной обработки, но они.

C_Day01

1. Конфигурация языковой среды C 1. MinGW-gcc: gcc: специально используется для компиляции исходного кода языка C 2. Конфигурация переменных среды будетMinGWПод каталогомBinПуть к каталогу, добавленны.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

VM Виртуальная машина Установка Linux Системный метод с Win10 поставляется с подсистемой Liunx

Заранее установка Учебное пособие по установке виртуальной машины VMhttps://jingyan.baidu.com/article/c275f6ba15d37fe33d756723.html CENOS.ISO Процедура скачивания: ссылка для скачивания:http://mirrors.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Kubernetes официально регистрирует стабилизацию Docker Desktop, и ранние усыновители не пропускают!

Производится Docker (ID: Docker-CN) Компиляция Каждый понедельник, три, пять ночей, 6:10, вы не можете видеть тебя Предстоящий Еще в январе этого года мы предоставили Kubernetes для краевого канала Ma.

как полностью удалить postgresql linux. Смотреть фото как полностью удалить postgresql linux. Смотреть картинку как полностью удалить postgresql linux. Картинка про как полностью удалить postgresql linux. Фото как полностью удалить postgresql linux

Название Описание Пожалуйста, реализуйте функцию, чтобы определить, является ли двоичное дерево симметричным. Обратите внимание: если двоичное дерево совпадает с зеркальным отображением этого двоичног.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *