Rambox doesn't currently provide an apt repository that can be used to automatically upgrade the linux package. This means that a manual download has to be done. As much as I love Rambox, this is nearly a dealbreaker. This script helps ease the pain a little bit, but it still shouldn't need to exist.
This script automates the process of upgrading Rambox on a Debian-based Linux system. It fetches the latest .deb
package from the Rambox GitHub repository, terminates any existing Rambox processes, and installs the new version.
- Fetch Latest Release: Retrieves the latest release information from the Rambox GitHub repository.
- Download
.deb
Package: Determines the latest.deb
file from the repository. - Terminate Existing Processes: Identifies and terminates any running Rambox processes to ensure a clean upgrade.
- Install New Version: Installs the newly downloaded
.deb
package.
- Fetching the Latest Release:
- The script uses the GitHub API to find the latest release of Rambox.
- Downloading the
.deb
Package:- It then searches for a
.deb
package in the release's assets and downloads it.
- It then searches for a
- Terminating Existing Processes:
- The script locates any running Rambox processes and terminates them to avoid conflicts during installation.
- Installing the New Version:
- Finally, it uses
dpkg
to install the downloaded.deb
package.
- Finally, it uses
- Python 3
requests
library in Python- Internet access for downloading the
.deb
package - Sudo privileges for installing the
.deb
package
- Ensure Python 3 and
requests
library are installed:- Install Python 3 and
requests
(if not already installed) usingpip3 install requests
.
- Install Python 3 and
- Download the Script:
- Download or create the script
upgrade_rambox.py
on your system.
- Download or create the script
- Make the Script Executable (optional):
- Run
chmod +x upgrade_rambox.py
to make it executable.
- Run
- Run the Script:
- Execute the script by running
python3 upgrade_rambox.py
or./upgrade_rambox.py
if made executable.
- Execute the script by running
- Provide Sudo Password:
- The script will prompt for your sudo password as it requires administrative privileges to install the package.
- This script is designed for Debian-based Linux systems.
- Ensure you have permissions to run scripts and install packages on your system.
- The script should be run in a controlled environment first to ensure it functions as expected.