-
Notifications
You must be signed in to change notification settings - Fork 0
/
librewolf.sh
executable file
·21 lines (20 loc) · 959 Bytes
/
librewolf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Install for debian-based distros
if command -v apt-get > /dev/null; then
sudo apt-get update
sudo apt-get -y install wget gnupg lsb-release apt-transport-https ca-certificates
distro=$(if echo " una bookworm vanessa focal jammy bullseye vera uma " | grep -q " $(lsb_release -sc) "; then echo $(lsb_release -sc); else echo focal; fi)
wget -O- https://deb.librewolf.net/keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/librewolf.gpg
echo "Types: deb\
\nURIs: https://deb.librewolf.net\
\nSuites: $distro\
\nComponents: main\
\nArchitectures: amd64\
\nSigned-By: /usr/share/keyrings/librewolf.gpg" | sudo tee /etc/apt/sources.list.d/librewolf.sources > /dev/null
# To set third-party repositories to have least priority
echo 'Package: *\
\nPin: origin deb.librewolf.net\
\nPin-Priority: 100' | sudo tee /etc/apt/preferences.d/librewolf.pref > /dev/null
sudo apt-get update
sudo apt-get -y install librewolf
fi