yay.8 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. .TH "YAY" "8" "2019\-10\-21" "Yay v9.4+" "Yay Manual"
  2. .nh
  3. .ad l
  4. .SH NAME
  5. yay \- AUR Helper written in go
  6. .SH SYNOPSIS
  7. \fIyay\fR <operation> [options] [targets]
  8. .sp
  9. \fIyay\fR <search terms>
  10. .sp
  11. \fIyay\fR
  12. .SH DESCRIPTION
  13. Yay is a Pacman wrapper with AUR support. It passes options to Makepkg and
  14. Pacman after resolving packages to install/upgrade.
  15. This manpage only covers options unique to Yay. For other options see
  16. \fBpacman(8)\fR.
  17. .SH YAY OPERATIONS
  18. .TP
  19. .B \-Y, \-\-yay
  20. Perform yay specific operations. This is the default if no other operation is
  21. selected.
  22. .TP
  23. .B \-P, \-\-show
  24. Perform yay specific print operations.
  25. .TP
  26. .B \-G, \-\-getpkgbuild
  27. Downloads PKGBUILD from ABS or AUR. The ABS can only be used for Arch Linux repositories.
  28. .RE
  29. If no arguments are provided 'yay \-Syu' will be performed.
  30. If no operation is selected \-Y will be assumed.
  31. .SH EXTENDED PACMAN OPERATIONS
  32. .TP
  33. .B \-S, \-Si, \-Sl, \-Ss, \-Su, \-Sc, \-Qu
  34. These operations are extended to support both AUR and repo packages.
  35. .TP
  36. .B \-Sc
  37. Yay will also clean cached AUR package and any untracked Files in the
  38. cache. Cleaning untracked files will wipe any downloaded sources or
  39. built packages but will keep already downloaded vcs sources.
  40. .TP
  41. .B \-R
  42. Yay will also remove cached data about devel packages.
  43. .SH NEW OPTIONS
  44. .TP
  45. .B \-\-repo
  46. Assume all targets are from the repositories. Additionally Actions such as
  47. sysupgrade will only act on repository packages.
  48. .TP
  49. .B \-a, \-\-aur
  50. Assume all targets are from the AUR. Additionally Actions such as
  51. sysupgrade will only act on AUR packages.
  52. Note that dependency resolving will still act normally and include repository
  53. packages.
  54. .SH YAY OPTIONS (APPLY TO \-Y AND \-\-YAY)
  55. .TP
  56. .B <NO OPTION>
  57. Displays a list of packages matching the search terms and prompts the user on
  58. which packages to install (yogurt mode).
  59. .TP
  60. .B \-\-gendb
  61. Generate development package database. Tracks the latest commit for each
  62. development package, when there is a new commit Yay will know to update. This
  63. is done per package whenever a package is synced. This option should only be
  64. used when migrating to Yay from another AUR helper.
  65. .TP
  66. .B \-c, \-\-clean
  67. Remove unneeded dependencies.
  68. .SH SHOW OPTIONS (APPLY TO \-P AND \-\-SHOW)
  69. .TP
  70. .B \-c, \-\-complete
  71. Print a list of all AUR and repo packages. This allows shell completion
  72. and is not intended to be used directly by the user.
  73. .TP
  74. .B \-f, \-\-fish
  75. During complete adjust the output for the fish shell.
  76. .TP
  77. .B \-d, \-\-defaultconfig
  78. Print default yay configuration.
  79. .TP
  80. .B \-g, \-\-currentconfig
  81. Print current yay configuration.
  82. .TP
  83. .B \-n, \-\-numberupgrades
  84. Deprecated, use \fByay -Qu\fR and \fBwc -l\fR instead\%.
  85. .TP
  86. .B \-s, \-\-stats
  87. Displays information about installed packages and system health. If there are
  88. orphaned, or out\-of\-date packages, or packages that no longer exist on the
  89. AUR; warnings will be displayed.
  90. .TP
  91. .B \-u, \-\-upgrades
  92. Deprecated, use \fByay -Qu\fR instead\%.
  93. .TP
  94. .B \-w, \-\-news
  95. Print new news from the Archlinux homepage. News is considered new if it is
  96. newer than the build date of all native packages. Pass this twice to show all
  97. available news.
  98. .TP
  99. .B \-q, \-\-quiet
  100. Only show titles when printing news.
  101. .SH GETPKGBUILD OPTIONS (APPLY TO \-G AND \-\-GETPKGBUILD)
  102. .TP
  103. .B \-f, \-\-force
  104. Force download for ABS packages that already exist in the current directory. This
  105. ensures directories are not accidentally overwritten.
  106. .TP
  107. .B \-p, \-\-print
  108. Prints the PKGBUILD of the given packages to stdout.
  109. .SH WEB OPTIONS (APPLY TO \-W AND \-\-WEB)
  110. .TP
  111. Web related operations such as voting for AUR packages.
  112. Requires setting AUR_USER and AUR_PASSWORD environment variables.
  113. .TP
  114. .B \-u, \-\-unvote
  115. Remove vote from AUR package(s)
  116. .TP
  117. .B \-v, \-\-vote
  118. Vote for AUR package(s)
  119. .SH PERMANENT CONFIGURATION SETTINGS
  120. .TP
  121. .B \-\-save
  122. Causes the following options to be saved back to the config file. This
  123. provides an easy way to change config options without directly editing the
  124. file.
  125. .TP
  126. .B \-\-aururl
  127. Set an alternative AUR URL.
  128. .TP
  129. .B \-\-builddir <dir>
  130. Directory to use for Building AUR Packages. This directory is also used as
  131. the AUR cache when deciding if Yay should skip builds.
  132. .TP
  133. .B \-\-editor <command>
  134. Editor to use when editing PKGBUILDs. If this is not set the \fBEDITOR\fR
  135. environment variable will be checked, followed by \fBVISUAL\fR. If none of
  136. these are set Yay will prompt the user for an editor.
  137. .TP
  138. .B \-\-editorflags <flags>
  139. Passes arguments to the editor. These flags get passed to every instance where
  140. the editor is called by Yay. Arguments are split on whitespace before being
  141. passed to the editor. Multiple arguments may be passed by supplying a space
  142. separated list that is quoted by the shell.
  143. .TP
  144. .B \-\-makepkg <command>
  145. The command to use for \fBmakepkg\fR calls. This can be a command in
  146. \fBPATH\fR or an absolute path to the file.
  147. .TP
  148. .B \-\-pacman <command>
  149. The command to use for \fBpacman\fR calls. This can be a command in
  150. \fBPATH\fR or an absolute path to the file.
  151. .TP
  152. .B \-\-tar <command>
  153. The command to use for \fBbsdtar\fR calls. This can be a command in
  154. \fBPATH\fR or an absolute path to the file.
  155. .TP
  156. .B \-\-git <command>
  157. The command to use for \fBgit\fR calls. This can be a command in
  158. \fBPATH\fR or an absolute path to the file.
  159. .TP
  160. .B \-\-gpg <command>
  161. The command to use for \fBgpg\fR calls. This can be a command in
  162. \fBPATH\fR or an absolute path to the file.
  163. .TP
  164. .B \-\-config <file>
  165. The pacman config file to use.
  166. .TP
  167. .B \-\-makepkgconf <file>
  168. The config file for makepkg to use\%. If this is not set then the default
  169. config file will be used.
  170. .TP
  171. .B \-\-nomakepkgconf
  172. Reset the makepkg config file back to its default.
  173. .TP
  174. .B \-\-requestsplitn <number>
  175. The maximum amount of packages to request per AUR query. The higher the
  176. number the faster AUR requests will be. Requesting too many packages in one
  177. AUR query will cause an error. This should only make a noticeable difference
  178. with very large requests (>500) packages.
  179. .TP
  180. .B \-\-completioninterval <days>
  181. Time in days to refresh the completion cache. Setting this to 0 will cause
  182. the cache to be refreshed every time, while setting this to -1 will cause the
  183. cache to never be refreshed.
  184. .TP
  185. .B \-\-sortby <votes|popularity|id|baseid|name|base|submitted|modified>
  186. Sort AUR results by a specific field during search.
  187. .TP
  188. .B \-\-searchby <name|name-desc|maintainer|depends|checkdepends|makedepends|optdepends>
  189. Search for AUR packages by querying the specified field.
  190. .TP
  191. .B \-\-answerclean <All|None|Installed|NotInstalled|...>
  192. Set a predetermined answer for the clean build menu question. This answer
  193. will be used instead of reading from standard input but will be parsed exactly
  194. the same.
  195. .TP
  196. .B \-\-answerdiff <All|None|Installed|NotInstalled|...>
  197. Set a predetermined answer for the edit diff menu question. This answer
  198. will be used instead of reading from standard input but will be parsed exactly
  199. the same.
  200. .TP
  201. .B \-\-answeredit <All|None|Installed|NotInstalled|...>
  202. Set a predetermined answer for the edit pkgbuild menu question. This answer
  203. will be used instead of reading from standard input but will be parsed exactly
  204. the same.
  205. .TP
  206. .B \-\-answerupgrade <Repo|^Repo|None|...>
  207. Set a predetermined answer for the upgrade menu question. Selects which package
  208. ranges or repos to omit for updates. This answer will be used instead of
  209. reading from standard input but will be treated exactly the same.
  210. .TP
  211. .B \-\-noanswerclean
  212. Unset the answer for the clean build menu.
  213. .TP
  214. .B \-\-noanswerdiff
  215. Unset the answer for the diff menu.
  216. .TP
  217. .B \-\-noansweredit
  218. Unset the answer for the edit pkgbuild menu.
  219. .TP
  220. .B \-\-noanswerupgrade
  221. Unset the answer for the upgrade menu.
  222. .TP
  223. .B \-\-cleanmenu
  224. Show the clean menu. This menu gives you the chance to fully delete the
  225. downloaded build files from Yay's cache before redownloading a fresh copy.
  226. .TP
  227. .B \-\-diffmenu
  228. Show the diff menu. This menu gives you the option to view diffs from
  229. build files before building.
  230. Diffs are shown via \fBgit diff\fR which uses
  231. less by default. This behaviour can be changed via git's config, the
  232. \fB$GIT_PAGER\fR or \fB$PAGER\fR environment variables.
  233. .TP
  234. .B \-\-editmenu
  235. Show the edit menu. This menu gives you the option to edit or view PKGBUILDs
  236. before building.
  237. \fBWarning\fR: Yay resolves dependencies ahead of time via the RPC. It is not
  238. recommended to edit pkgbuild variables unless you know what you are doing.
  239. .TP
  240. .B \-\-upgrademenu
  241. Show a detailed list of updates in a similar format to VerbosePkgLists.
  242. Upgrades can also be skipped using numbers, number ranges or repo names.
  243. Additionally ^ can be used to invert the selection.
  244. \fBWarning\fR: It is not recommended to skip updates from the repositories as
  245. this can lead to partial upgrades. This feature is intended to easily skip AUR
  246. updates on the fly that may be broken or have a long compile time. Ultimately
  247. it is up to the user what upgrades they skip.
  248. .TP
  249. .B \-\-nocleanmenu
  250. Do not show the clean menu.
  251. .TP
  252. .B \-\-nodiffmenu
  253. Do not show the diff menu.
  254. .TP
  255. .B \-\-noeditmenu
  256. Do not show the edit menu.
  257. .TP
  258. .B \-\-noupgrademenu
  259. Do not show the upgrade menu.
  260. .TP
  261. .B \-\-askremovemake
  262. Ask to remove makedepends after installing packages.
  263. .TP
  264. .B \-\-removemake
  265. Remove makedepends after installing packages.
  266. .TP
  267. .B \-\-noremovemake
  268. Do not remove makedepends after installing packages.
  269. .TP
  270. .B \-\-topdown
  271. Display repository packages first and then AUR packages.
  272. .TP
  273. .B \-\-bottomup
  274. Show AUR packages first and then repository packages.
  275. .TP
  276. .B \-\-singlelineresults
  277. Override pacman's usual double-line search result format and list each result
  278. on its own line.
  279. .TP
  280. .B \-\-doublelineresults
  281. Follow pacman's double-line search result format and list each result using
  282. two lines.
  283. .TP
  284. .B \-\-devel
  285. During sysupgrade also check AUR development packages for updates. Currently
  286. only Git packages are supported.
  287. Devel checking is done using \fBgit ls-remote\fR. The newest commit hash is
  288. compared against the hash at install time. This allows devel updates to be
  289. checked almost instantly and not require the original pkgbuild to be downloaded.
  290. The slower pacaur-like devel checks can be implemented manually by piping
  291. a list of packages into yay (see \fBexamples\fR).
  292. .TP
  293. .B \-\-nodevel
  294. Do not check for development packages updates during sysupgrade.
  295. .TP
  296. .B \-\-cleanafter
  297. Remove untracked files after installation.
  298. Untracked files are removed with the exception of directories.
  299. This allows VCS packages to easily pull an update
  300. instead of having to reclone the entire repo.
  301. .TP
  302. .B \-\-nocleanafter
  303. Do not remove package sources after successful Install.
  304. .TP
  305. .B \-\-timeupdate
  306. During sysupgrade also compare the build time of installed packages against
  307. the last modification time of each package's AUR page.
  308. .TP
  309. .B \-\-notimeupdate
  310. Do not consider build times during sysupgrade.
  311. .TP
  312. .B \-\-separatesources
  313. Separate query results by source, AUR and sync
  314. .TP
  315. .B \-\-noseparatesources
  316. Do not separate query results by source for searching
  317. .TP
  318. .B \-\-redownload
  319. Always download pkgbuilds of targets even when a copy is available in cache.
  320. .TP
  321. .B \-\-redownloadall
  322. Always download pkgbuilds of all AUR packages even when a copy is available
  323. in cache.
  324. .TP
  325. .B \-\-noredownload
  326. When downloading pkgbuilds if the pkgbuild is found in cache and is equal or
  327. newer than the AUR's version use that instead of downloading a new one.
  328. .TP
  329. .B \-\-provides
  330. Look for matching providers when searching for AUR packages. When multiple
  331. providers are found a menu will appear prompting you to pick one. This
  332. increases dependency resolve time although this should not be noticeable.
  333. .TP
  334. .B \-\-noprovides
  335. Do not look for matching providers when searching for AUR packages.
  336. Yay will never show its provider menu but Pacman will still show its
  337. provider menu for repo packages.
  338. .TP
  339. .B \-\-pgpfetch
  340. Prompt to import unknown PGP keys from the \fBvalidpgpkeys\fR field of each
  341. PKGBUILD.
  342. .TP
  343. .B \-\-nopgpfetch
  344. Do not prompt to import unknown PGP keys. This is likely to cause a build
  345. failure unless using options such as \fB\-\-skippgpcheck\fR or a customized
  346. gpg config\%.
  347. .TP
  348. .B \-\-useask
  349. Use pacman's --ask flag to automatically confirm package conflicts. Yay lists
  350. conflicts ahead of time. It is possible that Yay does not detect
  351. a conflict, causing a package to be removed without the user's confirmation.
  352. However, this is very unlikely.
  353. .TP
  354. .B \-\-nouseask
  355. Manually resolve package conflicts during the install. Packages which do not
  356. conflict will not need to be confined manually.
  357. .TP
  358. .B \-\-combinedupgrade
  359. During sysupgrade, Yay will first perform a refresh, then show
  360. its combined menu of repo and AUR packages that will be upgraded. Then after
  361. reviewing the pkgbuilds, the repo and AUR upgrade will start with no need
  362. for manual intervention.
  363. If Yay exits for any reason After the refresh without upgrading. It is then
  364. the user's responsibility to either resolve the reason Yay exited or run
  365. a sysupgrade through pacman directly.
  366. .TP
  367. .B \-\-nocombinedupgrade
  368. During sysupgrade, Pacman \-Syu will be called, then the AUR upgrade will
  369. start. This means the upgrade menu and pkgbuild review will be performed
  370. after the sysupgrade has finished.
  371. .TP
  372. .B \-\-batchinstall
  373. When building and installing AUR packages instead of installing each package
  374. after building, queue each package for install. Then once either all packages
  375. are built or a package in the build queue is needed as a dependency to build
  376. another package, install all the packages in the install queue.
  377. .TP
  378. .B \-\-nobatchinstall
  379. Always install AUR packages immediately after building them.
  380. .TP
  381. .B \-\-rebuild
  382. Always build target packages even when a copy is available in cache.
  383. .TP
  384. .B \-\-rebuildall
  385. Always build all AUR packages even when a copy is available
  386. in cache.
  387. .TP
  388. .B \-\-rebuildtree
  389. When installing an AUR package rebuild and reinstall all of its AUR
  390. dependencies recursively, even the ones already installed. This flag allows
  391. you to easily rebuild packages against your current system's libraries if they
  392. have become incompatible.
  393. .TP
  394. .B \-\-norebuild
  395. When building packages if the package is found in cache and is an equal version
  396. to the one wanted skip the package build and use the existing package.
  397. .TP
  398. .B \-\-mflags <flags>
  399. Passes arguments to makepkg. These flags get passed to every instance where
  400. makepkg is called by Yay. Arguments are split on whitespace before being
  401. passed to makepkg. Multiple arguments may be passed by supplying a space
  402. separated list that is quoted by the shell.
  403. .TP
  404. .B \-\-gpgflags <flags>
  405. Passes arguments to gpg. These flags get passed to every instance where
  406. gpg is called by Yay. Arguments are split on whitespace before being
  407. passed to gpg. Multiple arguments may be passed by supplying a space
  408. separated list that is quoted by the shell.
  409. .TP
  410. .B \-\-sudo <command>
  411. The command to use for \fBsudo\fR calls. This can be a command in
  412. \fBPATH\fR or an absolute path to the file.
  413. The sudoloop is not guaranteed to work with a custom \fBsudo\fR command.
  414. .TP
  415. .B \-\-sudoflags <flags>
  416. Passes arguments to sudo. These flags get passed to every instance where
  417. sudo is called by Yay. Arguments are split on whitespace before being
  418. passed to sudo. Multiple arguments may be passed by supplying a space
  419. separated list that is quoted by the shell.
  420. .TP
  421. .B \-\-sudoloop
  422. Loop sudo calls in the background to prevent sudo from timing out during long
  423. builds.
  424. .TP
  425. .B \-\-nosudoloop
  426. Do not loop sudo calls in the background.
  427. .SH EXAMPLES
  428. .TP
  429. yay \fIfoo\fR
  430. Search and install from the repos and the \fBAUR\fR\ using yogurt mode.
  431. .TP
  432. yay \-Syu
  433. Update package list and upgrade all currently installed repo and \fBAUR\fR.
  434. .TP
  435. yay \-Sua
  436. Update all currently installed \fBAUR\fR packages.
  437. .TP
  438. yay \-S \fIfoo\fR
  439. Installs package \fIfoo\fR from the repos or the \fBAUR\fR.
  440. .TP
  441. yay \-Ss \fIfoo\fR
  442. Searches for package \fIfoo\fR on the repos or the \fBAUR\fR.
  443. .TP
  444. yay \-Si \fIfoo\fR
  445. Gets information about package \fIfoo\fR from the repos or the \fBAUR\fR.
  446. .TP
  447. yay \-S \fIfoo\fR \-\-mflags "\-\-skipchecksums \-\-skippgpcheck"
  448. Installs \fIfoo\fR while skipping checksums and pgp checks.
  449. .TP
  450. yay \-\-devel \-\-save
  451. Sets devel to true in the config.
  452. .TP
  453. yay \-P \-\-stats
  454. Shows statistics for installed packages and system health.
  455. .TP
  456. pacman -Qmq | grep -Ee '-(cvs|svn|git|hg|bzr|darcs)$' | yay -S --needed -
  457. pacaur-like devel check.
  458. .SH ENVIRONMENT VARIABLES
  459. .TP
  460. .B AURDEST
  461. Can be set to configure the build directory.
  462. Overridden by \-\-builddir.
  463. .TP
  464. .B VISUAL, EDITOR
  465. When editor is not configured, use these variables to pick what editor
  466. to use when editing PKGBUILDS.
  467. .SH FILES
  468. .TP
  469. .B CONFIG DIRECTORY
  470. The config directory is \fI$XDG_CONFIG_HOME/yay/\fR. If
  471. \fB$XDG_CONFIG_HOME\fR is unset, the config directory will fall back to
  472. \fI$HOME/.config/yay\fR.
  473. \fIconfig.json\fR Is used to store all of Yay's config options. Editing
  474. this file should be done through Yay, using the options
  475. mentioned in \fBPERMANENT CONFIGURATION SETTINGS\fR.
  476. .TP
  477. .B CACHE DIRECTORY
  478. The cache directory is \fI$XDG_CACHE_HOME/yay/\fR. If
  479. \fB$XDG_CACHE_HOME\fR is unset, the cache directory will fall back to
  480. \fI$HOME/.cache/yay\fR.
  481. \fIcompletion.cache\fR holds a list of of all packages, including the AUR,
  482. for shell completion. By default the completion files are refreshed every
  483. 7 days.
  484. \fIvcs.json\fR tracks VCS packages and the latest commit of each source. If
  485. any of these commits change the package will be upgraded during a devel update.
  486. .TP
  487. .B BUILD DIRECTORY
  488. Unless otherwise set this should be the same as \fBCACHE DIRECTORY\fR. This
  489. directory is used to store downloaded AUR Packages as well as any source files
  490. and built packages from those packages.
  491. .TP
  492. .B PACMAN.CONF
  493. Yay uses Pacman's config file to set certain pacman options either through
  494. go\-alpm or Yay itself. Options inherited include most libalpm options and
  495. pacman options.
  496. Notably: \fBDatabases\fR, \fBColor\fR and \fB*Path/*Dir\fR options are used.
  497. .SH SEE ALSO
  498. .BR makepkg (8),
  499. .BR makepkg.conf (5),
  500. .BR PKGBUILD (5),
  501. .BR pacman (8),
  502. .BR pacman.conf (5)
  503. See the arch wiki at https://wiki.archlinux.org/index.php/Arch_User_Repository for more info on the \fBAUR\fR.
  504. .SH BUGS
  505. Please report bugs to our GitHub page https://github.com/Jguer/yay
  506. .SH AUTHORS
  507. Jguer <joaogg3@gmail.com>
  508. .br
  509. Morgan <morganamilo@archlinux.org>