LoginSignup
5
9

More than 3 years have passed since last update.

UbuntuでPostgresql の削除

Last updated at Posted at 2019-10-18

Ubuntu でpostgresqlの削除

Ubuntuでのpostgresqlの
削除について、まとめてみました。

インストールしたパッケージの確認

インストールした、postgresに関する
パッケージリストを確認します。

$ dpkg -l | grep postgres

インストールしたパッケージが
表示されます。

posgre.PNG

postgresの削除

上記のコマンドで表示された、
Postgresqlに関する各パッケージをremoveしていきます。

$  sudo apt remove --purge postgres

apt remove だけでは設定ファイルを削除できないので、完全に削除をする場合は --purge オプションを追加して実行しましょう。

対象ファイルがすべて削除できたか、
確認をします。

$ dpkg -l | grep postgres

アウトプットがなくなっているのがわかります!

以上で終了です。
無事に削除ができました

5
9
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
9