Kicad from Source on Debian 10 (Buster)

Page
# Installing Latest Kicad from Source on Debian 10 (Buster)

# Put

deb http://deb.debian.org/debian buster-backports main contrib non-free

# into /etc/apt/sources.list.d/buster-backports.list

# Then to install Debian's default "Stable" build of Kicad 

apt-get install kicad

# Then to build the latest version from git source...

# apt dependencies

apt-get install cmake doxygen libboost-context-dev libboost-dev libboost-system-dev libboost-test-dev libcairo2-dev libcurl4-openssl-dev libgl1-mesa-dev libglew-dev libglm-dev libngspice0-dev liboce-foundation-dev liboce-ocaf-dev libssl-dev libwxbase3.0-dev libwxgtk3.0-dev python-dev python-wxgtk3.0-dev swig wx-common git libboost1.67-all-dev libgtk-3-dev libwxgtk3.0-gtk3-dev libwxgtk3.0-0v5 libwxgtk-media3.0-gtk3-dev build-essential gcc make


# CMake sets the install path on Linux to /usr/local (by default, which is what we want anyway, so no need for --prefix unless you want to install somewhere else.)
 

git clone --depth=1 https://gitlab.com/kicad/code/kicad.git
cd kicad
mkdir -p build/release
mkdir build/debug    # Optional if you want a debug build.
cd build/release
cmake -DCMAKE_BUILD_TYPE=Release ../../
make -j 8     # Use the total number of threads of your CPU minus two or three so it doesn't eat all the resources.

sudo make install

# Then you can run the git build of Kicad from /usr/local/bin/kicad as well as it's other supporting binaries from /usr/local/bin


# If you want to remove
cd kicad/build/release
sudo make uninstall

# and if you want to clean the source to build again, make clean