summaryrefslogtreecommitdiff
path: root/vimwiki/Basic operations.md
diff options
context:
space:
mode:
Diffstat (limited to 'vimwiki/Basic operations.md')
-rw-r--r--vimwiki/Basic operations.md57
1 files changed, 57 insertions, 0 deletions
diff --git a/vimwiki/Basic operations.md b/vimwiki/Basic operations.md
new file mode 100644
index 0000000..1a99ad7
--- /dev/null
+++ b/vimwiki/Basic operations.md
@@ -0,0 +1,57 @@
+_BASIC OPERATIONS_
+
+
+# Action Arch Debian/Ubuntu
+
+1. Install a package(s) by name `pacman -S` `apt install`
+
+2. Remove a package(s) by name `pacman -Rs` `apt remove`
+
+3. Search for package(s) `pacman -Ss` `apt search`
+
+4. Upgrade Packages `pacman -Syu` `apt update && apt upgrade`
+- Install packages which have an older version
+- already installed
+
+5. Upgrade Packages `pacman -Syu` `apt update && apt dist-upgrade`
+- Another form of the update command, which can
+- perform more complex updates -- like
+- distribution upgrades. When the usual update
+- command will omit package updates, which
+- include changes in dependencies, this command
+- can perform those updates.
+
+6. Clean up all local caches. `pacman -Sc` `apt autoclean`
+- Options might limit what is actually cleaned. `pacman -Scc` `apt clean`
+- Autoclean removes only unneeded, obsolete
+- information.
+
+7. Remove dependencies that are no longer needed, `pacman -Qdtq | pacman -Rs -` `apt autoremove`
+- because e.g. the package which needed the
+- dependencies was removed.
+
+8. Remove packages no longer included in any `pacman -Qmq | pacman -Rs -` `aptitude purge '~o'`
+- repositories.
+
+9. Mark a package previously installed as a `pacman -D --asexplicit` `apt-mark manual`
+- dependency as explicitly required.
+
+10. Install package(s) as dependency / without `pacman -S --asdeps` `apt-mark auto`
+- marking as explicitly required.
+
+11. Only downloads the given package(s)
+- without unpacking or installing them `pacman -Sw` `apt install --download-only` (into package cache)
+ `apt download` (bypass the package cache)
+12. Start a shell to enter multiple commands in `apt-config shell`
+- one session
+
+13. Show a log of actions taken by the software `cat /var/log/pacman.log` `cat /var/log/dpkg.log`
+- management.
+
+14. Get a dump of the whole system information `(see /var/lib/pacman/local)` `apt-cache stats`
+- Prints, Saves or similar the current state
+- of the package management system.
+- Preferred output is text or XML.
+
+15. e-mail delivery of package changes. `apt install apt-listchanges`
+