Skip to content

Releases: fernand3z/update-script

update-script v3.0.0

30 Jan 15:05
Compare
Choose a tag to compare

Changelog

🔄 Changes & Fixes

1️⃣ PIP Update Change

  • Updated: Now the script only updates PIP itself, instead of upgrading all installed Python packages.
  • New PIP command:
    if command -v pip &> /dev/null; then
        echo "Updating PIP..."
        python3 -m pip install --upgrade pip
    fi

2️⃣ Docker Permission Fix

  • Fixed: Docker updates now check if the user is in the docker group before attempting updates.
  • If the user lacks permissions, the script now skips Docker updates and provides instructions to fix it.
  • New Behavior:
    if command -v docker &> /dev/null; then
        echo "Updating Docker images..."
        if groups | grep -q '\bdocker\b'; then
            docker images --format "{{.Repository}}" | xargs -L1 docker pull
        else
            echo "Skipping Docker updates: Run 'sudo usermod -aG docker $USER' and restart."
        fi
    fi

3️⃣ Podman Image Update Fix

  • Fixed: Prevents errors when there are no images available to update.
  • New Behavior:
    if command -v podman &> /dev/null; then
        echo "Updating Podman images..."
        podman_images=$(podman images --format "{{.Repository}}")
        if [ -n "$podman_images" ]; then
            echo "$podman_images" | xargs -L1 podman pull
        else
            echo "No Podman images found to update."
        fi
    fi

4️⃣ General Enhancements

  • Improved error handling.
  • Optimized command execution for better efficiency.
  • Enhanced logging to provide better user feedback.

🚀 Enjoy the latest improvements!

Let us know if you encounter any issues or have suggestions for future updates. 🎉

For more details and the latest updates, visit the main repository: [GitHub - update-script](https://github.com/fernand3z/update-script).

update-script v2.1.0

30 Jan 02:24
Compare
Choose a tag to compare

Release Notes - v2.0.1

Release Date: (Insert Date)
Enhancements & Fixes

Improved Script Execution:
    The upgrade script now requests sudo privileges at the start, preventing mid-execution permission issues.
    If the script is not run as root, it automatically restarts with sudo, ensuring a smoother experience.

Implementation Details:

Added a check for root privileges using $EUID.
If not running as root, the script relaunches itself with sudo while preserving arguments.

update-script v2.0.0

20 Jan 15:12
a83e911
Compare
Choose a tag to compare

Universal Package Updater v1.0.0

Version 2.0.0

Release Date: January 20, 2025


Overview

Welcome to the Update Script project! This repository automates and simplifies routine update tasks. Version 2.0.0 introduces major improvements for better functionality and user experience.


What's New in v2.0.0

  • Enhanced .gitignore: Now excludes all image files dynamically.
  • Performance Optimizations: Improved script efficiency and reliability.
  • Bug Fixes: Addressed minor issues to ensure smoother operation.
  • Added Information: Comprehensive lists of Linux shells and package managers included.

Shell Types

This release includes a list of all commonly used Linux shells:

  1. Bourne Shell (sh)
  2. Bash (Bourne Again Shell)
  3. Z Shell (zsh)
  4. Korn Shell (ksh)
  5. C Shell (csh)
  6. TC Shell (tcsh)
  7. Fish (Friendly Interactive Shell)
  8. Dash (Debian Almquist Shell)
  9. NuShell
  10. Elvish
  11. BusyBox Shell (ash)
  12. Xonsh
  13. IPython Shell
  14. Eshell (Emacs Shell)

Package Managers

This release also includes a list of all major package managers for Linux distributions, programming languages, and universal platforms.

System Package Managers

  • APT
  • DPKG
  • DNF
  • YUM
  • RPM
  • Pacman
  • Yay
  • Paru
  • Zypper
  • Portage (emerge)
  • XBPS
  • APK
  • pkgtool
  • slackpkg
  • Nix
  • Guix

Universal Package Managers

  • Flatpak
  • Snap
  • AppImage
  • Homebrew (Linuxbrew)
  • Spack

Programming Language Package Managers

  • JavaScript: npm, yarn, pnpm
  • Python: pip, conda, poetry
  • Ruby: gem, bundler
  • Java: Maven, Gradle
  • PHP: Composer
  • Go: go mod
  • Rust: cargo
  • Perl: CPAN
  • R: CRAN
  • Haskell: cabal, stack
  • Lua: luarocks
  • C/C++: vcpkg, conan

Container and Virtualization Managers

  • Docker
  • Podman
  • Singularity
  • Minikube
  • Virtualenv

Specialized and Scientific Managers

  • Bioconda
  • Spack
  • Anaconda

Getting Started

To use this version, clone the repository and switch to the v2.0.0 tag:

git clone --branch v2.0.0 https://github.com/fernand3z/update-script.git

update-script v1.0.0

20 Jan 14:52
4065081
Compare
Choose a tag to compare

Universal Package Updater v1.0.0

The first stable release of the Universal Package Updater is here! This script provides a seamless way to keep your system and tools updated across multiple package managers. Designed with cross-shell compatibility and developer efficiency in mind, this release introduces robust support for popular package managers and shells.


Changelog

Added

  • Support for Popular Package Managers:
    • Homebrew
    • Flatpak
    • Nix
    • Paru
    • Yay
    • System-level managers: apt, dnf, pacman
  • Cross-Shell Compatibility:
    • Fully functional scripts for Zsh, Bash, Fish, and NuShell.
  • Installation Automation:
    • Shell detection and appropriate script installation.
    • Alias creation for quick access.

Fixed

  • Addressed minor compatibility issues with shell-specific syntax.
  • Improved handling of non-existent directories during installation.

Changed

  • Enhanced user messaging for better clarity during script execution.
  • Improved script readability and maintainability.

How to Use

Step 1: Clone the Repository

Clone the repository for this release:

git clone --branch v1.0.0 https://github.com/fernand3z/update-script.git
cd update-script

Step 2: Run the Installation Script

I. Run the command to make install.sh executable.

chmod +x install.sh

II. Run the command to install

./install.sh

Step 3: Add the upgrade Alias (If Not Already Added)

To simplify usage, add the alias to your shell configuration:

For Zsh:

alias upgrade="~/scripts/update_packages"

For Bash:

alias upgrade="~/scripts/update_packages"

For Fish:

alias upgrade="~/scripts/update_packages"

For NuShell:

alias upgrade = ~/scripts/update_packages

Save and reload your shell configuration (e.g., source ~/.zshrc for Zsh).

Step 4: Run the Updater

Use the upgrade command to update all your package managers effortlessly:

upgrade

Notes

  • This release supports Zsh, Bash, Fish, and NuShell. Ensure your shell is properly configured.
  • Make sure the required package managers are installed on your system before running the updater.

Download

No binaries are required; clone the repository for the specific version using:

git clone --branch v1.0.0 https://github.com/fernand3z/update-script.git