Nenhuma descrição

morganamilo f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
.go 67bd8cc9a2 Improve makefile 7 anos atrás
completions 6b7ee97479 add quiet to print options. fish complete 7 anos atrás
doc 84810a61af Document news 7 anos atrás
testdata 9c44363a7a Do not depend on the Internet for keys_test.go 7 anos atrás
vendor b5715de4fd Update vendored aur 7 anos atrás
.gitignore f612d89b49 fix Makefile and fix README 7 anos atrás
Gopkg.lock b5715de4fd Update vendored aur 7 anos atrás
Gopkg.toml 5ceab57504 dep: prune all dependencies by default 7 anos atrás
ISSUE_TEMPLATE.md 5d708c7fbb Fix strange linting applied 7 anos atrás
LICENSE 59daf46714 Create LICENSE 8 anos atrás
Makefile 66362aa981 Bump MAJOR_VERSION 7 anos atrás
README.md cc2322f492 Update README.md to include temporary notice of manual intervention 7 anos atrás
callbacks.go 63471b9ede Fix misspellings and typos 7 anos atrás
clean.go c399996cab Fix typos 7 anos atrás
cmd.go f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
completions.go 84569ef6d9 Fix completions from using wrong path. Regression introduced in filepath join 7 anos atrás
config.go f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
dep.go b140e66f6a Improve --asdeps and --asexplicit handling 7 anos atrás
depCheck.go 943b2f931a Tweak missing packages text 7 anos atrás
depOrder.go 6423fb55b5 Fix build order being reversed 7 anos atrás
depPool.go 0ae8fc2a06 Support --aur and --repo flags 7 anos atrás
download.go f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
install.go f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
keys.go 694c74f5b4 Remove no longer needed function and lint 7 anos atrás
keys_test.go d319576303 Use megacheck to lint project 7 anos atrás
main.go c399996cab Fix typos 7 anos atrás
parser.go b2d3eb5c49 Add new dependency code to replace the old code 7 anos atrás
parser_test.go d319576303 Use megacheck to lint project 7 anos atrás
print.go c36bfc1237 Merge pull request #401 from Morganamilo/deps3 7 anos atrás
print_test.go ef454680dc Fixed tests for unified structure 7 anos atrás
query.go 0ae8fc2a06 Support --aur and --repo flags 7 anos atrás
query_test.go ef454680dc Fixed tests for unified structure 7 anos atrás
upgrade.go 0ae8fc2a06 Support --aur and --repo flags 7 anos atrás
upgrade_test.go 6689198623 Add more tests for upgrade highlighting 7 anos atrás
utils.go f20fbd25c1 Implement diffs for pkgbuild viewing. 7 anos atrás
vcs.go d319576303 Use megacheck to lint project 7 anos atrás
vcs_test.go 6988537552 Add parseNumberMenu() 7 anos atrás

README.md

yay

Yet another Yogurt - An AUR Helper written in Go

yay: error while loading shared libraries: libalpm.so.10: cannot open shared object file: No such file or directory Pacman 5.1 migration explained here

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

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