How To Install bumblebee-nvidia on Ubuntu 22.04

In this tutorial we learn how to install bumblebee-nvidia on Ubuntu 22.04. bumblebee-nvidia is NVIDIA Optimus support using the proprietary NVIDIA driver

Introduction

In this tutorial we learn how to install bumblebee-nvidia on Ubuntu 22.04.

What is bumblebee-nvidia

bumblebee-nvidia is:

This metapackage ensures that the proprietary NVIDIA driver is installed in a way such that 3D acceleration does not break. It does so by configuring the OpenGL library path to use the Mesa graphics library.

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

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

sudo apt-get update

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

sudo apt-get -y install bumblebee-nvidia

Install bumblebee-nvidia Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install bumblebee-nvidia

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

sudo aptitude -y install bumblebee-nvidia

How To Uninstall bumblebee-nvidia on Ubuntu 22.04

To uninstall only the bumblebee-nvidia package we can use the following command:

sudo apt-get remove bumblebee-nvidia

Uninstall bumblebee-nvidia And Its Dependencies

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

sudo apt-get -y autoremove bumblebee-nvidia

Remove bumblebee-nvidia Configurations and Data

To remove bumblebee-nvidia configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge bumblebee-nvidia

Remove bumblebee-nvidia configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge bumblebee-nvidia

References

Summary

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