yum / rpm

# list installed packages
yum list installed

# get instaled version
rpm -qa --qf "%{version}-%{release}" openssl

# install bash-completion
yum install -y bash-completion