Covers building, installing, running models with llama-server, and complete uninstallation of llama.cpp.
966 B
966 B
Uninstall llama.cpp
This recipe completely removes llama.cpp from Ubuntu, including installed binaries, libraries, and the cloned source repository.
Stop Running Sessions
tmux kill-session -t llama
Remove Installed Binaries
sudo rm -f /usr/local/bin/llama*
Remove Installed Libraries
sudo rm -f /usr/local/lib/libllama*
sudo rm -f /usr/local/lib/libggml*
sudo rm -rf /usr/local/include/llama.h /usr/local/include/ggml*
sudo ldconfig
Remove Cloned Repository
Replace <PATH> with the path where the repository was cloned (e.g. ~/llama.cpp).
rm -rf <PATH>
Remove Build Dependencies (Optional)
Only run this if the packages are not needed by other projects.
sudo apt purge -y build-essential cmake libcurl4-openssl-dev
sudo apt autoremove -y
Verify Removal
Check that the binary is no longer available.
which llama
Expected output:
(no output)