@@ -5,20 +5,20 @@ mysql or postgresql instead, see the database configuration section.
55
66
77## Supported Install Options
8- - [ Ubuntu 18 .04] ( #ubuntu-1804 -bionic )
8+ - [ Ubuntu 20 .04] ( #ubuntu-2004 -bionic )
99 - [ Debian 10] ( #debian-10-buster )
1010 - [ CentOS 7] ( #centos-7 )
1111 - [ virtualenv + pip] ( #virtualenv--pip )
1212 - [ Source] ( #source )
1313
1414
15- ### Ubuntu 18 .04 (bionic )
15+ ### Ubuntu 20 .04 (focal )
1616
1717``` shell
1818apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0412F522
19- echo " deb https://repo.openbytes.ie/ubuntu bionic main" > /etc/apt/sources.list.d/patchman.list
19+ echo " deb https://repo.openbytes.ie/ubuntu focal main" > /etc/apt/sources.list.d/patchman.list
2020apt update
21- apt -y install python -patchman patchman-client
21+ apt -y install python3 -patchman patchman-client
2222patchman-manage createsuperuser
2323```
2424
@@ -28,7 +28,7 @@ patchman-manage createsuperuser
2828apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0412F522
2929echo " deb https://repo.openbytes.ie/debian buster main" > /etc/apt/sources.list.d/patchman.list
3030apt update
31- apt -y install python -patchman patchman-client
31+ apt -y install python3 -patchman patchman-client
3232patchman-manage createsuperuser
3333```
3434
@@ -54,8 +54,8 @@ patchman-manage createsuperuser
5454TBD - not working yet
5555
5656``` shell
57- apt -y install gcc libxml2-dev libxslt1-dev virtualenv python -dev zlib1g-dev # (debian/ubuntu)
58- yum -y install gcc libxml2-devel libxslt-devel python -virtualenv # (centos/rhel)
57+ apt -y install gcc libxml2-dev libxslt1-dev virtualenv python3 -dev zlib1g-dev # (debian/ubuntu)
58+ yum -y install gcc libxml2-devel libxslt-devel python3 -virtualenv # (centos/rhel)
5959mkdir /srv/patchman
6060cd /srv/patchman
6161virtualenv .
@@ -74,17 +74,18 @@ gunicorn patchman.wsgi -b 0.0.0.0:80
74741 . Install dependencies
7575
7676``` shell
77- apt -y install python-django-tagging python-django python-requests \
78- python-django-extensions python-argparse python-defusedxml python-rpm python-debian \
79- python-pygooglechart python-cracklib python-progressbar libapache2-mod-wsgi \
80- python-djangorestframework apache2 python-colorama python-humanize liblzma-dev \
81- python-magic python-lxml
77+ apt -y install -t buster-backports python3-django
78+ apt -y install python3-django-tagging python3-django-extensions
79+ python3-djangorestframework python3-defusedxml python3-lxml \
80+ python3-requests python3-rpm python3-debian \
81+ python3-colorama python3-humanize python3-magic \
82+ apache2 libapache2-mod-wsgi
8283```
8384
84852 . Install django-bootstrap3
8586
8687``` shell
87- pip install django-bootstrap3
88+ pip3 install django-bootstrap3
8889```
8990
90913 . Clone git repo to e.g. /srv/patchman
@@ -152,7 +153,7 @@ To configure the mysql database backend:
1521531 . Ensure mysql-server and the python mysql bindings are installed:
153154
154155``` shell
155- apt -y install default-mysql-server python -mysqldb python-pymysql
156+ apt -y install default-mysql-server python3 -mysqldb
156157```
157158
1581592 . Create database and users:
@@ -193,7 +194,7 @@ To configure the postgresql database backend:
1931941 . Ensure the postgresql server and the python postgres bindings are installed:
194195
195196``` shell
196- apt -y install postgresql python -psycopg2
197+ apt -y install postgresql python3 -psycopg2
197198```
198199
1992002 . Create database and users:
@@ -311,14 +312,14 @@ Install Celery for realtime processing of reports from clients:
311312#### Ubuntu / Debian
312313
313314``` shell
314- apt -y install python -celery python-celery-common rabbitmq-server
315+ apt -y install python3 -celery rabbitmq-server
315316C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
316317```
317318
318319#### CentOS / RHEL
319320
320321``` shell
321- yum -y install python -celery rabbitmq-server
322+ yum -y install python3 -celery rabbitmq-server
322323systemctl restart rabbitmq-server
323324semanage port -a -t http_port_t -p tcp 5672
324325C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
@@ -333,8 +334,8 @@ persistent over reboot.
333334Memcached can optionally be run to reduce the load on the server.
334335
335336``` shell
336- apt -y install memcached python -memcache # (debian/ubuntu)
337- yum -y install memcached python -memcached # (centos/rhel)
337+ apt -y install memcached python3 -memcache # (debian/ubuntu)
338+ yum -y install memcached python3 -memcached # (centos/rhel)
338339systemctl restart memcached
339340```
340341
0 commit comments