centos7
问题概述
方便翻找历史命令
问题原因
解决方案
1、安装python3 ,readline
2、下载 rlwrap-0.45.2-2.el7.x86_64.rpm
安装时报:
[root@opengauss01 ~]# yum -y install rlwrap-0.45.2-2.el7.x86_64.rpm 
 Loaded plugins: fastestmirror
 Examining rlwrap-0.45.2-2.el7.x86_64.rpm: rlwrap-0.45.2-2.el7.x86_64
 Marking rlwrap-0.45.2-2.el7.x86_64.rpm to be installed
 Resolving Dependencies
 –> Running transaction check
 —> Package rlwrap.x86_64 0:0.45.2-2.el7 will be installed
 –> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
 Loading mirror speeds from cached hostfile
 –> Processing Dependency: perl(File::Slurp) for package: rlwrap-0.45.2-2.el7.x86_64
 –> Running transaction check
 —> Package perl-File-Slurp.noarch 0:9999.19-6.el7 will be installed
 —> Package rlwrap.x86_64 0:0.45.2-2.el7 will be installed
 –> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
 –> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
 –> Finished Dependency Resolution
 Error: Package: rlwrap-0.45.2-2.el7.x86_64 (/rlwrap-0.45.2-2.el7.x86_64)
            Requires: /usr/bin/python3
  You could try using --skip-broken to work around the problem
  You could try running: rpm -Va --nofiles --nodigest
查找 /usr/bin/python3 确实存在
[root@opengauss01 ~]# ls -l  /usr/bin/python3 
 lrwxrwxrwx. 1 root root 32 Oct  7 10:24 /usr/bin/python3 -> /usr/python3.6.11/bin/python3.10
需要执行
[root@opengauss01 ~]# yum reinstall centos-release
Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
 Resolving Dependencies
 –> Running transaction check
 —> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be reinstalled
 –> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================
  Package                                                    Arch                                               Version                                                              Repository                                             Size
 
Reinstalling:
  centos-release                                             x86_64                                             7-6.1810.2.el7.centos                                                rhel-ol74                                              26 k
Transaction Summary
Reinstall 1 Package
Total download size: 26 k
 Installed size: 40 k
 Is this ok [y/d/N]: y
 Downloading packages:
 Running transaction check
 Running transaction test
 Transaction test succeeded
 Running transaction
   Installing : centos-release-7-6.1810.2.el7.centos.x86_64            










