mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-18 14:23:51 +02:00
update deb11 repo
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SYSTEM=$(cat /etc/issue)
|
SYSTEM=$(cat /etc/*-release | grep "VERSION_ID=")
|
||||||
# Make sure only root can run our script
|
# Make sure only root can run our script
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "This script must be run as root" 1>&2
|
echo "This script must be run as root" 1>&2
|
||||||
@@ -30,61 +30,45 @@ echo ""
|
|||||||
echo ""
|
echo ""
|
||||||
echo "LETS GO!"
|
echo "LETS GO!"
|
||||||
|
|
||||||
case "$SYSTEM" in
|
if [ $SYSTEM = 11 ]; then
|
||||||
"Debian GNU/Linux 11 \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-11.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-11.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
if [ $SYSTEM = 10 ]; then
|
||||||
"Debian GNU/Linux 10 \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-10.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-10.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
if [ $SYSTEM = 9 ]; then
|
||||||
"Debian GNU/Linux 9 \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-9.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-9.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
if [ $SYSTEM = Ubuntu 18.04 ]; then
|
||||||
"Ubuntu 18.04.5 LTS \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-18.04.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-18.04.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
if [ $SYSTEM = Ubuntu 16.04 ]; then
|
||||||
"Ubuntu 16.04.7 LTS \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-16.04.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-16.04.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
if [ $SYSTEM = Ubuntu 20.04 ]; then
|
||||||
"Ubuntu 20.04.2 LTS \n \l")
|
apt-get update
|
||||||
apt-get update
|
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-20.04.txt" -o /etc/apt/sources.list
|
||||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-20.04.txt" -o /etc/apt/source.list
|
apt-get update && apt-get upgrade -y
|
||||||
apt-get update && apt-get upgrade -y
|
echo "Have Fun with the Official Repos :)"
|
||||||
echo "Have Fun with the Official Repos :)"
|
fi
|
||||||
;;
|
|
||||||
*)
|
|
||||||
clear
|
|
||||||
echo "DE >"
|
|
||||||
echo "Dein System wird zurzeit nicht unterstützt!"
|
|
||||||
echo ""
|
|
||||||
echo "Schreibe doch dazu ein Issue auf Github"
|
|
||||||
echo "> https://github.com/MrUnknownDE/linux-script/issues/new"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
echo "EN >"
|
|
||||||
echo "Your system is currently not supported!"
|
|
||||||
echo ""
|
|
||||||
echo "Please write an issue on Github"
|
|
||||||
echo "> https://github.com/MrUnknownDE/linux-script/issues/new"
|
|
||||||
esac
|
|
||||||
@@ -3,11 +3,14 @@
|
|||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
|
||||||
###### Debian Main Repos
|
###### Debian Main Repos
|
||||||
deb http://deb.debian.org/debian/ testing main contrib non-free
|
deb http://deb.debian.org/debian bullseye main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian/ testing main contrib non-free
|
deb-src http://deb.debian.org/debian bullseye main contrib non-free
|
||||||
|
|
||||||
deb http://deb.debian.org/debian/ testing-updates main contrib non-free
|
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian/ testing-updates main contrib non-free
|
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
|
||||||
|
|
||||||
deb http://deb.debian.org/debian-security testing-security main
|
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian-security testing-security main
|
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
|
||||||
|
|
||||||
|
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
|
||||||
|
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
|
||||||
Reference in New Issue
Block a user