Python library¶
Archinstall ships on PyPi as archinstall. But the library can be installed manually as well.
Warning
This is not required if you’re running archinstall on a pre-built ISO. The installation is only required if you’re creating your own scripted installations.
Using pacman¶
Archinstall is on the official repositories.
To install both the library and the archinstall script:
sudo pacman -S archinstall
Or, to install just the library:
sudo pacman -S python-archinstall
Using PyPi¶
The basic concept of PyPi applies using pip. Either as a global library:
sudo pip install archinstall
Or as a user module:
pip --user install archinstall
Which will allow you to start using the library.
Manual installation¶
You can either download the github repo as a zip archive. Or you can clone it, we’ll clone it here but both methods work the same.
git clone https://github.com/archlinux/archinstall
Either you can move the folder into your project and simply do
import archinstall
Or you can use setuptools to install it into the module path.
sudo python setup.py install