yay.8 18 KB

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