We are updating our machine and noticed that in the new version of Pritunl, it is consuming much more space. Comparing in the Pritunl server version 1.30.3157.70, the directory /usr/lib/pritunl is 515MB, whereas in the newer version v1.32.3732.84, this same directory is 1.8GB. Is this correct?
pritunl v1.32.3732.84:
[ec2-user@ip-10-0-1-36 lib]$ sudo du -hsx -- /usr/lib/pritunl/* | sort -rh | head -10
753M /usr/lib/pritunl/usr
537M /usr/lib/pritunl/lib64
537M /usr/lib/pritunl/lib
Releases starting with v1.32 are packaged with a Python 3.9 interpreter. This was done to keep Pritunl running on modern version of Python that is required by most of the libraries used.
The systemd service is not restarted after an update to avoid disruption. The certifi and googleapiclient Python libraries load files during runtime. If these files are removed the running process will stop working. These files are copied to all the locations for different versions of Python. The files could be changed to links to lower the size on disk but the package will already compress the duplicate files in the package. The script used to build the package is in the pritunl/pritunl-pacur repository.