How to upgrade the Boost library on Ubuntu

If you use Ubuntu LTS, you are stuck with a pretty old version of the Boost library. You can upgrade to the latest version of Boost in a few steps:

  • First uninstall all the Boost library packages of the current version.

  • Next, add the PPA ppa:boost-latest/ppa and upgrade your installation:

$ sudo add-apt-repository ppa:boost-latest/ppa
$ sudo apt-get update
  • Look at the latest version Boost library packages available to you and install those that you need:
$ aptitude search boost
$ sudo apt-get install libboost1.54-dev

Tried with: Ubuntu 12.04

3 thoughts on “How to upgrade the Boost library on Ubuntu

  1. Just a WARNING – I’ve tried this solution and the command
    sudo apt-get install libboost1.54-dev
    wiped out A LOT of my programs (ros, gazebo.. ).


  2. This is a timesaver, because you don’t need to compile your own version of libboost, but please be aware that you don’t have only to uninstall the current libboost, but also “apt-get autoremove” to clean up for the new installation of the binary version.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.