Skip to content

You can update Debian and Arch based Linux Distros using this small script.

License

Notifications You must be signed in to change notification settings

zadjadr/LinuxUpdate

Repository files navigation

LinuxUpdate

LinuxUpdate on Ubuntu & Arch

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.

Install

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.

Usage

Prerequisites

Arch based

Install the following packages, to make this script work:

  pacman -S sudo reflector

Debian based

Install the following packages, to make this script work:

  apt install bash sudo

Use the cli

  $ cd /to/LinuxUpdate/
  $ chmod +x LinuxUpdate.sh
  $ ./LinuxUpdate.sh

Use the .desktop file

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.

Example of Usage on Manjaro

Updating the mirrorlist

Mirrorlist Update

Removing old stuff

Removing old stuff