Quick scripts for batch-processing of packages in Subatomic repositories.
Now that we have hundreds of packages in Subatomic, and sometimes manual intervention is required to please the repology gods, I needed a way to batch-process packages to clean up the mess once in a while.
Also note that these scripts are in Fish shell. Because I like using Fish. That's it.
- Get a Subatomic token
- Create a Subatomic config file in
~/.config/subatomic.json
with the token and API endpoint - Run the script.
satm-grepdel.fish
- Deletes all package specs that match a certain grep pattern from multiple repositories. Works by iterating through each repository, listing all the packages and grepping for the pattern, Then pipes that to another function that iterates through all those packages and deletes them. Takes in a pattern as an argument.satm-rm-stdin.sh
- Deletes all packages that are in the list of packages from stdin. Useful for deleting packages that are in a file. Takes in a single repository as an argument, but uses stdin to feed the list. Considered a simplified version ofsatm-grepdel.fish
, but BYO filters. Use carefully. Don't pipe in everything.