ITPub博客

首页 > IT职业 > IT生活 > 如何彻底卸载postgresql

如何彻底卸载postgresql

IT生活 作者:nonocast 时间:2021-09-11 10:21:19 0 删除 编辑

卸载postgresql

通过以下命令查看已经安装的Postgresql软件包

[root@107 ~]# rpm -qa | grep postgresql
postgresql96-9.6.10-1PGDG.rhel7.x86_64
postgresql96-server-9.6.10-1PGDG.rhel7.x86_64
postgresql96-libs-9.6.10-1PGDG.rhel7.x86_64
postgresql96-contrib-9.6.10-1PGDG.rhel7.x86_64
[root@107 ~]#

可以通过yum remove命令逐个卸载,但最简单的是卸载libs包。因为其他几个包都依赖它,卸载libs包会将其他包一并卸载。

yum remove postgresql96-libs-9.6.10-1PGDG.rhel7.x86_64

由于安装的时候已经将Postgresql作为服务安装,所以还需要删除服务管理脚本。

在此目录下 /etc/init.d/ ;看是否有服务管理脚本。

推荐学习《Python教程》。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4618/viewspace-2834432/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: pycharm怎样配置
请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    82
  • 访问量
    843