Brief: A step-by-step beginner’s tutorial showing how to install Google chrome in Arch, Manjaro and other Arch-based Linux distributions.
Google Chrome is undeniably the most popular web browser. It is not open source software and this is why you won’t see it preinstalled in Linux distributions you use. You won’t even find Chrome in the software center.
Installing Google Chrome is easy in Ubuntu and Fedora based distribution. You can go to Chrome’s website and download the DEB or RPM installer files and install it easily.
Arch Linux users may notice that there is no package for them on the official Google Chrome website.
Fortunately, Google Chrome is available on Arch User Repository (AUR) for Arch, Manjaro and other Arch-based Linux distributions. You can install Google Chrome using an AUR Helper easily or use Git to install it without AUR helper.
I will cover both options in this tutorial.
Method 1: Installing Google Chrome with an AUR Helper
I hope that you are familiar with the concept of AUR (Arch User Repository) and AUR helpers. If not, please read our articles on what is AUR and what are AUR helpers and how to install them.
Step 1: Install an AUR helper (if you haven’t got one already)
There are quite a few AUR Helpers to choose but in this tutorial, I will use yay which I have installed on my machine. You should install it if you haven’t got it already:
sudo pacman -S git
sudo git clone https://aur.archlinux.org/yay-git.git
cd yay
makepkg -si
Step 2: Install Google Chrome using AUR helper
Now, to install Google Chrome in Arch Linux using yay:
yay -S google-chrome
As you see, yay found all the available packages related to Google Chrome. I will choose the stable package to install, the same as I chose for the other installation method.
Step 3: Upgrading Chrome version with yay
You successfully installed Chrome on your Arch-based distribution. However, you should also know what to do if there is a new version of Google Chrome available.
You cannot upgrade AUR packages with pacman command unfortunately. But the good thing is that Yay and pacman share common flags for performing similar actions.
Keep in mind that unlike pacman, yay shouldn’t be run with “sudo” privilege.
The following command will upgrade all the packages – both AUR and official.
yay -Syu
Method 2: Install Google Chrome without an AUR Helper
You’ll still be getting the package from Arch User Repository. However, instead of AUR helper, you’ll be doing it manually.
Step 1: Install base-devel package
To install a package from AUR you must have Git and base-devel group installed. Base-devel group contains all the essential tools for compiling from source.
sudo pacman -S --needed base-devel git
Step 2: Install Chrome from AUR
Clone Google Chrome from the AUR and install it like this:
git clone https://aur.archlinux.org/google-chrome.git
cd google-chrome
makepkg -si
Step 3: Upgrading Google Chrome afterward
When a new version of Google Chrome is released and it is available in the AUR, you can upgrade it manually like this:
git pull
makepkg -si
Conclusion
As you can see, it is slightly complicated to install Google Chrome in the Arch domain. But that’s the beauty of it. Many people use Arch because it gets you doing more things in the terminal.
If you encountered any difficulty when you try to install Google Chrome, let us know at the comment section or share your thoughts.
Make sure to subscribe on our social media to get first the latest Linux news!
from It's FOSS https://ift.tt/3f5mSst
via IFTTT
Tidak ada komentar:
Posting Komentar