Smjrifle

Restore –asroot for Yaourt/makepkg Arch (yaourt as root)

Yaourt as root

Introduction

Since pacman 4.2 when running yaourt as root user you get error message. It was really a horrifying experience for me as I run my system as root user. Switching to another user just to run yaourt was not feasible for me. Also adding switch user alias wasn’t good solution for me. So I looked for a workaround and here it is. No more alias and no more switching user. The only problem is you need to do this everytime you update or pacman updates. Better download the file and copy it after every update.