如何在AWS Linux上安装Fish Shell

Dev*_*air 2 linux shell amazon-web-services fish

我似乎无法在AWS Linux实例上安装Fish shell。我不断收到以下错误,但似乎找不到解决方法。

[root@ip-172-31-20-125 ec2-user]# yum -y install fish
Loaded plugins: priorities, update-motd, upgrade-helper
Repository shells_fish_release_2 is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package fish.x86_64 0:2.5.0-1.2 will be installed
--> Processing Dependency: hostname for package: fish-2.5.0-1.2.x86_64
--> Finished Dependency Resolution
Error: Package: fish-2.5.0-1.2.x86_64 (shells_fish_release_2)
           Requires: hostname
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Run Code Online (Sandbox Code Playgroud)

at0*_*mzk 8

与Centos 6相同。

从:

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo
yum install fish
Run Code Online (Sandbox Code Playgroud)

  • 更改 repos.d 文件后,您需要运行“yum clean all”。 (2认同)