yay.8 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  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_USERNAME 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 \-\-aurrpcurl
  130. Set an alternative URL for the AUR /rpc endpoint.
  131. .TP
  132. .B \-\-builddir <dir>
  133. Directory to use for Building AUR Packages. This directory is also used as
  134. the AUR cache when deciding if Yay should skip builds.
  135. .TP
  136. .B \-\-editor <command>
  137. Editor to use when editing PKGBUILDs. If this is not set the \fBEDITOR\fR
  138. environment variable will be checked, followed by \fBVISUAL\fR. If none of
  139. these are set Yay will prompt the user for an editor.
  140. .TP
  141. .B \-\-editorflags <flags>
  142. Passes arguments to the editor. These flags get passed to every instance where
  143. the editor is called by Yay. Arguments are split on whitespace before being
  144. passed to the editor. Multiple arguments may be passed by supplying a space
  145. separated list that is quoted by the shell.
  146. .TP
  147. .B \-\-makepkg <command>
  148. The command to use for \fBmakepkg\fR calls. This can be a command in
  149. \fBPATH\fR or an absolute path to the file.
  150. .TP
  151. .B \-\-pacman <command>
  152. The command to use for \fBpacman\fR calls. This can be a command in
  153. \fBPATH\fR or an absolute path to the file.
  154. .TP
  155. .B \-\-tar <command>
  156. The command to use for \fBbsdtar\fR calls. This can be a command in
  157. \fBPATH\fR or an absolute path to the file.
  158. .TP
  159. .B \-\-git <command>
  160. The command to use for \fBgit\fR calls. This can be a command in
  161. \fBPATH\fR or an absolute path to the file.
  162. .TP
  163. .B \-\-gpg <command>
  164. The command to use for \fBgpg\fR calls. This can be a command in
  165. \fBPATH\fR or an absolute path to the file.
  166. .TP
  167. .B \-\-config <file>
  168. The pacman config file to use.
  169. .TP
  170. .B \-\-makepkgconf <file>
  171. The config file for makepkg to use\%. If this is not set then the default
  172. config file will be used.
  173. .TP
  174. .B \-\-nomakepkgconf
  175. Reset the makepkg config file back to its default.
  176. .TP
  177. .B \-\-requestsplitn <number>
  178. The maximum amount of packages to request per AUR query. The higher the
  179. number the faster AUR requests will be. Requesting too many packages in one
  180. AUR query will cause an error. This should only make a noticeable difference
  181. with very large requests (>500) packages.
  182. .TP
  183. .B \-\-completioninterval <days>
  184. Time in days to refresh the completion cache. Setting this to 0 will cause
  185. the cache to be refreshed every time, while setting this to -1 will cause the
  186. cache to never be refreshed.
  187. .TP
  188. .B \-\-sortby <votes|popularity|id|baseid|name|base|submitted|modified>
  189. Sort AUR results by a specific field during search.
  190. .TP
  191. .B \-\-searchby <name|name-desc|maintainer|depends|checkdepends|makedepends|optdepends|provides|conflicts|replaces|groups|keywords|comaintainers>
  192. Search for AUR packages by querying the specified field.
  193. .TP
  194. .B \-\-answerclean <All|None|Installed|NotInstalled|...>
  195. Set a predetermined answer for the clean build menu question. This answer
  196. will be used instead of reading from standard input but will be parsed exactly
  197. the same.
  198. .TP
  199. .B \-\-answerdiff <All|None|Installed|NotInstalled|...>
  200. Set a predetermined answer for the edit diff menu question. This answer
  201. will be used instead of reading from standard input but will be parsed exactly
  202. the same.
  203. .TP
  204. .B \-\-answeredit <All|None|Installed|NotInstalled|...>
  205. Set a predetermined answer for the edit pkgbuild menu question. This answer
  206. will be used instead of reading from standard input but will be parsed exactly
  207. the same.
  208. .TP
  209. .B \-\-answerupgrade <Repo|^Repo|None|...>
  210. Set a predetermined answer for the upgrade menu question. Selects which package
  211. ranges or repos to omit for updates. This answer will be used instead of
  212. reading from standard input but will be treated exactly the same.
  213. .TP
  214. .B \-\-noanswerclean
  215. Unset the answer for the clean build menu.
  216. .TP
  217. .B \-\-noanswerdiff
  218. Unset the answer for the diff menu.
  219. .TP
  220. .B \-\-noansweredit
  221. Unset the answer for the edit pkgbuild menu.
  222. .TP
  223. .B \-\-noanswerupgrade
  224. Unset the answer for the upgrade menu.
  225. .TP
  226. .B \-\-cleanmenu
  227. Show the clean menu. This menu gives you the chance to fully delete the
  228. downloaded build files from Yay's cache before redownloading a fresh copy.
  229. .TP
  230. .B \-\-diffmenu
  231. Show the diff menu. This menu gives you the option to view diffs from
  232. build files before building.
  233. Diffs are shown via \fBgit diff\fR which uses
  234. less by default. This behaviour can be changed via git's config, the
  235. \fB$GIT_PAGER\fR or \fB$PAGER\fR environment variables.
  236. .TP
  237. .B \-\-editmenu
  238. Show the edit menu. This menu gives you the option to edit or view PKGBUILDs
  239. before building.
  240. \fBWarning\fR: Yay resolves dependencies ahead of time via the RPC. It is not
  241. recommended to edit pkgbuild variables unless you know what you are doing.
  242. .TP
  243. .B \-\-upgrademenu
  244. Show a detailed list of updates in a similar format to VerbosePkgLists.
  245. Upgrades can also be skipped using numbers, number ranges or repo names.
  246. Additionally ^ can be used to invert the selection.
  247. \fBWarning\fR: It is not recommended to skip updates from the repositories as
  248. this can lead to partial upgrades. This feature is intended to easily skip AUR
  249. updates on the fly that may be broken or have a long compile time. Ultimately
  250. it is up to the user what upgrades they skip.
  251. .TP
  252. .B \-\-nocleanmenu
  253. Do not show the clean menu.
  254. .TP
  255. .B \-\-nodiffmenu
  256. Do not show the diff menu.
  257. .TP
  258. .B \-\-noeditmenu
  259. Do not show the edit menu.
  260. .TP
  261. .B \-\-noupgrademenu
  262. Do not show the upgrade menu.
  263. .TP
  264. .B \-\-askremovemake
  265. Ask to remove makedepends after installing packages.
  266. .TP
  267. .B \-\-removemake
  268. Remove makedepends after installing packages.
  269. .TP
  270. .B \-\-noremovemake
  271. Do not remove makedepends after installing packages.
  272. .TP
  273. .B \-\-topdown
  274. Display repository packages first and then AUR packages.
  275. .TP
  276. .B \-\-bottomup
  277. Show AUR packages first and then repository packages.
  278. .TP
  279. .B \-\-singlelineresults
  280. Override pacman's usual double-line search result format and list each result
  281. on its own line.
  282. .TP
  283. .B \-\-doublelineresults
  284. Follow pacman's double-line search result format and list each result using
  285. two lines.
  286. .TP
  287. .B \-\-devel
  288. During sysupgrade also check AUR development packages for updates. Currently
  289. only Git packages are supported.
  290. Devel checking is done using \fBgit ls-remote\fR. The newest commit hash is
  291. compared against the hash at install time. This allows devel updates to be
  292. checked almost instantly and not require the original pkgbuild to be downloaded.
  293. The slower pacaur-like devel checks can be implemented manually by piping
  294. a list of packages into yay (see \fBexamples\fR).
  295. .TP
  296. .B \-\-nodevel
  297. Do not check for development packages updates during sysupgrade.
  298. .TP
  299. .B \-\-cleanafter
  300. Remove untracked files after installation.
  301. Untracked files are removed with the exception of directories.
  302. This allows VCS packages to easily pull an update
  303. instead of having to reclone the entire repo.
  304. .TP
  305. .B \-\-nocleanafter
  306. Do not remove package sources after successful Install.
  307. .TP
  308. .B \-\-timeupdate
  309. During sysupgrade also compare the build time of installed packages against
  310. the last modification time of each package's AUR page.
  311. .TP
  312. .B \-\-notimeupdate
  313. Do not consider build times during sysupgrade.
  314. .TP
  315. .B \-\-separatesources
  316. Separate query results by source, AUR and sync
  317. .TP
  318. .B \-\-noseparatesources
  319. Do not separate query results by source for searching
  320. .TP
  321. .B \-\-redownload
  322. Always download pkgbuilds of targets even when a copy is available in cache.
  323. .TP
  324. .B \-\-redownloadall
  325. Always download pkgbuilds of all AUR packages even when a copy is available
  326. in cache.
  327. .TP
  328. .B \-\-noredownload
  329. When downloading pkgbuilds if the pkgbuild is found in cache and is equal or
  330. newer than the AUR's version use that instead of downloading a new one.
  331. .TP
  332. .B \-\-provides
  333. Look for matching providers when searching for AUR packages. When multiple
  334. providers are found a menu will appear prompting you to pick one. This
  335. increases dependency resolve time although this should not be noticeable.
  336. .TP
  337. .B \-\-noprovides
  338. Do not look for matching providers when searching for AUR packages.
  339. Yay will never show its provider menu but Pacman will still show its
  340. provider menu for repo packages.
  341. .TP
  342. .B \-\-pgpfetch
  343. Prompt to import unknown PGP keys from the \fBvalidpgpkeys\fR field of each
  344. PKGBUILD.
  345. .TP
  346. .B \-\-nopgpfetch
  347. Do not prompt to import unknown PGP keys. This is likely to cause a build
  348. failure unless using options such as \fB\-\-skippgpcheck\fR or a customized
  349. gpg config\%.
  350. .TP
  351. .B \-\-useask
  352. Use pacman's --ask flag to automatically confirm package conflicts. Yay lists
  353. conflicts ahead of time. It is possible that Yay does not detect
  354. a conflict, causing a package to be removed without the user's confirmation.
  355. However, this is very unlikely.
  356. .TP
  357. .B \-\-nouseask
  358. Manually resolve package conflicts during the install. Packages which do not
  359. conflict will not need to be confined manually.
  360. .TP
  361. .B \-\-combinedupgrade
  362. During sysupgrade, Yay will first perform a refresh, then show
  363. its combined menu of repo and AUR packages that will be upgraded. Then after
  364. reviewing the pkgbuilds, the repo and AUR upgrade will start with no need
  365. for manual intervention.
  366. If Yay exits for any reason After the refresh without upgrading. It is then
  367. the user's responsibility to either resolve the reason Yay exited or run
  368. a sysupgrade through pacman directly.
  369. .TP
  370. .B \-\-nocombinedupgrade
  371. During sysupgrade, Pacman \-Syu will be called, then the AUR upgrade will
  372. start. This means the upgrade menu and pkgbuild review will be performed
  373. after the sysupgrade has finished.
  374. .TP
  375. .B \-\-batchinstall
  376. When building and installing AUR packages instead of installing each package
  377. after building, queue each package for install. Then once either all packages
  378. are built or a package in the build queue is needed as a dependency to build
  379. another package, install all the packages in the install queue.
  380. .TP
  381. .B \-\-nobatchinstall
  382. Always install AUR packages immediately after building them.
  383. .TP
  384. .B \-\-rebuild
  385. Always build target packages even when a copy is available in cache.
  386. .TP
  387. .B \-\-rebuildall
  388. Always build all AUR packages even when a copy is available
  389. in cache.
  390. .TP
  391. .B \-\-rebuildtree
  392. When installing an AUR package rebuild and reinstall all of its AUR
  393. dependencies recursively, even the ones already installed. This flag allows
  394. you to easily rebuild packages against your current system's libraries if they
  395. have become incompatible.
  396. .TP
  397. .B \-\-norebuild
  398. When building packages if the package is found in cache and is an equal version
  399. to the one wanted skip the package build and use the existing package.
  400. .TP
  401. .B \-\-mflags <flags>
  402. Passes arguments to makepkg. These flags get passed to every instance where
  403. makepkg is called by Yay. Arguments are split on whitespace before being
  404. passed to makepkg. Multiple arguments may be passed by supplying a space
  405. separated list that is quoted by the shell.
  406. .TP
  407. .B \-\-gpgflags <flags>
  408. Passes arguments to gpg. These flags get passed to every instance where
  409. gpg is called by Yay. Arguments are split on whitespace before being
  410. passed to gpg. Multiple arguments may be passed by supplying a space
  411. separated list that is quoted by the shell.
  412. .TP
  413. .B \-\-sudo <command>
  414. The command to use for \fBsudo\fR calls. This can be a command in
  415. \fBPATH\fR or an absolute path to the file.
  416. The sudoloop is not guaranteed to work with a custom \fBsudo\fR command.
  417. .TP
  418. .B \-\-sudoflags <flags>
  419. Passes arguments to sudo. These flags get passed to every instance where
  420. sudo is called by Yay. Arguments are split on whitespace before being
  421. passed to sudo. Multiple arguments may be passed by supplying a space
  422. separated list that is quoted by the shell.
  423. .TP
  424. .B \-\-sudoloop
  425. Loop sudo calls in the background to prevent sudo from timing out during long
  426. builds.
  427. .TP
  428. .B \-\-nosudoloop
  429. Do not loop sudo calls in the background.
  430. .SH EXAMPLES
  431. .TP
  432. yay \fIfoo\fR
  433. Search and install from the repos and the \fBAUR\fR\ using yogurt mode.
  434. .TP
  435. yay \-Syu
  436. Update package list and upgrade all currently installed repo and \fBAUR\fR.
  437. .TP
  438. yay \-Sua
  439. Update all currently installed \fBAUR\fR packages.
  440. .TP
  441. yay \-S \fIfoo\fR
  442. Installs package \fIfoo\fR from the repos or the \fBAUR\fR.
  443. .TP
  444. yay \-Ss \fIfoo\fR
  445. Searches for package \fIfoo\fR on the repos or the \fBAUR\fR.
  446. .TP
  447. yay \-Si \fIfoo\fR
  448. Gets information about package \fIfoo\fR from the repos or the \fBAUR\fR.
  449. .TP
  450. yay \-S \fIfoo\fR \-\-mflags "\-\-skipchecksums \-\-skippgpcheck"
  451. Installs \fIfoo\fR while skipping checksums and pgp checks.
  452. .TP
  453. yay \-\-devel \-\-save
  454. Sets devel to true in the config.
  455. .TP
  456. yay \-P \-\-stats
  457. Shows statistics for installed packages and system health.
  458. .TP
  459. pacman -Qmq | grep -Ee '-(cvs|svn|git|hg|bzr|darcs)$' | yay -S --needed -
  460. pacaur-like devel check.
  461. .SH ENVIRONMENT VARIABLES
  462. .TP
  463. .B AURDEST
  464. Can be set to configure the build directory.
  465. Overridden by \-\-builddir.
  466. .TP
  467. .B VISUAL, EDITOR
  468. When editor is not configured, use these variables to pick what editor
  469. to use when editing PKGBUILDS.
  470. .SH FILES
  471. .TP
  472. .B CONFIG DIRECTORY
  473. The config directory is \fI$XDG_CONFIG_HOME/yay/\fR. If
  474. \fB$XDG_CONFIG_HOME\fR is unset, the config directory will fall back to
  475. \fI$HOME/.config/yay\fR.
  476. \fIconfig.json\fR Is used to store all of Yay's config options. Editing
  477. this file should be done through Yay, using the options
  478. mentioned in \fBPERMANENT CONFIGURATION SETTINGS\fR.
  479. .TP
  480. .B CACHE DIRECTORY
  481. The cache directory is \fI$XDG_CACHE_HOME/yay/\fR. If
  482. \fB$XDG_CACHE_HOME\fR is unset, the cache directory will fall back to
  483. \fI$HOME/.cache/yay\fR.
  484. \fIcompletion.cache\fR holds a list of of all packages, including the AUR,
  485. for shell completion. By default the completion files are refreshed every
  486. 7 days.
  487. \fIvcs.json\fR tracks VCS packages and the latest commit of each source. If
  488. any of these commits change the package will be upgraded during a devel update.
  489. .TP
  490. .B BUILD DIRECTORY
  491. Unless otherwise set this should be the same as \fBCACHE DIRECTORY\fR. This
  492. directory is used to store downloaded AUR Packages as well as any source files
  493. and built packages from those packages.
  494. .TP
  495. .B PACMAN.CONF
  496. Yay uses Pacman's config file to set certain pacman options either through
  497. go\-alpm or Yay itself. Options inherited include most libalpm options and
  498. pacman options.
  499. Notably: \fBDatabases\fR, \fBColor\fR and \fB*Path/*Dir\fR options are used.
  500. .SH SEE ALSO
  501. .BR makepkg (8),
  502. .BR makepkg.conf (5),
  503. .BR PKGBUILD (5),
  504. .BR pacman (8),
  505. .BR pacman.conf (5)
  506. See the arch wiki at https://wiki.archlinux.org/index.php/Arch_User_Repository for more info on the \fBAUR\fR.
  507. .SH BUGS
  508. Please report bugs to our GitHub page https://github.com/Jguer/yay
  509. .SH AUTHORS
  510. Jguer <joaogg3@gmail.com>
  511. .br
  512. Morgan <morganamilo@archlinux.org>