Как установить браузер в archlinux
Google Chrome is one of the fastest and most popular web browsers in the world. On distributions like Ubuntu, Debian, Red Hat Enterprise Linux (RHEL), CentOS, SUSE, OpenSUSE, Fedora, you can go to the official website of Google Chrome, download an rpm or deb package file for your distribution, and install it with package managers like YUM, APT, DNF, etc. But the official website of Google Chrome doesn’t have any package for Arch Linux. So getting Google Chrome installed on Arch Linux is a little bit harder than usual. You need to perform a lot of additional steps that you won’t have to on other popular Linux distributions.
In this article, I will show you how to install the latest version of Google Chrome on Arch Linux. Let’s get started.
Table of Contents:
Cloning Google Chrome AUR Repository:
Though Google Chrome is not available for download on the official website of Google Chrome, the good news is that Google chrome is available on AUR (Arch User Repository). But to install Google Chrome from AUR, you must have Git installed.
Git is available in the official Arch Linux repository. To install Git on Arch Linux, run the following command:
Press Y and then press to continue.
Git and all the required dependencies will be downloaded and installed.
Git should be installed at this point.
Right-click (RMB) on the Git Clone URL as marked in the screenshot below.
Click on Copy Link from the menu, as shown in the screenshot below.
Now, open a Terminal and navigate to the ~/Downloads/ directory as follows:
You have to clone the Google Chrome AUR repository with Git.
Run the following command to clone the Google Chrome AUR repository with Git:
The Google Chrome AUR repository should be cloned, as shown below.
A new directory google-chrome/ should be created in the ~/Downloads directory, as you can see in the screenshot below.
Navigate to the google-chrome/ directory with the following command:
You will find the following files in the google-chrome/ directory.
Building Google Chrome for Arch Linux:
Now, you have to build the Google Chrome package file for Arch Linux so that the Pacman package manager can install it. Arch Linux provides a command-line utility called makepkg for that purpose.
To build a Google Chrome package for Arch Linux, run the following command:
Press Y and press to continue.
makepkg will download all the required files from the internet. It will take a while to complete depending on your internet connection.
At the time of this writing, makepkg downloaded google-chrome-stable version 98, as you can see in the screenshot below. By the time you read this article, it will probably download a later version of Google Chrome.
The package building process is running. It will take a while to complete.
At this point, the package build process is complete.
A new file google-chrome-98.0.4758.102-1-x86_64.pkg.tar.zst will be created in the google-chrome/ directory, as you can see in the screenshot below. This is the Google Chrome Arch Linux package that makepkg had built.
NOTE: By the time you read this article, the generated Google Chrome package file name will be different. Make sure to replace the filename with yours from now on.
Installing Google Chrome:
Now, run the following command to install the google-chrome-98.0.4758.102-1-x86_64.pkg.tar.zst package file with the Pacman package manager:
Press Y and then press to continue.
Google Chrome should be installed.
Starting Google Chrome for the First Time:
Click on the Google Chrome icon from the Application Menu as marked in the screenshot below to start Google Chrome.
As you’re running Google Chrome for the first time, you should see the following window.
If you wish to make Google Chrome your default browser, leave the Make Google Chrome the default browser checkbox checked 1 .
If you don’t want to send anonymous usage statistics and crash reports to Google, uncheck the Automatically send usage statistics and crash reports to Google checkbox 2 .
Once you’re done, just click on OK 3 .
Google Chrome should be ready to use. Enjoy the internet as much as you like with Google Chrome.
Conclusion:
In this article, I have shown you how to download the latest version of Google Chrome from AUR (Arch User Repository) and build a Google Chrome Arch Linux package file. I have also shown you how to install Google Chrome on Arch Linux. I have shown you how to start Google Chrome for the first time as well.
References:
About the author
Shahriar Shovon
Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.
Немогу понять откуда берется браузер по умолчанию? Стоит арч, опенбох. то есть при открытии ссылок из терминала, im клиента, итд открывается именно определенный браузер. Еще интересно откуда берется список тип файла - приложение. (то есть где записано что такой то тип файла открывается таким то приложением. в файле /etc/mime.types просто описания типов файлов.
в конфиге опенбокса, очевидно же.
Что говорит `echo $BROWSER` ?
Еще интересно откуда берется список тип файла - приложение.
Зависит от того, как открывать (файловый менеджер какой?).
echo $BROWSER выводит пустоту
А менеджер PCManFM
по идее вызов xdg-open должен обрабатывать урлы. но не все программы этому следуют.
xdg-open man говорит
так откуда берется «default browser»
$ xdg-settings get default-web-browser
xdg-settings: unknown desktop environment
вот это что может значить.
без установленных гнумо/кде-либ заставить это нормально работать не удалось.
если есть гномолибы - добавь в .bashrc
export DE=gnome (для kde аналогично)
после этого, к примеру, в хром[иум] включается установка браузера по-умолчанию, и т.п.
зы: тоже сижу под openbox
это же лечит mime-type file associations в chrome/ium
> так откуда берется «default browser»
по сути - либо берет из $BROWSER либо пытается запустить gnome-open, xfce-open и какойто обработчик урлов из кед, если их нет то ищет файрфокс и пускает в нем.
Не знаю как в арче, но в дебиане это x-www-browser
подозреваю, что должно быть что-то похожее и в арче
вряд ли в арче есть alternatives :)
[code]
farex@dhcppc1 ~$ cat .bashrc | grep firefox
export $BROWSER=/usr/bin/firefox
farex@dhcppc1 ~$
[/code]
не то?
Еще интересно откуда берется список тип файла - приложение. (то есть где записано что такой то тип файла открывается таким то приложением.
Это же арч, откуда там столь логичные и хорошие фичи?
ТС, уходи от арча если такие проблемы у тебя появляются и ты их не в состоянии сам решить быстро.
нет уж, это альтернативес - логичный и хороший механизм? Это как раз ненужное усложнение противоречащее философии арча
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:
Step 2: Install Google Chrome using AUR helper
Now, to install Google Chrome in Arch Linux using yay:
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.
The following command will upgrade all the packages – both AUR and official.
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.
Step 2: Install Chrome from AUR
Clone Google Chrome from the AUR and install it like this:
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:
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!
Google Chrome has its developing authority and it was launched back in 2008. Currently, Google is the most-liked and preferred browser among the majority of the users. So, Google Chrome is the most famous internet browser. It is not open-source programming which is the type of source on which any user can make adjustments or upgrade. So, this is the main reason why you would not see it pre-installed in the Linux disseminations you use. You won’t discover Chrome in the product place.
Usually, presenting Google Chrome in Ubuntu or Fedora is very much easy and uncomplicated. It is very much simple. You can simply go to Chrome’s site and from there; you can download the DEB or RPM installer records. And then introduce it without any problem. DEB files are actually derived from the Debian-based distros which in this case is Ubuntu. On the other side, RPM files are Redhat-based distros and they are connected with Fedora. Linux users can face the problems of not finding the required bundle on Chrome and it can be possible.
But there is no need to get upset as Arch User Repository for the Arch, Manjaro and many other Arch-based Linux productions provide easy access to Google. Two possible ways of Google installation can be:
- By using the Arch User Repository.
- By using Git (control type of system) if one doesn’t have AUR.
Here, in this helpful guide in which I will be covering the two choices in this instructional exercise.
Technique 1: Installation of Chrome with an AUR.
Arch User Repository carries the information about the description of the package (which is the PKGBUILDS) and following that it’s called the community-leading depot. It allows its users to assemble a package from its source or origin. You can utilize makepkg for this purpose. And then, the package is installed via the pacman. Still, if anything is unexplained then it would be highly recommended that you read other articles about what is AUR or what are AUR aides and how to introduce them. You should be well-informed so that you may not experience any difficulty while installing.
Stage 1: Install an AUR partner (on the off chance that you have not got one as of now)
There are multiple AUR Helpers present for you to pick. However, in this instructional exercise, I will utilize the AUR helper named yay, which I have introduced on my machine. You ought to install it, if it is not available on your system, then use these commands:
Google Chrome is a popular Web Browser from Google used by millions of users around the world. It is based on the open-source browser project Chromium. Although there are many Chromium-based browsers out there, like Edge, Vivaldi, still Google Chrome is one of the top used due to its connection with the Google ecosystem and services.
Installing Google Chrome in Ubuntu and its derivatives are easy, even in Fedora as well. But installing in Arch Linux or similar distributions like Manjaro requires some additional steps.
This guide covers below items.
Chrome Running in Arch Linux
Install Google Chrome in Arch Linux
There are two ways to install Google Chrome in Arch Linux. The first method we explain here is installing via AUR Helper like Yay. This is the recommended step.
The second method is a direct compilation method.
Method 1: Install via Yay AUR Helper (recommended)
In this method, you need the Yay (AUR helper) to be installed in your system. If it is installed already, you can skip the installation steps. To install Yay, follow the below steps Or, refer to this guide. If you are using Manjaro, the yay is probably already installed, hence you can go directly to the yay command.
Open a terminal and start executing the following commands for setting up Yay.
Now, to install Google Chrome, run the below command.
Method 2: Install via compilation
In the second method, you need to get the latest Google Chrome from Git repo and compile it using makepkg. Here are the steps.
Open a terminal and run the followign commands in the sequence mentioned below.
Install Google Chrome in Arch Linux – Compilation
This will compile and install Google Chrome in Arch Linux.
After the installation, you can launch Google Chrome from the application menu of your Arch Linux respective desktop environment.
These two are the most simple way to install in Arch Linux and Manjaro. If you face any problem, you can let me know in the comment box below.
We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!
Читайте также: