If you have access to the packages directory but your machine is not registered you can use the command to install the package, remember to have dependencies resolved.
$ yum --nogpgcheck localinstall <package_name>.rpm
you can also use:
$ rpm -i <package_name>.rpm
In order to upgrade a specific package in Debian-based Linux operating systems, use apt-get install and provide upgrade flag:
# apt-get install –only-upgrade <package_name>
yum update 'vi*'
Upgrade entire system:
Yum configuration file:
To refresh available repos:
$ yum repolist
Clean local yum cache database:
yum clean all
Build cache for enabled repos:
* you can use wildcards