feat(llama.cpp): add llama.cpp comprehensive recipes

Covers building, installing, running models with llama-server, and complete uninstallation of llama.cpp.
This commit is contained in:
2026-07-28 16:31:49 -03:00
parent 6cf5a08187
commit f568e43362
3 changed files with 226 additions and 0 deletions
@@ -0,0 +1,55 @@
# Uninstall llama.cpp
This recipe completely removes llama.cpp from Ubuntu, including installed binaries, libraries, and the cloned source repository.
## Stop Running Sessions
```bash
tmux kill-session -t llama
```
## Remove Installed Binaries
```bash
sudo rm -f /usr/local/bin/llama*
```
## Remove Installed Libraries
```bash
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`).
```bash
rm -rf <PATH>
```
## Remove Build Dependencies (Optional)
Only run this if the packages are not needed by other projects.
```bash
sudo apt purge -y build-essential cmake libcurl4-openssl-dev
sudo apt autoremove -y
```
## Verify Removal
Check that the binary is no longer available.
```bash
which llama
```
Expected output:
```text
(no output)
```