How To Install bkchem on Ubuntu 22.04

In this tutorial we learn how to install bkchem on Ubuntu 22.04. bkchem is Chemical structures editor

Introduction

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

What is bkchem

bkchem is:

BKchem is a free chemical drawing program, which is written in Python.

Some of the features, you can expect:

  • Drawing (bond-by-bond drawing; templates for common rings; expanding of common-groups; draws radicals, charges, arrows; color support …)
  • Editing (unlimited undo and redo capabilities; aligning; scaling; rotation (2D, 3D) …)
  • Export/Import (fully supported SVG-, OpenOffice.org-Draw-, EPS-export; basic support for CML1 and CML2 import and export)

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

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

sudo apt-get update

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

sudo apt-get -y install bkchem

Install bkchem Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install bkchem

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

sudo aptitude -y install bkchem

How To Uninstall bkchem on Ubuntu 22.04

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

sudo apt-get remove bkchem

Uninstall bkchem And Its Dependencies

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

sudo apt-get -y autoremove bkchem

Remove bkchem Configurations and Data

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

sudo apt-get -y purge bkchem

Remove bkchem configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge bkchem

References

Summary

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