How To Install rofi on Kali Linux

In this tutorial we learn how to install rofi on Kali Linux. rofi is window switcher, run dialog and dmenu replacement

Introduction

In this tutorial we learn how to install rofi on Kali Linux.

What is rofi

rofi is:

rofi can act as an application launcher, window switcher, ssh launcher and dmenu replacement.

Included features:

  • Full (configurable) keyboard navigation
  • Type to filter
    • Tokenized: Type any word in any order to filter
    • Case insensitive
  • UTF-8 enabled
    • UTF-8 aware string collating
    • intl. keyboard support (`e -> ?)
  • Pango font rendering
  • RTL language support
  • Window Switcher
    • I3 support (requires i3-wm to be installed)
    • EWMH compatible WM
  • Run dialog
  • Desktop File Run dialog
  • SSH launcher
  • History based ordering based on use. (optional)
  • Levenshtein distance ordering of matches. (optional)
  • Drop in dmenu replacement (with many added improvements).
  • Can be easily extended using scripts.

There are three methods to install rofi on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rofi Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rofi using apt-get by running the following command:

sudo apt-get -y install rofi

Install rofi Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rofi using apt by running the following command:

sudo apt -y install rofi

Install rofi Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rofi using aptitude by running the following command:

sudo aptitude -y install rofi

How To Uninstall rofi on Kali Linux

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

sudo apt-get remove rofi

Uninstall rofi And Its Dependencies

To uninstall rofi and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove rofi

Remove rofi Configurations and Data

To remove rofi configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge rofi

Remove rofi configuration, data, and all of its dependencies

We can use the following command to remove rofi configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rofi

Dependencies

rofi have the following dependencies:

References

Summary

In this tutorial we learn how to install rofi package on Kali Linux using different package management tools: apt, apt-get and aptitude.