![]() ![]() Sudo add-apt-repository "deb stable main" Sudo apt-key adv -recv-keys -keyserver 78BD65473CB3BD13 Sudo add-apt-repository "deb stable non-free" More universal solution is to add repositories to the system and then install packages from them: Wget & sudo apt-get update & sudo apt-get install. ![]() Sudo apt-get update & sudo apt-get install firefox Wget & sudo apt-get update & sudo apt-get install -y. Alternatively, you can use -O option from wget. You might like to create a new folder specially for this and delete it later from the script itself. I assumed that there was no file with name as Packages already existing in the current working directory. If you're using some other architecture you can use that instead of amd64, for example, i386. Since debs are in /pool, used wget and value of ver to get the latest build from there. Since the result is like " Version: VersionNumber", used cut with -f flag to get second field, i.e., VersionNumber. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |