From 2e24250973ad94bca374a248dbcbb8e0ace8f55e Mon Sep 17 00:00:00 2001 From: gargaml Date: Sun, 6 Aug 2017 23:13:13 +0200 Subject: [PATCH] New Aptitude Cheat Sheet (#4381) * adding aptitude cheat sheet * Coherence between section list and sections * minor typo * added a link towards Debian reference --- share/goodie/cheat_sheets/json/aptitude.json | 158 +++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 share/goodie/cheat_sheets/json/aptitude.json diff --git a/share/goodie/cheat_sheets/json/aptitude.json b/share/goodie/cheat_sheets/json/aptitude.json new file mode 100644 index 000000000..f2f96e2c6 --- /dev/null +++ b/share/goodie/cheat_sheets/json/aptitude.json @@ -0,0 +1,158 @@ +{ + "id": "aptitude_cheat_sheet", + "name": "aptitude", + "description": "Basic shortcuts for Aptitude, an Ncurses based interface for Apt", + + "metadata": { + "sourceName": "Debian reference", + "sourceUrl" : "https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_interactive_use_of_aptitude" + }, + + "template_type": "keyboard", + + "section_order": [ + "Basics", + "Search patterns", + "Package management", + "Conflict resolution" + ], + + "sections": { + "Basics": [ + { + "key": "u", + "val": "Update package list" + }, + { + "key": "U", + "val": "Mark all packages with updates" + }, + { + "key": "/", + "val": "Find a package" + }, + { + "key": "n", + "val": "Find next package matching a search " + }, + { + "key": "N", + "val": "Find next package backward matching a search " + }, + { + "key": "+", + "val": "Mark a package for installation" + }, + { + "key": "-", + "val": "Mark a package for removal" + }, + { + "key": "g", + "val": "Install/remove marked packages" + }, + { + "key": "q", + "val": "Quit" + } + ], + "Search patterns": [ + { + "key": "", + "val": "Packages whose name contains " + }, + { + "key": "!", + "val": "Packages whose name does not contain " + }, + { + "key": "~i", + "val": "Installed packages whose name contains " + }, + { + "key": "^", + "val": "Packages whose name starts with " + }, + { + "key": "$", + "val": "Packages whose name ends with " + }, + { + "key": "~c", + "val": "Removed packages with residual configuration files" + }, + { + "key": "~v", + "val": "Virtual packages whose name contains " + }, + { + "key": "~d", + "val": "Packages whose description contains " + }, + { + "key": "~D", + "val": "Packages which depend on " + }, + { + "key": "~R", + "val": "Dependencies of the package " + } + ], + "Package management": [ + { + "key": "L", + "val": "Mark a package for reinstallation" + }, + { + "key": "_", + "val": "Mark a package and its configuration files for removal" + }, + { + "key": ":", + "val": "Keep a package in its current version" + }, + { + "key": "=", + "val": "Prevent upgrades of a package" + }, + { + "key": "M", + "val": "Mark a package as automatically installed" + }, + { + "key": "m", + "val": "Mark a package as manually installed" + }, + { + "key": "F", + "val": "Forbid a package version from being installed" + } + ], + "Conflict resolution": [ + { + "key": "e", + "val": "Examine a solution" + }, + { + "key": "!", + "val": "Apply a solution" + }, + { + "key": ".", + "val": "Next solution" + }, + { + "key": ",", + "val": "Previous solution" + }, + { + "key": "<", + "val": "First solution" + }, + { + "key": ">", + "val": "Last solution" + } + ] + } +} \ No newline at end of file