An open API service indexing awesome lists of open source software.

https://github.com/dpbm/update-all

A bash script to update some Ubuntu depencies
https://github.com/dpbm/update-all

bash linux script terminal ubuntu zsh

Last synced: 9 days ago
JSON representation

A bash script to update some Ubuntu depencies

Awesome Lists containing this project

README

          

# 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:

* apt packages
* snap packages
* flatpak packages
* brew taps
* npm version
* yarn version
* pnpm version
* python pip version (python3 and python2)
* cargo version
* rkhunter database
* clamav database
* pihole version
* youtube-dl version
* yt-dlp version
* conda version
* github cli extensions
* flutter version
* AdGuardHome version
* Mojo version
* Pixi version
* Rustup version
* Sdkman version
* Mamba
* Ruby gems From system
* Mise version

## to run

```bash
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
#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
#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:
```bash
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:
```bash
chmod +x job.sh
./job.sh
```

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