Pages

Tuesday, April 14, 2015

Have yaourt save compiled packages to /var/cache/pacman/pkg

   The title of this post might not mean much to most of you, but for those few lucky enough to use Arch Linux on a daily basis, this could be of use to you. By default, yaourt does not keep the package files it produces, it deletes them after installation. Since the AUR deals mostly with unsupported packages, making it imperative that you be able to roll back to older packages, this is not useful default behaviour.
   To have yaourt export your compiled packages to the standard location, /var/cache/pacman/pkg/, edit /etc/yaourtrc and change the line
#EXPORT=0
to
EXPORT=2
That is all. Have a nice day!

3 comments:

  1. You have the directory path in your post ending with "g" and the file path ending with "/". File paths should not end with "/".

    ReplyDelete

I'm very sorry to put you through the CAPTCHA. I tried to remove it, but the spam comments were unbelieveable. Here's a funny website to compensate: http://craptchas.com/