yay.8 17 KB

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