Skip to content

Commit

Permalink
Merge pull request #252 from jpopelka/packit-install
Browse files Browse the repository at this point in the history
Howto install on RHEL/CentOS or run in a container

Fixes packit/packit#278
Fixes packit/packit#762

Reviewed-by: Tomas Tomecek <tomas@tomecek.net>
  • Loading branch information
softwarefactory-project-zuul[bot] committed Mar 17, 2021
2 parents f598dc6 + 700eb0a commit 72f4555
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions content/docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ the logic is baked inside the `packit` command - so once `packit srpm` (the comm
to create a source RPM locally from the current snapshot of the project) starts
passing for you, it should work inside packit service as well.

This is how you can install packit if you are on Fedora Linux:
### Fedora Linux

$ sudo dnf install packit

We publish packit to PyPI and it's available as `packitos` project — **packit
at PyPI is something different**.
### Red Hat Enterprise Linux or CentOS Stream 8

$ pip3 install --user packitos
On RHEL/CentOS 8 you can install RPM from [EPEL](https://fedoraproject.org/wiki/EPEL) repository.
On CentOS, some dependencies are in PowerTools repository, so you have to enable it:

$ sudo dnf install dnf-plugins-core epel-release
$ sudo dnf config-manager --set-enabled powertools
$ sudo dnf install packit

### Via Fedora COPR

You can also help us test the latest development snapshot by installing packit
built from the master branch in Copr:
Expand All @@ -44,9 +50,28 @@ built from the master branch in Copr:
$ # OR in case you have packit already installed from the Fedora repositories:
$ sudo dnf upgrade packit

### From PyPI

We publish packit to PyPI and it's available as `packitos` project — **packit
at PyPI is something different**.

$ pip install --user packitos

### From Source

... or installing it directly from GitHub:

$ pip3 install --user git+https://github.com/packit/packit
$ pip install --user git+https://github.com/packit/packit

### In a container

If none of the above work for you, try running it in a container
from our Fedora based image. It contains packit installed from `main` branch,
i.e. the same you'd get by pip installing from Github.

$ podman run -ti --rm -v $PWD:/src --security-opt label=disable quay.io/packit/packit bash
$ packit
Usage: packit [OPTIONS] COMMAND [ARGS]...

## RPM builds pass on your laptop.

Expand Down

0 comments on commit 72f4555

Please sign in to comment.