notes

Log | Files | Refs

yay.txt (971B)


      1 YAY (Arch Linux)
      2 
      3 Update and upgrade:
      4 yay -Syu
      5 
      6 Install a package:
      7 yay -S <package_name>
      8 
      9 Search for a package:
     10 yay -Ss <query>
     11 
     12 Remove a package:
     13 yay -Rs <package_name>
     14 
     15 Clean cache:
     16 yay -Sc
     17 
     18 Build from AUR:
     19 yay -S --build-deps <package_name>
     20 
     21 ====================================================================
     22 
     23 Go AUR packages: "Permission denied" on cache cleanup
     24 When updating Go-based AUR packages (e.g. nats-server), yay may fail with:
     25   rm: cannot remove '.../gopath/pkg/mod/...': Permission denied
     26   error making: <package>: user defined signal 1
     27 
     28 Cause: go mod download marks module cache files read-only (444/555). yay's
     29 post-build cleanup cannot rm them, so the build aborts even though compile
     30 may have succeeded.
     31 
     32 Fix before rebuilding:
     33 chmod -R u+w ~/.cache/yay/<package>/src
     34 rm -rf ~/.cache/yay/<package>/src/gopath
     35 yay -S <package>
     36 
     37 Or wipe the whole package cache:
     38 chmod -R u+w ~/.cache/yay/<package>
     39 rm -rf ~/.cache/yay/<package>/src
     40 yay -S <package>