How to Install and Uninstall clang-format Package on Debian 12 (Bookworm)
Last updated: February 03,2025
Notice
You can also install and uninstall the clang-format on the following distributions in the same way, as they are all based on the Debian system
- MX Linux 23
- SparkyLinux
1. Install "clang-format" package
This tutorial shows how to install clang-format on Debian 12 (Bookworm)
$
sudo apt update
Copied
$
sudo apt install
clang-format
Copied
2. Uninstall "clang-format" package
Please follow the guidance below to uninstall clang-format on Debian 12 (Bookworm):
$
sudo apt remove
clang-format
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the clang-format package on Debian 12 (Bookworm)
Package: clang-format
Source: llvm-defaults (0.55.7~deb12u1)
Version: 1:14.0-55.7~deb12u1
Installed-Size: 29
Maintainer: LLVM Packaging Team
Architecture: amd64
Replaces: clang (<< 1:3.6-28)
Depends: clang-format-14 (>= 14~)
Breaks: clang (<< 1:3.6-28)
Description: Tool to format C/C++/Obj-C code
Description-md5: b50362fb3abbe4fca65017f3e1c209b3
Multi-Arch: same
Section: devel
Priority: optional
Filename: pool/main/l/llvm-defaults/clang-format_14.0-55.7~deb12u1_amd64.deb
Size: 5256
MD5sum: 8f28de6e8da60b5a3a43583d1368de51
SHA256: cf7fe6008f25d3abdb607abb90d07d7615e1c8bdc74943a0cde4e5ce3b65de68
Source: llvm-defaults (0.55.7~deb12u1)
Version: 1:14.0-55.7~deb12u1
Installed-Size: 29
Maintainer: LLVM Packaging Team
Architecture: amd64
Replaces: clang (<< 1:3.6-28)
Depends: clang-format-14 (>= 14~)
Breaks: clang (<< 1:3.6-28)
Description: Tool to format C/C++/Obj-C code
Description-md5: b50362fb3abbe4fca65017f3e1c209b3
Multi-Arch: same
Section: devel
Priority: optional
Filename: pool/main/l/llvm-defaults/clang-format_14.0-55.7~deb12u1_amd64.deb
Size: 5256
MD5sum: 8f28de6e8da60b5a3a43583d1368de51
SHA256: cf7fe6008f25d3abdb607abb90d07d7615e1c8bdc74943a0cde4e5ce3b65de68