How To Install bluez on Ubuntu 20.04

In this tutorial we learn how to install bluez on Ubuntu 20.04. bluez is Bluetooth tools and daemons Bluetooth tools and daemons Bluetooth tools and daemons

Introduction

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

What is bluez

bluez is:

This package contains tools and system daemons for using Bluetooth devices.

BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL). Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: bluez Architecture: amd64 Version: 5.53-0ubuntu3.2 Multi-Arch: foreign Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Bluetooth team [email protected] Original-Maintainer: Debian Bluetooth Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4795 Depends: libc6 (>= 2.17), libdbus-1-3 (>= 1.9.14), libglib2.0-0 (>= 2.31.8), libreadline8 (>= 6.0), libudev1 (>= 196), kmod, udev (>= 170-1), lsb-base, dbus Conflicts: bluez-alsa, bluez-audio (<= 3.36-3), bluez-utils (<= 3.36-3) Breaks: udev (« 170-1) Replaces: bluez-alsa, bluez-audio (<= 3.36-3), bluez-input, bluez-network, bluez-serial, bluez-utils (<= 3.36-3), udev (« 170-1) Filename: pool/main/b/bluez/bluez_5.53-0ubuntu3.2_amd64.deb Size: 978944 MD5sum: a15c24b6d5b9d225fc2b115ef794b992 SHA1: ada3523191582395bfdfd3f10ab49f0fd3fcafd4 SHA256: 255c99213998e8a6e107df614a1f35debf4e674881ee5af9eaeff48a51272744 SHA512: 59f57d747f2801cb134861e43d68bdb3fccecb2029bceef4d982554c0b37f45b10dcdcadaa3cc35a980a1c0be791e55a2c3667689a9fc217832cd7353c01a07f Homepage: http://www.bluez.org Description-en: Bluetooth tools and daemons This package contains tools and system daemons for using Bluetooth devices.

BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL). Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: bluez Architecture: amd64 Version: 5.53-0ubuntu3 Multi-Arch: foreign Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Bluetooth team [email protected] Original-Maintainer: Debian Bluetooth Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4795 Depends: libc6 (>= 2.17), libdbus-1-3 (>= 1.9.14), libglib2.0-0 (>= 2.31.8), libreadline8 (>= 6.0), libudev1 (>= 196), kmod, udev (>= 170-1), lsb-base, dbus Conflicts: bluez-alsa, bluez-audio (<= 3.36-3), bluez-utils (<= 3.36-3) Breaks: udev (« 170-1) Replaces: bluez-alsa, bluez-audio (<= 3.36-3), bluez-input, bluez-network, bluez-serial, bluez-utils (<= 3.36-3), udev (« 170-1) Filename: pool/main/b/bluez/bluez_5.53-0ubuntu3_amd64.deb Size: 981132 MD5sum: 304ce3bc5b2b6e869b72a2588b826e24 SHA1: ffa46061cb8b097d8827158498645e41b28bbc73 SHA256: 1bc506e6551812b6afb39f66fa0a9ebfae1166801d2b5b3122f5ff682c02c75f Homepage: http://www.bluez.org Description-en: Bluetooth tools and daemons This package contains tools and system daemons for using Bluetooth devices.

BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL). Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install bluez 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 bluez Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install bluez

Install bluez Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install bluez

Install bluez 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 bluez using aptitude by running the following command:

sudo aptitude -y install bluez

How To Uninstall bluez on Ubuntu 20.04

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

sudo apt-get remove bluez

Uninstall bluez And Its Dependencies

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

sudo apt-get -y autoremove bluez

Remove bluez Configurations and Data

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

sudo apt-get -y purge bluez

Remove bluez configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge bluez

References

Summary

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