| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple program for updating & upgrading your linux system via command line.
This program uses sudo, make sure you have admin permissions. The script performs tasks based on user input, and gives clear options at each stage. If any errors occur, the script will notify the user and exit, preventing further issues.
The script works with the APT package manager, which is used by Debian-based distributions like Ubuntu, Mint, and others.
The script interacts with the user by asking for confirmation before performing actions such as upgrading packages, running dist-upgrade, and cleaning the system.
After each command, the script checks for errors using $?. If any command fails, an error message is displayed, and the script exits to prevent further issues.
If you’re running this on a Debian-based Linux distribution (like Ubuntu or Linux Mint), this script should work out of the box. Ensure that the user has sudo privileges for commands like sudo apt update and sudo apt dist-upgrade.
Make the script executable: chmod +x ./update.sh Run the script: sudo ./update.sh
WARNING: apt does not have a stable CLI interface. Use with caution in scripts. it is issued by the APT package manager (which is used on Debian Based Systems). It means the APT CLI interface is not guaranteed to remain stable accross version. It may change in ways that could break existing scripts, which is why the warning is issued, especially when automating tasks with scripts.
To avoid this warning and ensure the stability of your scripts, you can replace apt with apt-get or dpkg in your scripts, as they provide a more stable interface for automation and scripting.
| Back | FazBrowse Home | New Git URL |