{
    "id": "arch_linux_cheat_sheet",
    "name": "Pacman Package Manager",
    "description": "Various commands for pacman & yaourt",
    "metadata": {
		"sourceName": "ArchWiki",
		"sourceUrl": "https://wiki.archlinux.org/index.php/Pacman"
	},
    "aliases": [
        "arch",
        "arch distro",
        "linux arch",
        "pacman",
        "yaourt",
        "antergos",
	"antergos linux",    
        "manjaro",
        "manjaro linux",
        "chakra linux"
    ],
    "template_type" : "terminal",
    "section_order": [
       "Pacman - Package manager utility",
       "Yaourt - Yaourt is a pacman frontend with added features",
       "Removing Packages"
    ],
    "sections": {
        "Pacman - Package manager utility": [
            {
                "key": "pacman -S xyz",
                "val": "Install package xyz"
            },
            {
                "key": "pacman -Syy",
                "val": "Force synchronization of repository databases"
            },
            {
                "key": "pacman -Ss xyz",
                "val": "Search repository database for packages for xyz"
            },
            {
                "key": "pacman -Sy xyz",
                "val": "Really synchronize repo and install xyz"
            },
            {
                "key": "pacman -R xyz",
                "val": "Remove package xyz but keep its dependencies installed"
            },
            {
                "key": "pacman -Rs xyz",
                "val": "Remove package xyz and all its dependencies (if they are not required by any other package)"
            },
            {
                "key": "pacman -Rsc xyz",
                "val": "Remove package xyz, all its dependencies and packages that depend on the target package"
            },
            {
                "key": "pacman -Ql xyz",
                "val": "Show all files installed by the package xyz"
            },
            {
                "key": "pacman -Qo /path",
                "val": "Find the package which installed the file at /path"
            },
            {
                "key": "pacman -Syu",
                "val": "Sync and Upgrade"
            },
            {
                "key": "pacman -Sc",
                "val": "Remove all cached packages that are not currently installed"
            },
            {
                "key": "pacman -U /path/to/package/package_name-version.pkg.tar.xz",
                "val": "Install a 'local' package that is not from a remote repository (e.g. the package is from the AUR)"
            },
            {
                "key": "pacman -Sw xyz",
                "val": "Download package xyz without installing it"
            }
        ],
        "Yaourt - Yaourt is a pacman frontend with added features": [
            {
                "key": "yaourt -Syu --devel --aur",
                "val": "Sync database, upgrade packages, search aur and devel (all packages based on dev version) upgrades"
            },
            {
                "key": "yaourt -Sb",
                "val": "Build package from source"
            },
            {
                "key": "yaourt -C",
                "val": "Check, edit, merge or remove *.pac* files"
            },
            {
                "key": "yaourt -G",
                "val": "Get a PKGBUILD (support splitted package)"
            },
            {
                "key": "yaourt -Sb --export",
                "val": "Build and export package, its sources to a directory"
            },
            {
                "key": "yaourt -B",
                "val": "Backup database"
            },
            {
                "key": "yaourt -Q --backupfile",
                "val": "Query backup file"
            }
            
        ],
        "Removing Packages": [
            {
                "key": "pacman -R xyz",
                "val": "Remove package 'xyz', leaving all of its dependencies installed"
            },
            {
                "key": "pacman -Rs xyz",
                "val": " Remove package 'xyz' and its dependencies which are not required by any other installed package"
            },
            {
                "key": "pacman -Rsc xyz",
                "val": "Remove package 'xyz', its dependencies and all the packages that depend on the target package"
            },
            {
                "key": "pacman -Rdd xyz",
                "val": "Remove package 'xyz', which is required by another package, without removing the dependent package"
            },
            {
                "key": "pacman -Rn xyz",
                "val": "Prevent the creation of the backup configuration files use the -n option"
            }
        ]
    }
}

