Install Vivaldi on Arch Linux for Arm64
Vivaldi doesn’t provide native packages for Arch Linux on any architecture. You can still install it, though: There are Flatpak/Snap packages for both x86_64 and aarch64, and an unofficial AUR package for x86_64, which can be modified to install the Arm64 version instead.
Flatpak or Snap
If you’re willing to use Flatpak or Snap, you can skip all this and install the Vivaldi web browser through Snapcraft or Flathub. (See the Snap notes and Flatpak notes.) That wasn’t an option when I first tried to install it on my PineTab2 in 2023, or if it was I couldn’t find it.
Warning: Flatpak and Snap isolate the browser from other apps, and do not support the NativeMessaging API. That includes password managers running on your system. If you want to use KeePassXC-Browser to detect and fill your passwords, you’ll need to use a native package instead.
Native
So, on to the (sort of) native solution I puzzled out:
While Vivaldi doesn’t offer Arch packages, it does provide RPM and DEB packages for both Intel/AMD and ARM hardware. There is a user-contributed AUR package that will extract the contents from the RPM and repackage them for Arch…for x86_64.
Here’s how you can modify that script so it repackages the ARM version of Vivaldi for Arch.
- Install the prerequisites for building AUR packages plus w3m (used in this build script) and packages Vivaldi needs for desktop integration:
sudo pacman -Syu base-devel git w3m at-spi2-core
- Clone the Vivaldi AUR repository:
git clone https://gitlab.archlinux.org/archlinux/packaging/packages/vivaldi.git
- Download the official Arm64 RPM from vivaldi.com and save it to the vivaldi folder.
- Optional but recommended: Install RPM tools and Vivaldi’s signature so you can verify the file you downloaded. (Only use rpm to verify the package. Don’t try to install it with rpm!)
sudo pacman -S rpm
sudo rpm --import https://repo.vivaldi.com/stable/linux_signing_key.pub
rpm -Kv vivaldi*.rpm
- Generate the hash value of the package so makepkg can verify it:
sha512sum vivaldi*.rpm
- Edit PKGBUILD in 3 places:
- replace
arch=('x86_64')
witharch=('aarch64')
- replace the first hash value in
sha512sums=(...)
with the one you got from the commandline. Leave the second one unchanged. - if
_rpmversion
doesn’t match the file you downloaded, update it along withpkgver
(just the part before the dash) andpgkrel
(just the part after the dash) values.
- Build the package:
makepkg
- Install the package:
sudo pacman -U vivaldi*.xz
If you don’t want to download the RPM yourself, you can make the first PKGBUILD change, run makepkg
, and it’ll download the version. It’ll fail when it tries to validate the file, at which point you can get the sha512sum and pick up where you left off.
And there you have it! A natively-packaged Vivaldi running on your ARM-based Arch Linux system, which you can use with a local password manager!
Unfortunately you’ll have to go through most of the steps again every time you want to install an update.