How to install software from source on Linux

Answered
Jan 05, 2026 439 views 1 answers
50

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

H
Asked by hassan_ops
Bronze 565 rep

1 Answer

12
# 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
L
Answered by linux_expert 1 week, 2 days ago
Bronze 311 rep

Your Answer

You need to be logged in to answer questions.

Log In to Answer

Hot Questions

No hot questions available.