Want to update your computer software? The update command can help you.
When you run update
the command will run many software updates and upgrades.
update
: run all the update scripts.update-apk
: update Alpine Package Keeper (APK) - for Alpine Linux.update-apm
: update Atom Package Manager (APM) - for the GitHub Atom editor.update-apt
: update apt-get - for Debian, Ubuntu, etc.update-asdf
: update asdf - for managing multiple runtimes and languages.update-brew
: update Homebrew packages - for macOS.update-brewfile
: update brew packages for macOS by using a Brewfileupdate-brew-cask
: update Homebrew Cask packages - for macOS apps.update-cabal
: update Haskell Cabal pacakages.update-cards
: update cards packages - for NuTyX Linux.update-cargo
: update Rust cargo package manager.update-cargo-project
: update one Rust cargo project.update-cargo-project-manifests
: update each Rust cargo projects based on manifests.update-carthage
: update Xcode Carthage pacakges - for macOS.update-choco
: update choco Chocolatey packages - for Windows.update-conda
: update conda packages - for Python package manager.update-dnf
: update DNF - for Fedora Linux.update-emerge
: update emerge - for Gentoo Linux.update-eopkg
: update eopkg - for Solus Linux.update-flatpak
: update flatpak - for many Linux distributions.update-gem
: update Ruby gems.update-git-pull
: update git repositories.update-gemfile
: update gem packages for Ruby by using a Gemfile.update-guix
: update guix - for Guix System Linux.update-helm
: update Helm charts.update-hg-pull
: update mercurial repositories.update-mas
: update mas packages by using the Mac App Store.update-motion
: update Ruby Motion - needs a valid paid license.update-nix
: update nix-env for cross-platform and NixOS.update-npm-global
: update Node Package Manager (NPM) via global settings.update-npm-local
: update Node Package Manager (NPM) via local settings.update-npm-n-stable
: update Node Package Manager (NPM) vian
environment manager.update-macos
: update the macOS Mac operating system - large downloads.update-opkg
: update opkg - for embedded Linux devices.update-pacman
: update pacman - for Arch Linux.update-pip
: update Python PIP.update-pipenv
: update Pipenv project dependencies.update-pnpm-global
: update Performant Node Package Manager (PNPM) via global settings.update-pnpm-local
: update Performant Node Package Manager (PNPM) via local settings.update-pod
: update Cocoapods for macOSupdate-podfile
: update Cocoapods packages for macOS by using a Podfileupdate-poetry
: update dependencies listed in pyproject.toml.update-prt-get
: update prt-get - for CRUX Linux.update-repos
: update Git repositories - customize this for your system.update-rustup
: update Rust programming language tooling.update-scoop
: update scoop for system-wide packages - for Windows.update-slackpkg
: update slackpkg - for Slack Linux.update-snap
: update snap - for Canonical Linux Snap app containers.update-swift
: update macOS Swift language - this merely prints advice.update-urpmi
: update urpmi system package manager for Mageia Linux.update-ubuntu-release
: update Ubuntu release - for major system upgrades.update-xbps
: update xbps system package manager for Void Linux.update-yay
: update Yay package manager - for Arch Linuxupdate-yarn
: update Yarn JavaScript packages - for yarn upgrade.update-zypper
: update Zypper package manager - for openSUSE
Clone the repo to your own system, such as:
$ git clone https://github.com/UpdateCommand/update.git ~/update
Add the bin
directory to your own path:
$ export PATH="$PATH:~/update/bin"
Run the script:
$ update
-
Use POSIX simple shell scripts that developers can customize.
-
Make it easy for developers to help by doing merge requests.
-
Quality is intended for typical developer boxen. YMMV.
We welcome help, and new scripts, and constructive criticism.
If you prefer something more powerful, we highly recommend you consider tools such as Nix and Ansible.
To run the update command daily, you can use the crontab
command.
To see if you have an existing crontab
file, you can list it by running this:
crontab -l > ~/.crontab
Edit the ~/.crontab
file.
Add a line that runs the nice
command and use the full path to the update
command:
@daily /usr/bin/nice /foo/bar/update
Then install the file:
crontab ~/.crontab
Some of the update programs can read package manager files:
-
update-brewfile
looks for aBrewfile
for macOS Homebrew packages. -
update-gemfile
looks for aGemfile
for Ruby gem packages. -
update-podfile
looks for aPodfile
for XCode Cocoapod pacakges.
For details, see the respective programs.
Some of the update programs can read project manifests:
-
update-cargo-crate
looks for<config>/update-cargo-crate/manifests/*
-
update-git-pull
looks for<config>/update-git-pull/manifests/*
-
update-hg-pull
looks for<config>/update-hg-pull/manifests/*
Each manifest file is simply a list of local project directories.
The program skips lines that are comments (begin with #) or blank.
You can use as many manifest files and subdirectories as you like.
For details, see the respective programs.
- Package: UpdateCommand
- Version: 8.0.0
- Created: 2005-07-05
- Updated: 2023-12-28T22:26:48Z
- License: GPL-2.0-or-later or contact us for custom
- Contact: Joel Parker Henderson (https://joelparkerhenderson.com)