install fish shell in amazon ec2 instance

Switch to root

First we need to be root to install it. do
sudo su –

install using yum

go to :

As of today(2016-4-14), it is:

yum-config-manager --add-repo
yum -y install fish

follow the ‘Red Hat Enterprise Linux/CentOS 6‘ instruction, you should be good to go. 🙂


On CentOS 7 run the following as root:

cd /etc/yum.repos.d/
yum install fish

3 Comments Add yours

  1. darnel says:

    I’m still ending on, did this happen to you? Thanks

    # yum-config-manager –add-repo
    Loaded plugins: priorities, update-motd, upgrade-helper
    adding repo from:
    grabbing file to /etc/yum.repos.d/fish.release:2.repo
    fish.release:2.repo | 312 B 00:00
    repo saved to /etc/yum.repos.d/fish.release:2.repo
    # yum install fish
    Loaded plugins: priorities, update-motd, upgrade-helper
    Resolving Dependencies
    –> Running transaction check
    —> Package fish.x86_64 0:2.3.1-1.1 will be installed
    –> Processing Dependency: hostname for package: fish-2.3.1-1.1.x86_64
    –> Finished Dependency Resolution
    Error: Package: fish-2.3.1-1.1.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

    1. LeOn says:

      That is odd, I have been installing fish for a lot of instances, this never happens to me. Some problem I used to have is no internet connection from our vpc and then i cannot even add the repo.

      1. vojtechjirkovsky says:

        I resolve it by downloading .rpm file and installing using “rpm -i …” i.e. without yum.

Leave a Reply to darnel Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s