From e5093db169fd9a834d256b1118f6787bf16883d6 Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Mon, 21 Apr 2014 23:15:09 +0200 Subject: [PATCH] [APT-GET] Change to grep [PACMAN] Change the AUR instructions --- cheatsheets/apt-get | 2 +- cheatsheets/pacman | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/cheatsheets/apt-get b/cheatsheets/apt-get index 3208a53..c7bc7f3 100644 --- a/cheatsheets/apt-get +++ b/cheatsheets/apt-get @@ -22,4 +22,4 @@ apt-get download modsecurity-crs apt-get -o Dir::Cache="/path/to/destination/dir/" -o Dir::Cache::archives="./" install ... # Show apt-get installed packages. -cat /var/log/dpkg.log | grep 'install ' +grep 'install ' /var/log/dpkg.log diff --git a/cheatsheets/pacman b/cheatsheets/pacman index 353f6c5..cb51fc6 100644 --- a/cheatsheets/pacman +++ b/cheatsheets/pacman @@ -32,12 +32,17 @@ pacman -Qdt # You can't directly install packages from the Arch User Database (AUR) with pacman. -# You need yaourt to perform that. But considering yaourt itself is in the AUR, here is how to -build a package from its tarball. -# First, get the .tar.gz archive and unpack it -wget -tar -xzf -cd -# Then build the package and install it +# You need yaourt to perform that. But considering yaourt itself is in the AUR, here is how to build a package from its tarball. +# Installing a package from AUR is a relatively simple process: +# - Retrieve the archive corresponding to your package from AUR website +# - Extract the archive (preferably in a folder for this purpose) +# - Run makepkg in the extracted directory. (makepkg-s allows you to install any dependencies automatically from deposits.) +# - Install the package created using pacman +# Assuming $pkgname contains the package name. +wget "https://aur.archlinux.org/packages/${pkgname::2}/$pkgname/$pkgname.tar.gz" +tar zxvf "$pkgname.tar.gz" +cd "$pkgname" +# Build the package makepkg -s -pacman -U +# Install +sudo pacman -U