From 23af28d0587025ee2b41dd5620442309860d06d6 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 20 May 2021 23:15:30 +0100 Subject: Remove Jigswaw files --- .../_posts/pacman_cheat_sheet_for_ubuntu_users.md | 92 ---------------------- 1 file changed, 92 deletions(-) delete mode 100644 source/_posts/pacman_cheat_sheet_for_ubuntu_users.md (limited to 'source/_posts/pacman_cheat_sheet_for_ubuntu_users.md') diff --git a/source/_posts/pacman_cheat_sheet_for_ubuntu_users.md b/source/_posts/pacman_cheat_sheet_for_ubuntu_users.md deleted file mode 100644 index 53907d9..0000000 --- a/source/_posts/pacman_cheat_sheet_for_ubuntu_users.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -extends: _layouts.post -section: content -title: Pacman Cheat Sheet For Ubuntu Users -date: 2020-08-24 -description: My Pacman cheat sheet for Ubuntu Users. -tags: [Arch] ---- - -As a regular Ubuntu user I am used to using *apt* for system maintenance. But now that I've installed [Arch Linux](/posts/installing-arch-linux-on-a-x220-thinkpad/) I will be using *pacman* and so below is a cheat sheet for myself that shows the *pacman* equivalent of some common *apt* actions. - - -Action | Apt | Pacman | --------|-----|--------------------| -Install a package | apt install | pacman -S | -Remove a package | apt remove | pacman -Rs | -Search for a package | apt serch | pacman -Ss | -Upgrade packages | apt update && apt upgrade | pacman -Syu | -Upgrade distribution | apt update && apt dist-upgrade | pacman -Syu | -Clean up local caches | apt autoclean | pacman -Scc | -Remove unused dependencies | apt autoremove | pacman -Qmq | pacman -Rs - | - - -## Install a Package - -```shell -$ pacman --sync - -$ pacman -S -``` - -Installs a package and its dependencies. - -## Remove a Package - -```shell -$ pacman --remove --recursive - -$ pacman -Rs -``` - -Removes a package and all its dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. - -## Search For a Package - -```shell -$ pacman --sync --search - -$ pacman -Ss -``` - -Searches in the sync database for packages with a name or description that match the regexp. - -## Upgrade Packages - -```shell -$ pacman --sync --refresh --sysupgrade - -$ pacman -Syu -``` - -Downloads a fresh copy of the master package database and then upgrades all out-of-date packages. - -## Upgrade Distribution - -```shell -$ pacman --sync --refresh --sysupgrade - -$ pacman -Syu -``` - -Since Arch uses a rolling release system there is no distribution version as you just upgrade your packages to their latest versions. - -## Clean Up Local Caches - -```shell -$ pacman --sync --clean --clean - -$ pacman -Scc -``` - -Free up disk space by removing from the cache any packages that are no longer installed. Also removes any cached sync databases. - -## Remove Used Dependencies - -```shell -$ pacman --query --deps --unrequired --quiet | pacman --remove --recursive - - -$ pacman -Qdtq | pacman -Rs - -``` - -Remove dependencies that are no longer needed, because e.g. the package which needed the dependencies was removed. -- cgit v1.2.3-13-gbd6f