yay.8 18 KB

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