How To Install pianobar on Ubuntu 22.04

In this tutorial we learn how to install pianobar on Ubuntu 22.04. pianobar is console based player for Pandora radio

Introduction

In this tutorial we learn how to install pianobar on Ubuntu 22.04.

What is pianobar

pianobar is:

pianobar is a cross-platform console client for the personalized web radio Pandora, supporting all important features the official Flash™ client has:

* Create, delete, rename stations and add more music
* Rate and temporary ban tracks as well as move them to another station
* “Shared stations”

and some that it does not have (yet):

* last.fm scrobbling
* Proxy support for use in areas not supported by Pandora (outside the USA)

You need an account in order to use this player, so please consider create one for free before using pianobar at https://pandora.com.

There are three methods to install pianobar on Ubuntu 22.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 pianobar Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install pianobar

Install pianobar Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pianobar

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

sudo aptitude -y install pianobar

How To Uninstall pianobar on Ubuntu 22.04

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

sudo apt-get remove pianobar

Uninstall pianobar And Its Dependencies

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

sudo apt-get -y autoremove pianobar

Remove pianobar Configurations and Data

To remove pianobar configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge pianobar

Remove pianobar configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pianobar

References

Summary

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