mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-09 09:53:47 +02:00
add debian-10 repo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
SYSTEM=$(cat /etc/issue)
|
||||
# Make sure only root can run our script
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
@@ -29,48 +34,13 @@ apt-get update;
|
||||
case "$SYSTEM" in
|
||||
"Debian GNU/Linux 10 \n \l")
|
||||
apt install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "
|
||||
#------------------------------------------------------------------------------#
|
||||
# OFFICIAL DEBIAN REPOS #
|
||||
#------------------------------------------------------------------------------#
|
||||
|
||||
###### Debian Main Repos
|
||||
deb http://deb.debian.org/debian/ stable main contrib non-free
|
||||
deb-src http://deb.debian.org/debian/ stable main contrib non-free
|
||||
|
||||
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
|
||||
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
|
||||
|
||||
deb http://deb.debian.org/debian-security stable/updates main
|
||||
deb-src http://deb.debian.org/debian-security stable/updates main
|
||||
|
||||
deb http://ftp.debian.org/debian buster-backports main
|
||||
deb-src http://ftp.debian.org/debian buster-backports main" > /etc/apt/source.list
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-18.04.txt" -o /etc/apt/source.list
|
||||
apt update && apt upgrade -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
;;
|
||||
"Ubuntu 18.04.5 LTS \n \l")
|
||||
echo "
|
||||
#------------------------------------------------------------------------------#
|
||||
# OFFICIAL UBUNTU REPOS #
|
||||
#------------------------------------------------------------------------------#
|
||||
|
||||
|
||||
###### Ubuntu Main Repos
|
||||
deb http://archive.ubuntu.com/ubuntu bionic main restricted
|
||||
deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
|
||||
|
||||
###### Ubuntu Update Repos
|
||||
deb http://archive.ubuntu.com/ubuntu bionic universe
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
|
||||
deb http://archive.ubuntu.com/ubuntu bionic multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
|
||||
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
|
||||
deb http://security.ubuntu.com/ubuntu bionic-security universe
|
||||
deb http://security.ubuntu.com/ubuntu bionic-security multiverse" > /etc/apt/source.list
|
||||
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/source.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
;;
|
||||
|
||||
16
sh_scripts/repos/debian-10.txt
Normal file
16
sh_scripts/repos/debian-10.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
#------------------------------------------------------------------------------#
|
||||
# OFFICIAL DEBIAN REPOS #
|
||||
#------------------------------------------------------------------------------#
|
||||
|
||||
###### Debian Main Repos
|
||||
deb http://deb.debian.org/debian/ stable main contrib non-free
|
||||
deb-src http://deb.debian.org/debian/ stable main contrib non-free
|
||||
|
||||
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
|
||||
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
|
||||
|
||||
deb http://deb.debian.org/debian-security stable/updates main
|
||||
deb-src http://deb.debian.org/debian-security stable/updates main
|
||||
|
||||
deb http://ftp.debian.org/debian buster-backports main
|
||||
deb-src http://ftp.debian.org/debian buster-backports main
|
||||
Reference in New Issue
Block a user