0

I tried

sudo apt install clang-format 

but I get the following error:

E: Unable to locate package clang-format

1 Answers1

1

The package is available from Jessie-backports.

Add backports to your sources.list :

echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list

Then install clang-format:

apt-get update
apt-get -t jessie-backports install clang-format-6.0

The package is only available from jessie backports you can just type:

apt-get update
apt-get install clang-format-6.0

You should run the above commands as root or using sudo if its is already installed.

Matt Hargett
  • 1,906
  • 1
  • 17
  • 37
GAD3R
  • 4,317
  • 1
  • 23
  • 34