[APT-GET] Change <cat | grep> to grep

[PACMAN] Change the AUR instructions
This commit is contained in:
ImmortalPC 2014-04-21 23:15:09 +02:00
parent 4c31138bbf
commit e5093db169
2 changed files with 14 additions and 9 deletions

View File

@ -22,4 +22,4 @@ apt-get download modsecurity-crs
apt-get -o Dir::Cache="/path/to/destination/dir/" -o Dir::Cache::archives="./" install ... apt-get -o Dir::Cache="/path/to/destination/dir/" -o Dir::Cache::archives="./" install ...
# Show apt-get installed packages. # Show apt-get installed packages.
cat /var/log/dpkg.log | grep 'install ' grep 'install ' /var/log/dpkg.log

View File

@ -32,12 +32,17 @@ pacman -Qdt
# You can't directly install packages from the Arch User Database (AUR) with pacman. # 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 # You need yaourt to perform that. But considering yaourt itself is in the AUR, here is how to build a package from its tarball.
build a package from its tarball. # Installing a package from AUR is a relatively simple process:
# First, get the .tar.gz archive and unpack it # - Retrieve the archive corresponding to your package from AUR website
wget <archive url> # - Extract the archive (preferably in a folder for this purpose)
tar -xzf <archive file> # - Run makepkg in the extracted directory. (makepkg-s allows you to install any dependencies automatically from deposits.)
cd <unpacked folder> # - Install the package created using pacman
# Then build the package and install it # 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 makepkg -s
pacman -U <package file (.pkg.tar.xz)> # Install
sudo pacman -U <package file (.pkg.tar.xz)>