yum tips and tricks
The “yum” is a powerful and useful command. We will present here some options of this command. Hopefully, you will find these tips helpful and that you learn something.
Applying only security update
To be able to apply only security update on your server, we first need to install a plugin for this purpose. You can install it with this command:
yum install yum-security
After that, we can use this plugin to update your computer to the latest security fixes :
yum update--security
Applying all update except the kernel update
On some system, you may want to apply all update, except the one concerning the kernel. To put this exception , add the following line to the file /etc/yum.conf ;
echo 'exclude=kernel*' >> /etc/yum.conf
Applying all update except the kernel update
In order to enable the automatic update system run following commands:
chkconfig --add yum-autoupdate service yum-autoupdate start
In order to disable the system run:
service yum-autoupdate stop chkconfig --del yum-autoupdate

Recent Comments