How To Install i3lock on CentOS 7

In this tutorial we learn how to install i3lock on CentOS 7. i3lock is Simple X display locker like slock

Introduction

In this tutorial we learn how to install i3lock on CentOS 7.

What is i3lock

i3lock improves slock by making it fork() and therefore combinable with commands to suspend your computer. Additionally, instead of turning off your screen via DPMS and/or displaying a black screen, i3lock displays a white screen so you can see if your computer failed to resume from suspend or if your screen is just locked. Also, when entering a wrong password, i3lock does not call XBell(). This is important because i3lock/slock think you’ve entered a password when resuming from suspend, at least sometimes.

We can use yum or dnf to install i3lock on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install i3lock.

Install i3lock on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install i3lock using yum by running the following command:

sudo yum -y install i3lock

Install i3lock on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install i3lock using dnf by running the following command:

sudo dnf -y install i3lock

How To Uninstall i3lock on CentOS 7

To uninstall only the i3lock package we can use the following command:

sudo dnf remove i3lock

References

Summary

In this tutorial we learn how to install i3lock on CentOS 7 using yum and dnf.