Create PureOS pBuilder Environment
==================================
This page explains how to set up a PureOS pBuilder environment.
Prerequisites
-------------
On PureOS, everything you need is already preconfigured, you just need to install pbuilder:
```
sudo apt install pbuilder debootstrap devscripts
```
If you are not on a PureOS distribution, but on Debian or a derivative (e.g. Ubuntu), do:
1. Download & install the [debootstrap package](http://repo.puri.sm/pureos/pool/main/d/debootstrap/) from PureOS
2. Download & install the PureOS [archive keyring package](http://repo.puri.sm/pureos/pool/main/p/pureos-archive-keyring/).
# Install pbuilder:
```
sudo apt install pbuilder devscripts
```
Create the pBuilder environment
-------------------------------
If you are on PureOS, just do
```
sudo pbuilder create --distribution green --debootstrapopts --variant=buildd
```
If you are not on PureOS, try the following command:
```
sudo pbuilder create --distribution green --debootstrapopts --variant=buildd --mirror http://repo.puri.sm/pureos --debootstrapopts "--keyring=/usr/share/keyrings/pureos-archive-keyring.gpg"
```
And that's it, you should have a working PureOS pBuilder environment now!