@@ -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,8 @@ 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 -t buster-backports -y install python3-django
32+ apt -y install python3-patchman patchman-client
3233patchman-manage createsuperuser
3334```
3435
@@ -54,8 +55,8 @@ patchman-manage createsuperuser
5455TBD - not working yet
5556
5657``` 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)
58+ apt -y install gcc libxml2-dev libxslt1-dev virtualenv python3 -dev zlib1g-dev # (debian/ubuntu)
59+ yum -y install gcc libxml2-devel libxslt-devel python3 -virtualenv # (centos/rhel)
5960mkdir /srv/patchman
6061cd /srv/patchman
6162virtualenv .
@@ -74,17 +75,18 @@ gunicorn patchman.wsgi -b 0.0.0.0:80
74751 . Install dependencies
7576
7677``` 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
78+ apt -y install -t buster-backports python3-django
79+ apt -y install python3-django-tagging python3-django-extensions
80+ python3-djangorestframework python3-defusedxml python3-lxml \
81+ python3-requests python3-rpm python3-debian \
82+ python3-colorama python3-humanize python3-magic \
83+ apache2 libapache2-mod-wsgi
8284```
8385
84862 . Install django-bootstrap3
8587
8688``` shell
87- pip install django-bootstrap3
89+ pip3 install django-bootstrap3
8890```
8991
90923 . Clone git repo to e.g. /srv/patchman
@@ -152,7 +154,7 @@ To configure the mysql database backend:
1521541 . Ensure mysql-server and the python mysql bindings are installed:
153155
154156``` shell
155- apt -y install default-mysql-server python -mysqldb python-pymysql
157+ apt -y install default-mysql-server python3 -mysqldb
156158```
157159
1581602 . Create database and users:
@@ -193,7 +195,7 @@ To configure the postgresql database backend:
1931951 . Ensure the postgresql server and the python postgres bindings are installed:
194196
195197``` shell
196- apt -y install postgresql python -psycopg2
198+ apt -y install postgresql python3 -psycopg2
197199```
198200
1992012 . Create database and users:
@@ -311,14 +313,14 @@ Install Celery for realtime processing of reports from clients:
311313#### Ubuntu / Debian
312314
313315``` shell
314- apt -y install python -celery python-celery-common rabbitmq-server
316+ apt -y install python3 -celery rabbitmq-server
315317C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
316318```
317319
318320#### CentOS / RHEL
319321
320322``` shell
321- yum -y install python -celery rabbitmq-server
323+ yum -y install python3 -celery rabbitmq-server
322324systemctl restart rabbitmq-server
323325semanage port -a -t http_port_t -p tcp 5672
324326C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
@@ -333,8 +335,8 @@ persistent over reboot.
333335Memcached can optionally be run to reduce the load on the server.
334336
335337``` shell
336- apt -y install memcached python -memcache # (debian/ubuntu)
337- yum -y install memcached python -memcached # (centos/rhel)
338+ apt -y install memcached python3 -memcache # (debian/ubuntu)
339+ yum -y install memcached python3 -memcached # (centos/rhel)
338340systemctl restart memcached
339341```
340342
0 commit comments