How To Install lsw on Fedora 36

In this tutorial we learn how to install lsw in Fedora 36. lsw is Prints all window titles of DISPLAY to standard output

Introduction

In this tutorial we learn how to install lsw on Fedora 36.

What is lsw

Lists the titles of all running X windows to stdout, similar to ls(1). Might be useful for script integration.

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

Install lsw on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install lsw

Install lsw on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install lsw

How To Uninstall lsw on Fedora 36

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

sudo dnf remove lsw

lsw Package Contents on Fedora 36

/usr/bin/lsw
/usr/lib/.build-id
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/75bbdf6b78f98ef7207a1bfb2678694d532286
/usr/share/doc/lsw
/usr/share/doc/lsw/README
/usr/share/licenses/lsw
/usr/share/licenses/lsw/LICENSE
/usr/share/man/man1/lsw.1.gz

References

Summary

In this tutorial we learn how to install lsw on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).