Skip to content
forked from Crilum/update

Updates apps/packages/dependencies from Apt, Pi-Apps, Flatpak, the Snap Store, Homebrew, and NPM

License

Notifications You must be signed in to change notification settings

craigevil/update

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo update2deb

update

update is a small script that updates apps from Apt, Pi-Apps, Flatpak, Homebrew, NPM, and the Snap Store, a.k.a. snapd.

Install

curl "https://raw.githubusercontent.com/Crilum/update/main/install" | sudo bash
If you want to install manually | click to expand

There are two different ways to download the script, the first one is easier, but you can use the second one if you want.

Method 1. Use `wget` and download `update` directly, and copy the script to `/usr/local/bin/`:

  1. Make sure wget is installed:

    sudo apt install wget
    
  2. Download update with wget:

    wget "https://raw.githubusercontent.com/Crilum/update/main/update"
    
  3. Move update to /usr/local/bin/:

    sudo mv update /usr/local/bin/update
    
  4. Make update executable:

    sudo chmod +x /usr/local/bin/update
    

Method 2. Use `git clone` and copy the script to `/usr/local/bin/`:

  1. Clone the repository:

    git clone https://github.com/Crilum/update/
    
  2. Or, if you have GitHub CLI:

    gh repo clone Crilum/update/
    
  3. Copy the Update Script to /usr/local/bin/:

    cd update && sudo cp update /usr/local/bin/update
    
  4. Make it executable:

    sudo chmod +x /usr/local/bin/update
    
  5. Remove the cloned repository (This is optional):

    rm /path/to/update
    

Uninstall

Just remove the script:

sudo rm /usr/local/bin/update

and you're done!

Usage

You can use update like this:

update - Updates apps installed with Apt.
update all - Updates apps on all supported systems.
update pi-apps - Updates apps installed with pi-apps.
update npm - Updates all npm packages.
update snaps - Updates apps installed with the snap store and snapd.
update flatpak - Updates Flatpak build instances.
update homebrew - Updates apps installed with Homebrew.
update pacman - Updates apps installed with pacman.
update self-update - Updates the update script
update help - Displays a help.

What if I don't have some of these package managers and/or app stores?

Well, that's fine.

  • If you have a Debian/Ubuntu based distro (apt), just use the update command alone.

To Install any of the other package managers and/or app stores:

Pi-Apps

You can install Pi-Apps like this:

wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash

Note: Pi-Apps is intended for use on the Raspberry Pi, (Which has an ARM processor), running Raspberry Pi OS, Debian, or TwisterOS. Most to all of the apps won't work on non-arm processors.

snapd

Install snapd like this on Debian based distros:

sudo apt install snapd

Note: The Snap Store in Ubuntu is just a GUI for snapd, so the update script will also update apps from there too. snapd is installed by default in Ubuntu.

Flatpak

Install Flatpak like this on Debian based distros:

sudo apt install flatpak

Homebrew

Install Homebrew like this:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install NPM

Install NPM like this on Debian based distros:

sudo apt install npm

Note: NPM will usually only be useful for developers and software builders, so it may not be a good idea to use NPM unless you understand what you're doing.

Todo

  • Make a Releases tesing system, so when I release an update GitHub Actions tests installation.
  • Create Contributing.md.
  • Create pull request templates.
  • Create a editable configuration for all argument

About

Updates apps/packages/dependencies from Apt, Pi-Apps, Flatpak, the Snap Store, Homebrew, and NPM

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%