From b3f660470d4d19211a1aefee0b0286db726794b0 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Tue, 24 Nov 2020 05:15:53 +0000 Subject: [PATCH] Add apt-history --- sheets/apt-history | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sheets/apt-history 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