How to Install/Upgrade Systemd on RHEL/CentOS 7

how to install systemd

In this tutorial, we will check how to install systemd on Centos 7 system. Ubuntu, Centos/RHEL and many Linux distro's has already adopted using systemd by default.

To have new features immediately you can manually install systemd by compiling from source.

1. Check Current systemd Version

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

[root@linoxide systemd-216]# systemctl --version
check 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 a tar 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 let's 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 by running following systemctl command:

[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.

Read Also:

3 Comments... add one

Leave a Comment