Skip to content

Q&A · Answered

How to install software from source on Linux

asked 9 months, 1 week ago 870 views 1 answer
50

I need to install a program that is not available in the package manager. How do I compile from source?

1 Answer

One accepted
12

Accepted answer

Not confirmed since it was written, 9 months, 1 week ago
# Install build dependencies
sudo apt install build-essential

# Download and extract source
wget https://example.com/software.tar.gz
tar -xzvf software.tar.gz
cd software

# Standard build process
./configure
make
sudo make install

# Or with cmake
mkdir build && cd build
cmake ..
make
sudo make install

Your answer

Say what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.

Shown beside your answer and never checked, so it cannot be a name someone already has here.

No account needed to answer. Sign in instead and it carries your name and earns reputation.