Mostly distro-agnostic way to install Chrome without AUR - Work In Progress. I’ve also read the recent news and nuked each and every AUR package I had -
sudo pacman -Qme
blueberry 1.4.8-2
brave-bin 1:1.90.128-1
google-chrome 148.0.7778.215-1
gtk2 2.24.33-5
masterpdfeditor-free 4.3.89-1
microsoft-edge-stable-bin 148.0.3967.83-1
onlyoffice-bin 9.4.0-1
splix 2.0.1-2
ttf-ms-fonts 2.0-12
visual-studio-code-bin 1.122.0-1
wkhtmltopdf-bin 0.12.6.1+3-1
Some of these apps are available as .appimage files, some like fonts can be installed manually as font files, but some like browsers and Visual Studio Code are just Electron apps and their .deb versions often are ready to be used after being simply unpacked.
So I decided to make a series of simple .sh scripts to do it. In future plans they’re supposed to be completely distro-agnostic, but the first one isn’t so much - it’s for us Arch/EndeavourOS users specifically but can be easily remade later.
Later today or next week I’m planning to add scripts for other apps, but for now Chrome comes first - https://github.com/MatveyM11/Distro-Agnostic-Electron-Apps-Installer/blob/main/Chrome/install-chrome-arch.sh
How to use the script:
-
Download it
-
Change this line to whatever place you’re going to download your .deb package from the official Chrome website
CHROME_DIR="${CHROME_DIR:-/home/USER/Downloads/Chrome}"
chmod +x install-chrome.sh
./install-chrome-arch.sh
That’s it.
UPD
Added VS Code installer - https://github.com/MatveyM11/Distro-Agnostic-Electron-Apps-Installer/blob/main/VS%20Code/install-vscode-arch.sh
F.A.Q.
Q: Why not make it a packagebuild?
A: Because I plan to make it distro-agnostic for any Linux distro.
Q: Why not just grab a PKGBUILD for google-chrome from AUR?
A: Because I can, because I wanted to make it potentially distro-agnostic. And also to make it slightly more secure, as the AUR package relies on automatically downloading the .deb Chrome package via a link, which can potentially be compromised. My script ensures it’s only a manually downloaded package that’s going to be installed.
Q: Do I need base-devel or makepkg?
A: No. It only needs bsdtar (from libarchive) and pacman, both already in a base Arch install. No build toolchain, so it also works fine on minimal systems and containers.
Q: Does it need an internet connection?
A: No. Once the .deb is in your folder the whole thing runs offline - it just unpacks and repackages locally. Good for airgapped machines and reproducible installs.
Q: Is it still a real, removable package or does it just dump files into /opt?
A: It’s a real one. The script builds a proper pacman package and installs it with pacman -U, so Chrome shows up in `pacman -Qi google-chrome`, upgrades like any other package, and removes cleanly with `sudo pacman -Rns google-chrome`. Nothing is scattered loose outside pacman’s tracking.
Q: How do I update Chrome later?
A: Download the newer .deb into the same folder and run the script again. It reads the version, compares it with what’s installed via vercmp, and upgrades only if the new one is actually newer - the same version is a no-op.


