How to install Vivaldi on Arch Linux

So I want to use Vivaldi as my browser on Arch Linux. However, a quick “sudo pacman -Ss vivaldi” showed me nothing. I tried to go to Vivaldi’s website and they only offer .RPM and .DEB installers. So how do I install Vivaldi now? Here’s how.

Vivaldi

Vivaldi

Let me cut it short. We will be building Vivaldi from source. This means we will download the source and compile it in our machine. Lucky we have AUR which contains packages that are designed to be built from source. The only downfall of this is when you install software packages using this method, it will not automatically update on its own. Not even a pacman -Syu will help you.

Prepare the dev environment

To make sure we have all the development tools that we need, run a

sudo pacman -S –needed base-devel

This will install development tools we need to compile the packages.

Install git

Then we also need to install git. To do that, type

sudo pacman -S git

Git will help us download or clone a repository containing the PKGBUILD file and ultimately the source code.

Enable multilib

We also need to enable multilib just in case the package we are building are using 32-bit compatible libraries. Enabling multilib will allow us to run 32-bit applications to 64-bit installations of Arch Linux.

To do this type

sudo nano /etc/pacman.conf

and uncomment (delete the # in front)

[multilib]

Include = /etc/pacman.d/mirrorlist

pacman.conf: Enable multilib

pacman.conf: Enable multilib

The do a full system upgrade by typing

sudo pacman -Syu

Building and installing the package

Search for the package

Now we are here in the more complex part. Before we go ahead and build, we must first find the source or repo we are going to clone. Head to AUR and search for Vivaldi.

AUR: Vivaldi

AUR: Vivaldi

Clone the repo

Now that we have the repository, we can now clone it locally. Fire up the terminal and create a folder where you want to clone the Vivaldi repository into. After you have created the folder, go to the folder you have just created, copy the AUR package Git Clone URL link and paste in in the terminal. It should look like this

git clone https://aur.archlinux.org/vivaldi.git

The command above will download Vivaldi’s AUR repository to our local storage.

git clone: Vivaldi

git clone: Vivaldi

Build and install the package

Now list files and folders in the current directory by typing

ls

and go to the Vivaldi folder. Do this by typing

cd vivaldi

Now make the package by typing

makepkg -si

AUR: makepkg -si

AUR: makepkg -si

It will then download any required additional packages and will start compiling and installing Vivaldi. Just confirm everything and proceed with the installation. Once you have that Vivaldi item on your “Applications > Internet”, you can now congratulate yourself.

Updating AUR packages

Now you have Vivaldi but how do you update it? Simple. Download the source again and rebuild it. There are some helpers out there that can automate the process but lets talk about that in another time.

Congratulations

You now have Vivaldi installed. Cheers!

 


Sources:

Leave a Reply

Be the First to Comment!

Speak up you comment ninja! Let's talk. Leave a reply.

wpDiscuz
shares
%d bloggers like this: