首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不安装PostgreSQL 10,无法从Ubuntu14.04卸载PostgreSQL 9.3

不安装PostgreSQL 10,无法从Ubuntu14.04卸载PostgreSQL 9.3
EN

Ask Ubuntu用户
提问于 2018-07-11 13:08:35
回答 1查看 538关注 0票数 1

我刚刚将Postgres实例从9.3升级到9.6,在我试图卸载9.3之前,一切都很完美。Apt试图在删除9.3期间安装Postgres 10。9.6需要保持原状。如果我不移除9.3,这并不是世界末日,但我很想打扫一下房子。

sudo apt-get remove postgresql-9.3返回以下内容:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  comerr-dev krb5-multidev libgssrpc4 libkadm5clnt-mit9 libkadm5srv-mit9
  libkdb5-7 libossp-uuid16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  postgresql postgresql-10 postgresql-client-10 postgresql-contrib
Suggested packages:
  postgresql-doc locales-all postgresql-doc-10
The following packages will be REMOVED:
  postgresql-9.3 postgresql-contrib-9.3
The following NEW packages will be installed:
  postgresql-10 postgresql-client-10
The following packages will be upgraded:
  postgresql postgresql-contrib
2 upgraded, 2 newly installed, 2 to remove and 216 not upgraded.
Need to get 6,318 kB of archives.
After this operation, 15.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]

我还没有找到一种方法来删除PostgreSQL9.3而不安装postgresql-10。事先谢谢,我希望这是一个简单的问题,不知道正确的Apt命令。

EN

回答 1

Ask Ubuntu用户

发布于 2018-07-23 13:37:00

尝试在后置文件夹中执行卸载脚本。

就我而言:

sudo chmod +x /opt/PostgreSQL/version_here/uninstall-postgresql sudo ./opt/PostgreSQL/version_here/uninstall-postgresql

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1054195

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档