# Install ccls with Homebrew, apk, apt, MacPorts, Nix, pacman, zypper

C/C++/ObjC language server. Version 0.20250815.1 via Homebrew; verified 2026-07-10. Also installable with debian: sudo apt install ccls.

## Install

```sh
sudo av install brew:ccls
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ccls
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ccls
```

  Evidence: MacPorts ports tree: devel/ccls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ccls
```

  Evidence: Alpine Linux edge package indexes: ccls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ccls
```

  Evidence: Debian stable package indexes: ccls from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ccls
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cc/ccls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ccls
```

  Evidence: Arch Linux sync databases: ccls from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ccls
```

  Evidence: openSUSE Tumbleweed package metadata: ccls from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:ccls
- **Package manager:** Homebrew
- **Version:** 0.20250815.1
- **Source summary:** C/C++/ObjC language server
- **Homepage:** <https://github.com/MaskRay/ccls>
- **Repository:** <https://github.com/MaskRay/ccls>
- **Last updated:** 2026-07-10T13:05:06-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ccls (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.20250815.1
## Project history and usage

ccls is a C, C++, and Objective-C language server. Its README says it originates from cquery and supports completion, cross references, hierarchies, formatting, diagnostics, semantic highlighting, and whole-project indexing.

### Project history

The official GitHub repository was created in March 2018. The README explicitly frames ccls as originating from cquery, another C/C++ language-server project, and describes ccls' distinguishing emphasis on indexing the whole project while serving requests before indexing is complete.

### Adoption history

The supplied package facts show ccls packaged broadly across Alpine, Homebrew, Debian, MacPorts, Nix, Arch, Ubuntu, and openSUSE. That spread reflects language-server adoption by editors and distributions after the Language Server Protocol became common infrastructure.

### How it is used

A typical ccls setup gives the server a project-root compile_commands.json generated by the build system, or a project-root .ccls file containing compiler flags. Editors then speak LSP to ccls for code completion, navigation, references, diagnostics, and semantic highlighting.

### Why package nerds care

ccls is significant because it packages a clang-based language server as a standalone system dependency instead of binding users to one editor extension. For package managers, it is the sort of developer-tool daemon that makes editor integrations reproducible across machines.

### Timeline

- 2018: GitHub repository created.
- 2018: README documents ccls as originating from cquery and able to index itself, FreeBSD, glibc, Linux, LLVM, and musl.
- 2025: GitHub tags show continued dated releases.

### Related projects

- The README names cquery as the origin project and relies on clang-style compilation databases such as compile_commands.json.

### Sources

- <https://api.github.com/repos/MaskRay/ccls>
- <https://github.com/MaskRay/ccls>
- <https://github.com/MaskRay/ccls/wiki>
- <https://github.com/MaskRay/ccls#readme>
- <https://formulae.brew.sh/api/formula/ccls.json>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: <project-root>/compile_commands.json, <project-root>/.ccls
## Other Package-Manager Records

- Debian apt - ccls - 0.20241108-1: normalized package name match | Debian stable package indexes: ccls from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C/C++/ObjC language server | https://github.com/MaskRay/ccls
- Nix - ccls: normalized package name match | nixpkgs package indexes: pkgs/by-name/cc/ccls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ccls - 0.20240202-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ccls from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C/C++/ObjC language server | https://github.com/MaskRay/ccls
- apk - ccls - 0.20250815.1-r1: normalized package name match | Alpine Linux edge package indexes: ccls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C/C++/Objective-C language server | https://github.com/MaskRay/ccls
- pacman - ccls - 0.20250815.1-2: normalized package name match | Arch Linux sync databases: ccls from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting | https://github.com/MaskRay/ccls
- zypper - ccls - 0.20250815.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: ccls from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C/C++/ObjC language server | https://github.com/MaskRay/ccls
- MacPorts - ccls: normalized package name match | MacPorts ports tree: devel/ccls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ccls.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ccls.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
