I had been using Ubuntu and recently migrated to RedHat.
The apt-get install
auto completion is very handy, so I supposed yum install
should have this function as well, but seemed it doesn't.
Is there package name tab completion of yum install
?
RedHat – yum install completion
redhat
Best Answer
first check that you have the bash_completion package installed;
If you are on rhel/centos, check that it being sourced in your
.bashrc
file, like so;otherwise bash_completions are loaded from
/etc/profile.d
on fedora;to test it, you can manually source the file, and see if it working as you want; (centos/rhel)
if you are using fedora, you will need this instead;
note:
whether this is the best way to search for installable packages is debatable, but I actually didn't realise you could do this until I just tried....
... ...
etc etc