Easily update programs and operating system of Debain based operating systems.
Any Debian based distro.
-
If you haven't already done so create a local bin directory:
cd ~/
mkdir bin
-
Add your bin directory to your path. Edit your
.bashrc
or.profile
file (whichever you prefer, I prefer the.profile
) to add in~/bin
to your path.This step may not be necessary on if you're using a fairly recent Ubuntu version as they include the
~/bin
directory in your$PATH
.You can check your
.profile
contains the following:# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi
If not just add it in.
-
If required, reboot your computer or force bash to re-read
~/.profile
:exec -l bash
-
Change directories to your private bin if you're not there already:
cd ~/bin
Clone my script from the repository:git clone https://github.com/sampablo22/Linux-update-script.git
-
Mark the file as executable:
chmod +x update_Debian.sh
-
Make a symlink from the script to the bin folder:
ln -s ~/bin/Linux-update-script/update_Debian.sh ~/bin
-
Now you can run the script from anywhere with:
./update_Debian.sh
If there are any problems please let me know by raising an issue on GitHub and I'll get back to you ASAP. If you have any suggestions for changes please let me know and I'll see if I can implement them.
This script is free and may be redistributed and modified under the terms specified in the license.