首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在centos7离线服务器上删除postgresql?

如何在centos7离线服务器上删除postgresql?
EN

Stack Overflow用户
提问于 2020-09-29 17:15:31
回答 1查看 758关注 0票数 0

我已经在centos 7服务器上安装了PostgreSQL11,但我想删除它们,因为目录错误,但当我运行yum remove postgresql*时,它需要连接互联网来解决依赖关系,但我的服务器离线了。有什么合适的方法可以手动完成吗?

代码语言:javascript
复制
[root@soa-forwarder ~]# yum remove postgres\*
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package postgresql11.x86_64 0:11.9-1PGDG.rhel7 will be erased
---> Package postgresql11-contrib.x86_64 0:11.9-1PGDG.rhel7 will be erased
---> Package postgresql11-libs.x86_64 0:11.9-1PGDG.rhel7 will be erased
---> Package postgresql11-server.x86_64 0:11.9-1PGDG.rhel7 will be erased
--> Finished Dependency Resolution
LocalRepo                                                | 3.6 kB     00:00
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, 'Resolving timed out after 30546 milliseconds')
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock: (28, 'Resolving timed out after 30544 milliseconds')
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock: (28, 'Resolving timed out after 30545 milliseconds')
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30543 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30542 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30542 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30543 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30545 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30542 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30543 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30544 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30541 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30543 milliseconds')
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30543 milliseconds')
Trying other mirror.
EN

回答 1

Stack Overflow用户

发布于 2020-09-29 17:17:53

尝试yum --disablerepo=\* remove postgres\* (通过this post)。

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

https://stackoverflow.com/questions/64116484

复制
相关文章

相似问题

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