diff --git a/sheets/apt-history b/sheets/apt-history new file mode 100644 index 0000000..edd17dc --- /dev/null +++ b/sheets/apt-history @@ -0,0 +1,23 @@ +# apt-history +# Command-line tool to pretty-print and filter the APT log + +# Filter log entries by installations made by user 'ichy'. +apt-history -u ichy -A Install + +# Filter log entries by removals affecting the package 'firefox:amd64' +apt-history -A Remove -p firefox:amd64 + +# By default, `apt-history` paginates using less(1) or more(1), but this can be +# disabled with the `-P` flag. In this example, only log entries made by the +# current user will be displayed. +# +# Thanks to the `-r` flag, the output is reversed, meaning that the newest +# entries show last. +apt-history -r -u $USER -P + +# You might prefer your packages to be listed out in a wrapped way, more like +# you'd see in the '/var/log/apt/history.log' file, without all of the version +# strings. +# +# Using the `-c` flag, this example will include the actual command executed. +apt-history -D Wrapped -c diff --git a/tests/lenchk b/tests/lenchk index c035bc2..d01e3e8 100755 --- a/tests/lenchk +++ b/tests/lenchk @@ -14,7 +14,7 @@ Usage(){ Usage: $Progrm [OPTS] [DIR_1 [DIR_2 ...]] -h, --help - Display this help information. - -C, --no-color - Provide color via esscape sequences. + -C, --no-color - Do not use ANSI color escape sequences. -D, --no-subdirs - Ignore the 'sheets/_*' subdirectories. -I, --no-lenchk-line - Ignore the special 'lenchk=.*' line. -N, --no-preview - Omit the preview of each triggered line.