itsfosslinux

How to Install libboost-all-dev package on Ubuntu or Debian

In this article, we will see how to install libboost-all-dev package on Ubuntu or Debian.
libboost-all-dev is a package in Linux distributions that installs the Boost libraries, a set of highly regarded, portable, open-source C++ libraries. Boost provides a broad range of functionality, including support for tasks like threading, random number generation, computational geometry, and linear algebra.

The package libboost-all-dev is a convenient way to install all the development files of the Boost library, which is useful for C++ developers needing a wide array of functionalities. This package is commonly installed when compiling C++ applications that depend on multiple Boost libraries. Here we will see how to install libboost-all-dev package on Ubuntu or Debian based linux systems.

 

How to Install libboost-all-dev package on Ubuntu or Debian

How to Install libboost-all-dev package on Ubuntu or Debian

Also Read: How to Install Rterm (R terminal) on Ubuntu or Debian

Step 1: Prerequisites

a) You should have a running Ubuntu or Debian Server.

b) You should have sudo or root access to run privileged commands.

c) You should have apt or apt-get utility installed in your Server.

d) You should also have dpkg utility available in your Server.

 

Step 2: Update Your Server

In order to keep system safe and secure from all security vulnerabilities, it is required to install all the latest available updates from default Ubuntu repo by using sudo apt update && sudo apt upgrade command as shown below.

itsfosslinux@ubuntu:~$ sudo apt update && sudo apt upgrade
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:4 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:5 https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu focal InRelease
Hit:6 https://pkg.jenkins.io/debian-stable binary/ Release
Hit:7 http://in.archive.ubuntu.com/ubuntu focal InRelease
Get:8 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:9 https://download.sublimetext.com apt/stable/ InRelease
Get:10 https://repositories.timber.io/public/vector/deb/ubuntu focal InRelease [4,947 B]
Hit:11 https://ngrok-agent.s3.amazonaws.com buster InRelease
Hit:12 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:14 http://ppa.launchpad.net/flatpak/stable/ubuntu focal InRelease
Hit:15 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
Hit:16 http://ppa.launchpad.net/gencfsm/ppa/ubuntu focal InRelease
Hit:17 http://ppa.launchpad.net/juju/stable/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal InRelease
.........................................................

 

 

Step 3: Install libboost-all-dev

You can install libboost-all-dev package from default Ubuntu repo by using sudo apt-get install libboost-all-dev command as shown below. This will download and install the package along with all its dependencies.

itsfosslinux@ubuntu:~$ sudo apt-get install libboost-all-dev
[sudo] password for itsfosslinux:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ibverbs-providers libboost-atomic-dev libboost-atomic1.71-dev libboost-atomic1.71.0 libboost-chrono-dev libboost-chrono1.71-dev libboost-chrono1.71.0
libboost-container-dev libboost-container1.71-dev libboost-container1.71.0 libboost-context-dev libboost-context1.71-dev libboost-context1.71.0
libboost-coroutine-dev libboost-coroutine1.71-dev libboost-coroutine1.71.0 libboost-date-time-dev libboost-date-time1.71-dev libboost-dev
libboost-exception-dev libboost-exception1.71-dev libboost-fiber-dev libboost-fiber1.71-dev libboost-fiber1.71.0 libboost-filesystem-dev
libboost-filesystem1.71-dev libboost-graph-dev libboost-graph-parallel-dev libboost-graph-parallel1.71-dev libboost-graph-parallel1.71.0
libboost-graph1.71-dev libboost-graph1.71.0 libboost-iostreams-dev libboost-iostreams1.71-dev libboost-locale-dev libboost-locale1.71-dev
libboost-log-dev libboost-log1.71-dev libboost-log1.71.0 libboost-math-dev libboost-math1.71-dev libboost-math1.71.0 libboost-mpi-dev
libboost-mpi-python-dev libboost-mpi-python1.71-dev libboost-mpi-python1.71.0 libboost-mpi1.71-dev libboost-mpi1.71.0 libboost-numpy-dev
libboost-numpy1.71-dev libboost-numpy1.71.0 libboost-program-options-dev libboost-program-options1.71-dev libboost-program-options1.71.0
libboost-python-dev libboost-python1.71-dev libboost-python1.71.0 libboost-random-dev libboost-random1.71-dev libboost-random1.71.0 libboost-regex-dev
libboost-regex1.71-dev libboost-serialization-dev libboost-serialization1.71-dev libboost-serialization1.71.0 libboost-stacktrace-dev
libboost-stacktrace1.71-dev libboost-stacktrace1.71.0 libboost-system-dev libboost-system1.71-dev libboost-system1.71.0 libboost-test-dev
libboost-test1.71-dev libboost-test1.71.0 libboost-thread-dev libboost-thread1.71-dev libboost-timer-dev libboost-timer1.71-dev libboost-timer1.71.0
libboost-tools-dev libboost-type-erasure-dev libboost-type-erasure1.71-dev libboost-type-erasure1.71.0 libboost-wave-dev libboost-wave1.71-dev
libboost-wave1.71.0 libboost1.71-dev libboost1.71-tools-dev libcaf-openmpi-3 libcoarrays-dev libcoarrays-openmpi-dev libevent-core-2.1-7 libevent-dev
libevent-extra-2.1-7 libevent-openssl-2.1-7 libevent-pthreads-2.1-7 libfabric1 libhwloc-dev libhwloc-plugins libhwloc15 libibverbs-dev libibverbs1
libnl-3-dev libnl-route-3-dev libnuma-dev libopenmpi-dev libopenmpi3 libpmix2 libpsm-infinipath1 libpsm2-2 librdmacm1 libxnvctrl0 mpi-default-bin
mpi-default-dev openmpi-bin openmpi-common
...................................................................

 

 

Step 4: Verify Installation

After successful installation, you can verify installation status by running dpkg -s libboost-all-dev command as shown below. This will not just show the installation status but whole lot of information about the package including the version of the installed package.

itsfosslinux@ubuntu:~$ dpkg -s libboost-all-dev
Package: libboost-all-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 10
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Source: boost-defaults
Version: 1.71.0.0ubuntu2
Depends: libboost-dev, libboost-tools-dev, libboost-atomic-dev, libboost-chrono-dev, libboost-container-dev, libboost-context-dev, libboost-coroutine-dev, libboost-date-time-dev, libboost-exception-dev, libboost-fiber-dev, libboost-filesystem-dev, libboost-graph-dev, libboost-graph-parallel-dev, libboost-iostreams-dev, libboost-locale-dev, libboost-log-dev, libboost-math-dev, libboost-mpi-dev, libboost-mpi-python-dev, libboost-numpy-dev, libboost-program-options-dev, libboost-python-dev, libboost-random-dev, libboost-regex-dev, libboost-serialization-dev, libboost-stacktrace-dev, libboost-system-dev, libboost-test-dev, libboost-thread-dev, libboost-timer-dev, libboost-type-erasure-dev, libboost-wave-dev
Description: Boost C++ Libraries development files (ALL) (default version)
The Boost web site provides free, peer-reviewed, portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. One goal is to establish "existing practice" and
provide reference implementations so that the Boost libraries are
suitable for eventual standardization. Some of the libraries have
already been proposed for inclusion in the C++ Standards Committee's
upcoming C++ Standard Library Technical Report.
.
This metapackage provides the complete Boost development environment,
including all separately-packaged libraries.
.
This package is a dependency package, which depends on Debian's default
Boost version (currently 1.71).
Homepage: https://www.boost.org/
Original-Maintainer: Debian Boost Team <[email protected]>

Leave a comment