blog.dbrgn.ch

Speeding Up Yaourt Package Installs

written on Sunday, October 09, 2016 by

If you use the Yaourt package installer on Arch Linux, you're probably aware of the long install times of certain large packages like android-ndk or chromium. The reason for this is the compression. The install process goes something like this:

  1. Download package
  2. Build package with makepkg
  3. Download sources
  4. Build package
  5. Compress package into a .pkg.tar.xz archive
  6. Uncompress archive in order to install it
  7. Install package

Notice something? The step that takes by far the longest (compressing the package) is totally unnecessary because the package is uncompressed again in the next steps.

The archive extension is configurable though. Add the following line to your ~/.yaourtrc:

PKGEXT=.pkg.tar

The compression step should now take only a few instants, because the compression itself is being skipped.

This entry was tagged archlinux, linux, pacman and yaourt