How To Install msp430-libc on Ubuntu 18.04

In this tutorial we learn how to install msp430-libc on Ubuntu 18.04. msp430-libc is Standard C library for TI MSP430 development

Introduction

In this tutorial we learn how to install msp430-libc on Ubuntu 18.04.

What is msp430-libc

msp430-libc is:

Standard library used to the development of C programs for the Texas Instruments MSP430 micro controllers. This package contains static libraries as well as the headers to be used with MSP430 cross-compilers.

This package is primarily intended to be used by MSP430 developers, in conjunction with a suitable toolchain.

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

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

sudo apt-get update

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

sudo apt-get -y install msp430-libc

Install msp430-libc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install msp430-libc

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

sudo aptitude -y install msp430-libc

How To Uninstall msp430-libc on Ubuntu 18.04

To uninstall only the msp430-libc package we can use the following command:

sudo apt-get remove msp430-libc

Uninstall msp430-libc And Its Dependencies

To uninstall msp430-libc and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove msp430-libc

Remove msp430-libc Configurations and Data

To remove msp430-libc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge msp430-libc

Remove msp430-libc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge msp430-libc

References

Summary

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