Since the stable's information is stored at bottom of the file, tac was used to reverse the rows. Extracted the latest version string and stored in ver variable. Ver=$(tac Packages| grep -m1 Version | cut -d ' ' -f2)įirst downloaded the Packages file. Might confirm later whether the information placement is random or fixed.Ī simple bash script would look like this: #!/bin/bash As of now snapshot's information is placed at top. It generally has a stable build and a snapshot. Since, Vivaldi maintains a file known as Packages which contains information about the builds currently available in the repository for a particular architecture (see How to see all packages in a package repository? Website or command line?). It just adds the version number in the deb package name. Firefox and Google Chrome generally makes latest/ current point to the latest release which Vivaldi don't follow.
However, since you still want to use wget and avoid APT, you need to first understand, Vivaldi, doesn't name their latest release like Firefox and Google Chrome do.
On Debian based systems where APT tool is available, you can download deb packages without installing them by replacing apt-get install with apt-get download in N0rbert's answer.