23 May 2014

yum update hung due to loading lots of plugins

After adding my new repository, yum update takes forever to finish:

# yum update
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data, keys, kmod, list-data, protect-packages, protectbase, rhnplugin, security, tmprepo,
              : verify, versionlock


I noticed yum loading lots of plugins, so I disabled the yum plugins and issue resolved:

# cat /etc/yum.conf |grep plugins
plugins=0





7 May 2014

Install Desktop Environment Redhat/CentOS 7

I've recently installed CentOS 7 VM minimal and after installation finished and system rebooted I noticed there is no desktop installed.

Here is the steps to install gnome via command line:


1. Install the Gnome desktop package group:

# yum -y groups install "GNOME Desktop"


2. Switch to runlevel 5 for graphical environment

# init 5


3. Set the graphical environment as default runlevel after rebooting system:

# systemctl enable graphical.target --force
rm '/etc/systemd/system/default.target' ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'