ast-grep on AUR (Arch User Repository)

Last updated: December 27,2024

1. Install "ast-grep" 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 ast-grep on Arch using YAY

$ yay -S ast-grep

* (Optional) Uninstall ast-grep on Arch using YAY

$ yay -Rns ast-grep

2. Manually Install "ast-grep" via AUR

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

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

b. Clone ast-grep's git locally

$ git clone https://aur.archlinux.org/ast-grep.git ~/ast-grep

c. Go to ~/ast-grep folder and install it

$ cd ~/ast-grep $ makepkg -si

3. Information about the ast-grep package on Arch User Repository (AUR)

ID: 1424875
Name: ast-grep
PackageBaseID: 191346
PackageBase: ast-grep
Version: 0.19.4-1
Description: A fast and polyglot tool for code structural search, lint, rewriting at large scale
URL: https://ast-grep.github.io/
NumVotes: 2
Popularity: 0.158934
OutOfDate:
Maintainer: KokaKiwi
Submitter: YHNdnzj
FirstSubmitted: 1678557488
LastModified: 1710153059
URLPath: /cgit/aur.git/snapshot/ast-grep.tar.gz

5. The same packages on other Linux Distributions