diff --git a/Install-Bats-Using-a-Package.md b/Install-Bats-Using-a-Package.md new file mode 100644 index 0000000..8e5b891 --- /dev/null +++ b/Install-Bats-Using-a-Package.md @@ -0,0 +1,24 @@ +# Purpose + +You may be able to find Bats pre-packaged for your operating system. If available, such a package may offer a convenient alternative to cloning the Github repository: + + * The installation is usually shared by all users on the system. + * The ``bats`` command will typically be available without configuration of any kind. + * Updates and bugfixes may be provided via the regular stream of package updates for your system. + +## openSUSE + +Bats is available for openSUSE Tumbleweed (the rolling release), and will be available in the upcoming openSUSE Leap 42.1 release. To install it, run + + zypper in bats + +For older releases, take a look at the [development project on OBS (Open Build Service)](https://build.opensuse.org/package/show/devel:tools/bats). In the lower-right box you will find build results for all releases for which a Bats package is built. + +For example, to install Bats on openSUSE 13.2: + + 1. Click on the link corresponding to the distribution. + 2. Add the linked-to "download repository" as a zypper repository: + + zypper add -f http://download.opensuse.org/repositories/devel:/tools/openSUSE_13.2 devel-tools + + 3. Install bats the usual way: ``zypper in bats``