How To Install / Upgrade systemd on RHEL/CentOS 7.0

August 25, 2014 | By
| 1 Reply More

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:

[root@linoxide systemd-216]# systemctl --version

Current Version

2. Get new tar for update

We can get the package using wget command:

[root@linoxide ~]# 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:

[root@linoxide ~]# tar -xJf systemd-216.tar.xz

Extracting the downloaded file

Descend into the newly created directory:

[root@linoxide ~]# cd systemd-216
[root@linoxide 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:


[root@linoxide systemd-216]# yum install gcc intltool gperf glib2-devel

installation of dependencies

5. Configure

Now lets try to configure the package with configure script.

[root@linoxide 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:

[root@linoxide 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.

[root@linoxide 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.

[root@linoxide 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:

[root@linoxide systemd-216]# echo $?

Previous command's exit status

7. Install systemd

Now we install this new version with make install

[root@linoxide systemd-216]# make install

make install

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

[root@linoxide systemd-216]# systemctl --version

Checking installation of new version

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

[root@linoxide ~]# networkctl --help

Check networkctl command

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


Free Linux Ebook to Download

Comments (1)

Trackback URL | Comments RSS Feed

  1. sa says:

    I got this error running ./configure on Centos 7 :

    configure: error: *** ln doesn't support --relative ***

Leave a Reply

All comments are subject to moderation.