{"id":15051020,"url":"https://github.com/jmousqueton/yaus","last_synced_at":"2026-01-02T03:45:56.699Z","repository":{"id":221958600,"uuid":"755880525","full_name":"JMousqueton/yaus","owner":"JMousqueton","description":"Yey Another Upgrade Script for  Debian and Ubuntu-based Linux systems","archived":false,"fork":false,"pushed_at":"2024-02-18T08:17:54.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T21:52:17.894Z","etag":null,"topics":["apt","apt-get","bash","crontab","debian","debian-linux","reboot","ubuntu","ubuntu-server","update","upgrade"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JMousqueton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-11T11:18:31.000Z","updated_at":"2024-11-20T13:06:29.000Z","dependencies_parsed_at":"2024-11-19T18:54:59.690Z","dependency_job_id":null,"html_url":"https://github.com/JMousqueton/yaus","commit_stats":null,"previous_names":["jmousqueton/yaus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Fyaus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Fyaus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Fyaus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Fyaus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMousqueton","download_url":"https://codeload.github.com/JMousqueton/yaus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234862660,"owners_count":18898393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apt","apt-get","bash","crontab","debian","debian-linux","reboot","ubuntu","ubuntu-server","update","upgrade"],"created_at":"2024-09-24T21:30:30.581Z","updated_at":"2026-01-02T03:45:56.658Z","avatar_url":"https://github.com/JMousqueton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yey Another Upgrade Script \n\nThis Bash script automates essential system maintenance tasks on Debian and Ubuntu-based Linux systems. It handles package updates, upgrades, and system clean-up processes to ensure the system is up-to-date and running efficiently.\n\n## Features\n\n- **Package Updates**: Automatically updates the list of packages and their versions.\n- **Package Upgrades**: Upgrades all out-of-date packages to the latest versions.\n- **System Clean-Up**: Removes unused packages and cleans up old package versions.\n- **Reboot Handling**: Checks if a reboot is required after updates and initiates it if necessary.\n- **Logging**: Maintains a comprehensive log of all maintenance activities, including a timestamp for each entry.\n- **Debug Mode**: Offers an optional verbose output mode for debugging purposes.\n- **Quiet Mode**: Provides an option to suppress console output, logging messages only.\n\n## Requirements\n\n- **Root Access**: The script must be run with root privileges to perform system maintenance tasks.\n- **Debian or Ubuntu-based System**: Designed specifically for Debian and Ubuntu distributions.\n\n## Installation\n\n1. Download the script to your system.\n2. Ensure the script is executable:\n   ```bash\n   chmod +x upgrade.sh\n   ```\n\n3. Move the script to a location that's included in your system's `PATH` to allow easy execution from anywhere. A common location for custom scripts is `/usr/local/bin`:\n\n  ```bash\n  sudo mv upgrade.sh /usr/local/bin/\n  ```\n\n## Usage\n\nExecute the script from the terminal with root privileges:\n\n```bash\nsudo upgrade.sh\n```\n\n### Configuration Options\n\nCustomize the behavior of the script by modifying the following variables within the script file:\n\n- **`LOG_FILE`**: Set the path where you want the log messages to be saved. The default path is `/var/log/system_maintenance.log`.\n  \n  Example: `LOG_FILE=\"/path/to/your/logfile.log\"`\n\n- **`DEBUG`**: Enable verbose output for debugging purposes by setting this variable to `true`. By default, it is set to `false`.\n\n  Example: `DEBUG=true`\n\n- **`QUIET`**: Suppress all output to the console, making all log entries go directly to the log file, by setting this variable to `true`. By default, it is set to `false`.\n\n  Example: `QUIET=true`\n\nTo apply these configurations, edit the script with your preferred text editor and modify the values of these variables as needed.\n\n## Troubleshooting\n\nIf you encounter issues while using the script, consider the following solutions:\n\n- **Execution Permission**: Ensure the script has the necessary execution permissions by running:\n\n  ```bash\n  sudo chmod +x /usr/local/bin/upgrade.sh\n  ```\n  \n- **Update or Upgrade Problems**: If you're experiencing issues with updating or upgrading packages, first ensure you have a stable internet connection. Additionally, check your system's package repository settings to ensure they are correct and accessible. Common issues include network problems, incorrect repository URLs in the `/etc/apt/sources.list` file, or repository servers being temporarily unavailable.\n\n  If problems persist, you can manually run `sudo apt-get update` and `sudo apt-get upgrade` in the terminal to see if any specific errors are reported, which can help in diagnosing and resolving the issue.\n\n## Contributing\n\nWe welcome contributions from the community! If you have improvements or fixes, please fork the repository, make your changes, and submit a pull request. For bug reports or feature requests, don't hesitate to open an issue on the GitHub project page. Your insights and contributions are valuable to the continuous improvement of this script.\n\n## License\n\nThis script is made available under the MIT License. This license permits free use, modification, and distribution, provided that the original authorship is credited. Please refer to the [`LICENSE`](LICENSE) file in the repository for the full legal text.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fyaus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmousqueton%2Fyaus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fyaus/lists"}