A chronological documentation test project, nothing serious, really!

12 Jan 2018 Exclude certain packages from yum-cron (but not from yum)

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


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

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.

# yum info docker

From repo : rhel-7-server-extras-rpms

Tags: , , , ,

Posted by

28 Nov 2011 Switching to a graphical login on RHEL6

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




You will be greeted with a graphical logon screen the next time you have rebooted your server.

Tags: , , , ,

Posted by

09 Sep 2008 Disable IPv6 on Redhat RHEL5

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


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.

This also works on RHEL6/CentOS6

Tags: , , ,

Posted by