• ubuntu uninstall postgres


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

    1. List All Postgres related packages

      dpkg -l | grep postgres
      
      ii  postgresql                            8.3.17-0ubuntu0.8.04.1           object-relational SQL database (latest versi
      ii  postgresql-8.3                        8.3.9-0ubuntu8.04                object-relational SQL database, version 8.3
      ii  postgresql-client                     8.3.9-0ubuntu8.04                front-end programs for PostgreSQL (latest ve
      ii  postgresql-client-8.3                 8.3.9-0ubuntu8.04                front-end programs for PostgreSQL 8.3
      ii  postgresql-client-common              87ubuntu2                        manager for multiple PostgreSQL client versi
      ii  postgresql-common                     87ubuntu2                        PostgreSQL database-cluster manager
      ii  postgresql-contrib                    8.3.9-0ubuntu8.04                additional facilities for PostgreSQL (latest
      ii  postgresql-contrib-8.3                8.3.9-0ubuntu8.04                additional facilities for PostgreSQL
      
    2. Remove all above listed

      sudo apt-get --purge remove postgresql postgresql-8.3  postgresql-client  postgresql-client-8.3 postgresql-client-common postgresql-common  postgresql-contrib postgresql-contrib-8.3
      
    3. Remove the following folders

      sudo rm -rf /var/lib/postgresql/
      sudo rm -rf /var/log/postgresql/
      sudo rm -rf /etc/postgresql/
  • 相关阅读:
    Codeforces Round #629 (Div. 3) (A ~ F)
    st表
    Educational Codeforces Round 81 (Rated for Div. 2)
    hihocoder#1996 : 01匹配
    P2056 [ZJOI2007]捉迷藏
    P2495 [SDOI2011]消耗战
    GUETOJ1335
    优先队列重载比较运算
    CCF认证201909-4 推荐系统
    P3178 [HAOI2015]树上操作
  • 原文地址:https://www.cnblogs.com/oxspirt/p/8602238.html
Copyright © 2020-2023  润新知