How To Install / Upgrade systemd on RHEL/CentOS 7.0

Centos/RHEL already adopted using systemd from version 7.0. In this article, we explore how this new upgrade release systemd 216 can be installed. The new release of systemd brings some new features. New commands like networkctl are introduced in this new version.

1. Check Current systemd Version

First of all, we proceed with checking the current version of systemd:

[[email protected] systemd-216]# systemctl --version

Current Version

2. Get new tar for update

We can get the package using wget command:

[[email protected] ~]# wget

Get the package using wget

3. Extract the file

The downloaded package is an XZ compressed file. We use -J switch of tar command to extract the package:

[[email protected] ~]# tar -xJf systemd-216.tar.xz

Extracting the downloaded file

Descend into the newly created directory:

[[email protected] ~]# cd systemd-216
[[email protected] systemd-216]# pwd

descend into directory

4. Pre-installation preparation

In order to successfully run the configure script, following packages are required to be installed:


[[email protected] systemd-216]# yum install gcc intltool gperf glib2-devel

installation of dependencies

5. Configure

Now lets try to configure the package with configure script.

[[email protected] systemd-216]# ./configure

Running configure script

You might get error like in the following screen with the configure script:

POSIX caps headers not found

5.1 Install additional packages required

Installing the libcap-devel package will remove this error with configure script:

[[email protected] systemd-216]# yum -y install libcap-devel

libcap_devel installation

If it asks you to install additional packages, install those as well. For my system, it could not found libzmz package.

Error for libzmz

Install xz-devel to remove this error.

[[email protected] systemd-216]# yum search xz-devel

Installing xz-devel

6. Compile

Once the configure script is complete, we proceed with the compilation with make command.

[[email protected] systemd-216]# make

Compiling with make command

It may take a while for this command to complete depending on the system configuration.

You can check if the last command executed successfully with following command:

[[email protected] systemd-216]# echo $?

Previous command's exit status

7. Install systemd

Now we install this new version with make install

[[email protected] systemd-216]# make install

make install

If everything worked fine, you will be able to see the newly installed version:

[[email protected] systemd-216]# systemctl --version

Checking installation of new version

You can also check that the networkctl commnad is working with this new version.

[[email protected] ~]# networkctl --help

Check networkctl command

It may be wise to reboot the system before u start using the new version.

Raghu 9:04 am

About Raghu

Raghu is working as Linux Server Administrator in Acknown Technologies Pvt. Ltd. He has been using Linux from last 5 years. He completed his RHCE certification in 2009. He likes to read about Linux and other Open Source Technologies and write articles on these.

Author's All Posts
Like to become part of Linoxide Team and contribute tips? Contact us here.


Your email address will not be published. Required fields are marked *

All comments are subject to moderation.