yay.8 16 KB

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