Package bash-completion missing from Yum in CentOS

CentOS needs to have EPEL Yum repository enabled in order to install bash-completion package.

See https://fedoraproject.org/wiki/EPEL for details.


There is only one command you have to get bash-completion:

yum install epel-release.noarch bash-completion.noarch

  1. Download the bash-completion RPM

    wget http://www.caliban.org/files/redhat/RPMS/noarch/bash-completion-20060301-1.noarch.rpm

  2. Install the RPM

    rpm -ivh bash-completion-20060301-1.noarch.rpm

  3. Execute the command

    . /etc/bash_completion

  4. Now you can try the autocompletion

    yum ins — [TAB][TAB]

Edit: for Centos 6, you can grab this RPM

Tags:

Yum

Centos

Dnf