The tool presented here, „Simple Apt Update“ (simple-apt-update) is nothing more than a front-end to the non-interactive execution of apt-get update|full-upgrade and apt list –upgradeable. It can look like this:
Articles in Category "Programmierung"
A simple GUI for basic Package Management with Apt
2. Dezember 2024 in Administration, GNU/Linux, Programmierung, Technik.
Utility to search for XDG Desktop Files
3. November 2024 in Administration, GNU/Linux, Programmierung, Technik.
In my previous article Print XDG Desktop Definition for Application i described a way to search the various „applications“ sub-directories of the known XDG data directories for .desktop-files that match certain search criteria. The short shell script from that article is now available as a commandline utility, including the usual bells and whistles such as […]
Getting Alerted on Expiring GPG Keys
3. August 2024 in Administration, GNU/Linux, Programmierung.
GnuPG is a powerful cryptographic tool that enjoys widespread support by F/LOSS mail user agents. However, due to a lack of conventional public key management it is plagued by key-related issues. One such issue is the expiry of GnuPG keys, which often goes unnoticed by affected messaging partners until such time when it actually disturbs […]
WordPress Plugin to embed Gitea Repositories
29. September 2023 in Administration, GNU/Linux, Programmierung, Technik.
I ported the WordPress plugin providing shortcodes for embedding Gitlab projects into posts and pages to a Gitea version. Below is a usage example, displaying the latest 3 commits and the latest release (if any) from repository „linuxfoo-gitea“ on my Gitea instance: Gitea project linuxfoo-giteaLast 3 commits: by root: 35962433 correct json pat to commit […]
Print all indented Lines following a non-indented Line
29. April 2024 in GNU/Linux, Programmierung.
Some configuration and output text formats contain sections like the following: foo: value1 value2 bar: value 3 In this article, two scripts are presented that print all consecutive indented lines that follow a non-indented line that matches a search pattern given by a regular expression. This means, given the single argument foo and the standard […]
Maintaining Multi-Line „stat“ Formats using Bourne Again Shell
7. November 2024 in GNU/Linux, Programmierung.
The stat command from GNU core utilities features not only a –format FORMAT option but also a –printf FORMAT one, the difference being that the latter allows for backslash escapes such as \n. This allows for custom per-file report formats containing newlines, for example: stat –printf ‚Name: %n\nSize: %s Bytes\n‘ /etc/passwd If the format string […]
Make a Bourne Again Shell Script Log its Output to a File
23. November 2024 in Administration, GNU/Linux, Programmierung.
The Bourne Again Shell script presented in this article demonstrates techniques related to capturing and logging output (standard output and standard error stream) of a script into a log file while also delivering it to the regular output destinations (for example the terminal or whatever the caller has chosen to redirect to). If you are […]
Using sed or awk to ensure a specific last Line in a Text
20. August 2023 in GNU/Linux, Programmierung.
Given a file containing bytes of text with lines separated by the newline character (\n), one of these lines can be said to be „the last line of the file“; it is a sequence of bytes occurring in the file, for which holds: The sequence contains no newline character, and the sequence is followed by […]