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
Download the
bash-completion
RPMwget http://www.caliban.org/files/redhat/RPMS/noarch/bash-completion-20060301-1.noarch.rpm
Install the RPM
rpm -ivh bash-completion-20060301-1.noarch.rpm
Execute the command
. /etc/bash_completion
Now you can try the autocompletion
yum ins — [TAB][TAB]
Edit: for Centos 6, you can grab this RPM