update-all

A script to update all

This is a simple bash script to update some linux (in this case Ubuntu based distros) packages and softwares.

Using the script the following will be updated:

to run

    chmod +x update-all
    ./update-all

you can also set this as an alias or add to PATH to use in a simple way

example using as alias:

    #BASH
    echo "alias update="/path/to/update-all/executable"" >> ~/.bashrc
    source ~/.bashrc

    #ZSH
    echo "alias update="/path/to/update-all/executable"" >> ~/.zshrc
    source ~/.zshrc

example using PATH:

    #BASH
    echo "export PATH=/path/to/update-all/executable:$PATH" >> ~/.bashrc
    source ~/.bashrc

    #ZSH
    echo "export PATH=/path/to/update-all/executable:$PATH" >> ~/.zshrc
    source ~/.zshrc

You can also add this as a global executable, just moving the update-all file to /usr/bin. Like this:

sudo mv ./update-all/update-all /usr/bin

Using this approach is the recommended here, since with it you can use the cronjob that’s set in job.sh. To set it up run:

chmod +x job.sh
./job.sh

So every day at 09:00AM, the script will run and update everything for you.