This is a solution for how you can exclude certain packages being updated when using yum-cron.
Docker and kernel are packages I would like to exclude from yum-cron.
The solution to this is to modify the /etc/yum/yum-cron.conf file adding this to the [base] section
RHEL7/Centos7
[base]
...
exclude = kernel* docker*
On RHEL6/Centos6 you can use the YUM_PARAMETER to do the same thing
YUM_PARAMETER=kernel* docker*
If you would like to exclude certain packages from yum alltogether you need to modify the affected yum repository.
Example to permanently exclude certain packages like Docker from being updated using the yum command/CLI
RHEL7
Modify /etc/yum.repos.d/redhat.repo
Add the following line under [rhel-7-server-extras-rpms]
exclude = docker*
Before adding a exclude command verify that you add the exclude line under the right repository.
Example
# yum info docker
…
From repo : rhel-7-server-extras-rpms
Tags: CentOS, docker, RedHat, rhel6, rhel7
Posted by Hans-Henry Jakobsen
This is a short post on how to install the necessary components to get X Server running on a bare bone RedHat 6 Enterprise Server (CentOS6) installation.
The following commands should be run from a console window as the root user.
Install barebone X support
# yum groupinstall "X Window System"
Install X and the Gnome Environment
# yum groupinstall "X Window System" "GNOME Desktop Environment"
Install X and the KDE Window System
# yum groupinstall "X Window System" KDE
Install the XFCE desktop environment
# yum groupinstall "X Window System" XFCE
When you have chosen your desired desktop environment, make the final change to make the Gnome Display Manager show you a logon screen.
Edit the file /etc/inittab and change the line
from
id:3:initdefault:
to
id:5:initdefault:
You will be greeted with a graphical logon screen the next time you have rebooted your server.
Tags: CentOS, KDE, rhel6, X, XFCE
Posted by Hans-Henry Jakobsen
This post describes how to disable IPv6 on a Redhat (RHEL5) installation. I haven’t had the time to test it on other version of Redhat.
Edit /etc/sysconfig/network and change
NETWORKING_IPV6=no
Edit /etc/modprobe.conf and add these lines
alias net-pf-10 off alias ipv6 off
Stop the ipv6tables service
# service ip6tables stop
Disable the ipv6tables service
# chkconfig ip6tables off
IPv6 will be disabled after the next reboot.
Edit
This also works on RHEL6/CentOS6
Tags: ip6tables, RedHat, rhel5, rhel6
Posted by Hans-Henry Jakobsen