Tidak Ada Deskripsi

morganamilo 602f386b03 Loop over srcinfos instead of pkglist in gendb 6 tahun lalu
.go 67bd8cc9a2 Improve makefile 7 tahun lalu
completions 05587c3a1c Update zsh completion 6 tahun lalu
doc a5ae757803 Merge pull request #615 from Morganamilo/fixargs 6 tahun lalu
testdata 9c44363a7a Do not depend on the Internet for keys_test.go 7 tahun lalu
vendor 2f975c7157 Update vendored dependencies 6 tahun lalu
.gitignore f612d89b49 fix Makefile and fix README 7 tahun lalu
Gopkg.lock 2f975c7157 Update vendored dependencies 6 tahun lalu
Gopkg.toml d6b862357d Replace gopkgbuild with go-srcinfo (#528) 6 tahun lalu
ISSUE_TEMPLATE.md 5d708c7fbb Fix strange linting applied 7 tahun lalu
LICENSE 59daf46714 Create LICENSE 8 tahun lalu
Makefile f8e84658c0 Major version update 6 tahun lalu
README.md 0b9e10e697 Demote FAQ question headers 6 tahun lalu
callbacks.go 0746d2828b Merge pull request #601 from xyproto/minor 6 tahun lalu
clean.go 29f3e011ec Only minor changes 6 tahun lalu
cmd.go 5ef38c12bd Update usage and man page 6 tahun lalu
completions.go bc6028348b Make the completion refresh time configurable 6 tahun lalu
config.go 29f3e011ec Only minor changes 6 tahun lalu
dep.go 8d7ff22fed Fix panic on invalid version strings 6 tahun lalu
depCheck.go 1d17940ce9 Abort ealy when there's conflicts with --noconfirm 6 tahun lalu
depOrder.go 6423fb55b5 Fix build order being reversed 7 tahun lalu
depPool.go bad0af1a8a Fix typos 7 tahun lalu
download.go 297bf31cdf Set GIT_TERMINAL_PROMPT=0 for clone and fetch 6 tahun lalu
exec.go 5ce740068e Always pass PacmanConf to pacman 6 tahun lalu
install.go 284c87afb6 Parallelize gendb 6 tahun lalu
keys.go e28f4f3431 Refactor continueTask() 6 tahun lalu
keys_test.go d6b862357d Replace gopkgbuild with go-srcinfo (#528) 6 tahun lalu
main.go b848514b4b Merge pull request #585 from Morganamilo/usage 6 tahun lalu
parser.go 16d4a2ca88 Support = on long opts, not short opts 6 tahun lalu
parser_test.go 6eded7c4a3 Support commas in parserNumberMenu 6 tahun lalu
print.go 7c74dc5dec Use none for empty fields 6 tahun lalu
print_test.go ef454680dc Fixed tests for unified structure 7 tahun lalu
query.go b3e647aee4 Use MultiError in other goroutines 6 tahun lalu
query_test.go ef454680dc Fixed tests for unified structure 7 tahun lalu
upgrade.go b3e647aee4 Use MultiError in other goroutines 6 tahun lalu
upgrade_test.go 6689198623 Add more tests for upgrade highlighting 7 tahun lalu
utils.go 58240bdc3d Steal multierror from aurlib 6 tahun lalu
vcs.go 602f386b03 Loop over srcinfos instead of pkglist in gendb 6 tahun lalu
vcs_test.go 6988537552 Add parseNumberMenu() 7 tahun lalu

README.md

yay

Yet another Yogurt - An AUR Helper written in Go

Packages

yay yay-bin yay-git GitHub license
There's a point in everyone's life when you feel the need to write an AUR helper because there are only about 20 of them. So say hi to 20+1.

Yay was created with a few objectives in mind and based on the design of yaourt, apacman and pacaur:

  • Have almost no dependencies
  • Provide an interface for pacman
  • Have yaourt-like search
  • Minimize user input
  • Know when git packages are due for an upgrade

Features

  • AUR Tab completion
  • Download PKGBUILD from ABS or AUR
  • Ask all questions first and then start building
  • Search narrowing (yay linux header will first search linux and then narrow on header)
  • No sourcing of PKGBUILD is done
  • The binary has no dependencies that pacman doesn't already have
  • Advanced dependency solving
  • Remove make dependencies at the end of the build process

Installation

If you are migrating from another AUR helper you can simply install Yay from the AUR like any other package.

The initial installation of Yay can be done by cloning the PKGBUILD and building with makepkg.

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Contributing

Contributors are always welcome!

If you plan to make any large changes or changes that may not be 100% agreed on, we suggest opening an issue detailing your ideas first.

Otherwise send us a pull request and we will be happy to review it.

Code Style

All code should be formatted through go fmt. This tool will automatically format code for you. Although it is recommended you write code in this style and just use this tool to catch mistakes.

Building

Yay is easy to build with its only build dependency being go and the assumption of base-devel being installed.

Run make to build Yay. This will generate a binary called yay in the same directory as the Makefile.

Run make test to test Yay. This will check the code is formatted correctly, run the code through go vet and run unit tests.

Yay's Makefile automatically sets the GOPATH to $PWD/.go. This makes it easy to build using the dependencies in vendor/. Running manual go commands such as go build will require that you to either set the GOPATH manually or go get The dependencies into your own GOPATH.

Vendored Dependencies

Yay depends on a couple of other projects. These are stored in vendor/ and are built into Yay at build time. They do not need to be installed separately.

Currently yay Depends on:

Frequently Asked Questions

Yay does not display colored output. How do I fix it?

Make sure you have the Color option in your /etc/pacman.conf #123

Yay is not prompting to skip packages during sysupgrade (issue #554)

The default behavior was changed after v8.918 (see: 3bdb534). To restore such behavior use --combinedupgrade. This can also be permanently enabled by appending --save. Note: this causes native pacman to become partial.

Sometimes diffs are printed to the terminal and other times they are paged via less. How do I fix this?

Yay uses git diff to display diffs, by default git tells less to not page if the output can fit one terminal length. This can be overridden by exporting your own flags export LESS=SRX.

Yay is not asking me to edit PKGBUILDS and I don't like diff menu! What do?

yay --editmenu --nodiffmenu --save

Only act on AUR packages or only on repo packages?

yay -{OPERATION} --aur yay -{OPERATION} --repo

Out Of Date AUR Packages message is displayed, why doesn't yay update them?

This means the package has been flagged out of date on the AUR, but its maintainer has not yet updated the PKGBUILD.

Yay doesn't install dependencies added to PKGBUILD during installation.

Yay resolves all dependencies ahead of time. You are free to edit the PKGBUILD in any way, but any problems you cause are your own and should not be reported unless they can be reproduced with the original PKGBUILD.

Examples of Custom Operations

  • yay <Search Term> presents package selection menu
  • yay -Ps prints system statistics
  • yay -Pu prints update list
  • yay -Yc cleans unneeded dependencies
  • yay -G downloads PKGBUILD from ABS or AUR
  • yay -Y --gendb generates development package DB used for devel updates.
  • yay -Syu --devel --timeupdate Normal update but also check for development package updates and uses PKGBUILD modification time and not version to determine update

Images