Updating from the command line

A lot of software is entrenched on GitHub. This is not the time to rant about GitHub; however, I do keep notifications of releases for software that I cannot update via other means (like through my distro). GitHub allows you to keep watch of releases but you can also add it to your RSS feed by adding releases.atom to the end of a repo URL. There is also the GitHub CLI which allows you to download releases from the command line. You can find more info here:

https://cli.github.com/

The RSS reader I use is sfeed_curses:

https://git.codemadness.org/sfeed_curses/file/README.html

Which is a simple TUI that wraps around sfeed, a command line suite of RSS related tools.

https://codemadness.org/git/sfeed/file/README.html

Unfortunately, if you want to add new keybindings to sfeed_curses, you have to modify the source code (not explicitly stated, but implied in the README). I can also write a script and add it to the SFEED_PIPER environment variable and programmatically script it that way, but still clunky. Anyway, let's get onto the actual download part.

In this example, I want to update Firefox-UI-Fix, which reverts some annoying UI changes introduced a while back. The primary reason I want to automate this is because I have some dark theme related CSS changes that prevent the flickering white whenever you open a new tab. It is rather straight-forward:

And the CSS changes can be obtained here:

https://linuxguideandhints.com/fedora/firefox.html#forcing-dark-theme

This saves me a lot of annoying clicking through GUI dialogs.

Addendum

Rather than create a new post, it occured to me to write about other things I do to keep my system updated. Here's my script helpfully labelled update-shit.sh:

Cargo does not have an upgrade all packages command that I know off, hence the need for cargo-install-update. pipx is useful for installing CLI binaries. It installs them in separate venvs and allows you to upgrade them all at once.

https://pypi.org/project/pipx/

If you are on Fedora, I *strongly* recommend using the dnf offline-upgrade plugin.

https://dnf-plugins-extras.readthedocs.io/en/latest/index.html

Proxied content from gemini://remyabel.flounder.online/2021-11-04-updating-from-the-command-line.gmi (external content)

Gemini request details:

Original URL
gemini://remyabel.flounder.online/2021-11-04-updating-from-the-command-line.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.