How To Search The Arch Wiki Website Right From Terminal
Whenever you search anything about Arch Linux in web browser, i damn sure the first link would be Arch Wiki. Am i right?
Yes, since Arch wiki is an ideal place to get solution for most of the arch Linux issues.
Til now, you might get the solution for arch Linux related problems through web browser with your preferred search engine but it’s get changed now, how? with help of arch-wiki-cli utility.
Users can search Arch Wiki website right from your console instantly without to switch to GUI, you don’t have to launch your text-mode browser, even you don’t have to type a long questions to grep an answer.
It’s not complicated and everyone can use easily, even newbies can do. This will give the solution faster than web browsers.
Arch-wiki-cli has a dependency with text-mode browser. So, install one of the following packages to use this script
elinks, links, lynx and you don’t have to launch the browser yourself. Also install AUR helpers such as Yaourt or Packer since the package is part of AUR repository.
$ sudo pacman -S lynx wget
How To Install arch-wiki-cli
Install arch-wiki-cli utility from AUR repository using one of the following command.
$ yaourt -S arch-wiki-cli
$ packer -S arch-wiki-cli
How To Use arch-wiki-cli
arch-wiki followed by your search terms between the double quotes on terminal to bring the results. This script automatically kick start available text-mode browser on system and instruct browser to print the results as per the input query.
For Example, you might already know Arch Linux is completely different from other distribution since it’s doesn’t ship with any desktop environment and users have to install from scratch. So, let’s search about desktop environment installation and configuration from arch wiki website.
$ arch-wiki "desktop environment"
Search arch-wiki In other languages
arch-wiki-cli allows user to search In other languages. For demonstration purpose, we are going to search about “pacman” package manager examples in Nederlands language.
$ arch-wiki --language Nederlands "pacman"
To update this utility to latest available version, simply run.
$ arch-wiki --update