zoukankan      html  css  js  c++  java
  • centos7 卸载rpm安装的包

    1.查看已装包

    rpm -qa | grep pgpool

    2.卸载包

    rpm -e 包名

    3.示例(卸载pgpool)

    [root@VM_145_153_centos etc]# rpm -qa | grep pgpool
    pgpool-II-pg95-debuginfo-3.7.5-1pgdg.rhel7.x86_64
    pgpool-II-pg95-extensions-3.7.5-1pgdg.rhel7.x86_64
    pgpool-II-pg95-3.7.5-1pgdg.rhel7.x86_64
    pgpool-II-release-3.7-1.noarch
    pgpool-II-pg95-devel-3.7.5-1pgdg.rhel7.x86_64
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-pg95-debuginfo-3.7.5-1pgdg.rhel7.x86_64
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-pg95-extensions-3.7.5-1pgdg.rhel7.x86_64
    [root@VM_145_153_centos etc]# rpm -e pgpool-I
    error: package pgpool-I is not installed
    [root@VM_145_153_centos etc]# rpm -e pgpool-II
    error: package pgpool-II is not installed
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-pg95-3.7.5-1pgdg.rhel7.x86_64
    error: Failed dependencies:
    libpcp.so.1()(64bit) is needed by (installed) pgpool-II-pg95-devel-3.7.5-1pgdg.rhel7.x86_64
    pgpool-II-pg95 = 3.7.5 is needed by (installed) pgpool-II-pg95-devel-3.7.5-1pgdg.rhel7.x86_64
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-pg95-devel-3.7.5-1pgdg.rhel7.x86_64
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-release-3.7-1.noarch
    [root@VM_145_153_centos etc]# rpm -e pgpool-II-pg95-3.7.5-1pgdg.rhel7.x86_64
    warning: file /etc/pgpool-II/pool_hba.conf: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pgpool.conf.sample-stream: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pgpool.conf.sample-replication: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pgpool.conf.sample-master-slave: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pgpool.conf.sample-logical: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pgpool.conf: remove failed: No such file or directory
    warning: file /etc/pgpool-II/pcp.conf: remove failed: No such file or directory
    [root@VM_145_153_centos etc]# rpm -qa |grep pgpool
    [root@VM_145_153_centos etc]#

  • 相关阅读:
    高并发场景 LVS 安装及keepalived的应用
    使用nginx作为http/https正向代理
    Spring5【七】Spring 整合 MyBatis
    Spring5【六】代理模式及 AOP
    MyBatis 配置模板
    Spring5【五】Bean 的自动装配及注解开发
    Spring5【四】依赖注入(DI)
    Spring5【三】IoC 创建对象的方式及配置说明
    Spring5【一】Spring 简介
    MyBatis【七】缓存
  • 原文地址:https://www.cnblogs.com/lurenjia1994/p/9528186.html
Copyright © 2011-2022 走看看