This is a small bash script that can update all Arch and Debian Distros, create a new mirrorlist and delete old stuff (only arch).
I didn't like typing all the code in everytime, so I created a small bash script -
maybe you're like me and I can help you with this :)
The plan is to create an easy command-line tool for (almost) all Linux Distros.
You will first need any Arch or Debian (e. g. Ubuntu) based Distro installed. Since I just started looking at bash, it might take a little bit to upload scripts for different linux distributions.
Install the following packages, to make this script work:
pacman -S sudo reflector
Install the following packages, to make this script work:
apt install bash sudo
$ cd /to/LinuxUpdate/
$ chmod +x LinuxUpdate.sh
$ ./LinuxUpdate.sh
Open the file in any texteditor and change the Exec
-parameter
You need to insert the correct path to LinuxUpdate.sh
.
Then give the neccessary permissions to run this file:
$ chmod +x LinuxUpdate.desktop
Now you have a shortcut and can start the update via double-click.