X-Downloader is a command-line tool written in Rust that allows users to track and reinstall packages on their system using a JSON file.
- Package Tracking: Track packages installed on your system.
- Generate JSON File: Generate a JSON file containing the list of tracked packages.
- Install from JSON File: Reinstall packages from a JSON file after system crashes or migrations.
To install X-Downloader, you'll need to have Rust and Cargo installed. Then, you can simply clone the repository and build the project using Cargo:
git clone https://github.com/yourusername/x-downloader.git
cd x-downloader
cargo build --release
To track a package, use the track
command followed by the package name:
x-downloader track PACKAGE_NAME
To generate a JSON file containing the tracked packages, use the generate-file
command:
x-downloader generate-file --file FILE_NAME.json
To install packages listed in a JSON file, use the install-from-file
command:
x-downloader install-from-file --file FILE_NAME.json
Here's an example workflow:
-
Track packages:
x-downloader track curl x-downloader track wget
-
Generate a JSON file:
x-downloader generate-file --file packages.json
-
After a system crash or migration, reinstall packages from the JSON file:
x-downloader install-from-file --file packages.json
Contributions are welcome! If you'd like to contribute to X-Downloader, please fork the repository, make your changes, and submit a pull request.