How To Install lirc on Ubuntu 20.04

In this tutorial we learn how to install lirc on Ubuntu 20.04. lirc is Infra-red remote control support - daemons and utils Infra-red remote control support - daemons and utils

Introduction

In this tutorial we learn how to install lirc on Ubuntu 20.04.

What is lirc

lirc is:

LIRC stands for ‘Linux Infra-red Remote Control’.

This package provides the daemons and some utilities to support infra-red remote controls under Linux.

Package: lirc Architecture: amd64 Version: 0.10.1-6.1 Priority: extra Section: universe/utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Lirc Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2430 Depends: liblirc0 (= 0.10.1-6.1), lsb-base (>= 3.0-6), python3, python3:any, libasound2 (>= 1.0.16), libc6 (>= 2.27), libftdi1-2 (>= 1.2), libgcc-s1 (>= 3.0), liblirc-client0, libportaudio2 (>= 19+svn20101113), libstdc++6 (>= 5.2), libsystemd0, libusb-0.1-4 (>= 2:0.1.12), libusb-1.0-0 (>= 2:1.0.12) Recommends: gir1.2-vte, python3-yaml, python3-gi, systemd Suggests: lirc-compat-remotes, lirc-drv-irman, lirc-doc, lirc-x, setserial, ir-keytable Breaks: inputlirc (« 19), lirc-modules-source (« 0.9~), lirc-svga (« 0.9~) Filename: pool/universe/l/lirc/lirc_0.10.1-6.1_amd64.deb Size: 462564 MD5sum: 09941bc66c22cba88f4e52ce90d699be SHA1: 7f2eb01d3b3170bb8f116cef6ef1f1d1fcb21692 SHA256: a992419c7c0d555b535e6c921ff6591b11879d76e39c0874c17467529ed7d9ee Homepage: https://sf.net/p/lirc Description-en: Infra-red remote control support - daemons and utils LIRC stands for ‘Linux Infra-red Remote Control’.

This package provides the daemons and some utilities to support infra-red remote controls under Linux.

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

Install lirc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install lirc

Install lirc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lirc

Install lirc Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install lirc

How To Uninstall lirc on Ubuntu 20.04

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

sudo apt-get remove lirc

Uninstall lirc And Its Dependencies

To uninstall lirc and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove lirc

Remove lirc Configurations and Data

To remove lirc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge lirc

Remove lirc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lirc

References

Summary

In this tutorial we learn how to install lirc package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.