How To Install libstb0 on Kali Linux

In this tutorial we learn how to install libstb0 on Kali Linux. libstb0 is single-file image and audio processing libraries for C/C++

Introduction

In this tutorial we learn how to install libstb0 on Kali Linux.

What is libstb0

libstb0 is:

libstb is a set of single-file libraries for C/C++. The files are dual-licensed under public domain and the MIT license.

It includes the following modules:

  • stb_vorbis.c: decode ogg vorbis files from file/memory to float/16-bit signed output
  • stb_image.h: image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
  • stb_truetype.h: parse, decode, and rasterize characters from truetype fonts
  • stb_image_write.h: image writing to disk: PNG, TGA, BMP
  • stb_image_resize.h: resize images larger/smaller with good quality
  • stb_rect_pack.h: simple 2D rectangle packer with decent quality
  • stb_sprintf.h: fast sprintf, snprintf for C/C++
  • stretchy_buffer.h: typesafe dynamic array for C (i.e. approximation to vector<>), doesn’t compile as C++
  • stb_textedit.h: guts of a text editor for games etc implementing them from scratch
  • stb_voxel_render.h: Minecraft-esque voxel rendering “engine” with many more features
  • stb_dxt.h: Fabian “ryg” Giesen’s real-time DXT compressor
  • stb_perlin.h: revised Perlin noise (3D input, 1D output)
  • stb_easy_font.h: quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc
  • stb_tilemap_editor.h: embeddable tilemap editor
  • stb_herringbone_wang_tile.h: herringbone Wang tile map generator
  • stb_c_lexer.h: simplify writing parsers for C-like languages
  • stb_divide.h: more useful 32-bit modulus e.g. “euclidean divide”
  • stb_connected_components.h: incrementally compute reachability on grids
  • stb.h: helper functions for C, mostly redundant in C++; basically author’s personal stuff
  • stb_leakcheck.h: quick-and-dirty malloc/free leak-checking

There are three methods to install libstb0 on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libstb0 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libstb0

Install libstb0 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libstb0

Install libstb0 Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libstb0

How To Uninstall libstb0 on Kali Linux

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

sudo apt-get remove libstb0

Uninstall libstb0 And Its Dependencies

To uninstall libstb0 and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libstb0

Remove libstb0 Configurations and Data

To remove libstb0 configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libstb0

Remove libstb0 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libstb0

Dependencies

libstb0 have the following dependencies:

References

Summary

In this tutorial we learn how to install libstb0 package on Kali Linux using different package management tools: apt, apt-get and aptitude.