yay.8 15 KB

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