yay.8 12 KB

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