ktlint on AUR (Arch User Repository)

Last updated: November 07,2024

1. Install "ktlint" effortlessly via AUR with the help of a helper(YAY)

a. Install YAY (https://github.com/Jguer/yay)

$ sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si

b. Install ktlint on Arch using YAY

$ yay -S ktlint

* (Optional) Uninstall ktlint on Arch using YAY

$ yay -Rns ktlint

2. Manually Install "ktlint" via AUR

a. Ensure you have the base development tools and git installed with:

$ sudo pacman -S --needed base-devel git

b. Clone ktlint's git locally

$ git clone https://aur.archlinux.org/ktlint.git ~/ktlint

c. Go to ~/ktlint folder and install it

$ cd ~/ktlint $ makepkg -si

3. Information about the ktlint package on Arch User Repository (AUR)

ID: 1128992
Name: ktlint
PackageBaseID: 134196
PackageBase: ktlint
Version: 0.47.0-1
Description: An anti-bikeshedding Kotlin linter with built-in formatter
URL: https://ktlint.github.io/
NumVotes: 5
Popularity: 1.0E-6
OutOfDate:
Maintainer: pschichtel
FirstSubmitted: 1531381773
LastModified: 1661164726
URLPath: /cgit/aur.git/snapshot/ktlint.tar.gz

5. The same packages on other Linux Distributions