This package is positively enormous at present (approaching 2GB), and it doesn’t need to be.
Steps that should be taken:
-
On the
yarn install
invocation, add--production
per the official instructions. This saves a lot of download and installation time and 1GB of package size. That still leaves it at around 600MB, which is in my opinion atrociously large, but is what upstream gives you. -
Add
options=('!strip')
, because there are no binaries for it to strip but it takes ages going through all the zillions of files. (Sure, there are less after the previous step, but still a lot, and it takes a lot of time.)
There are other major opportunities for space savings which I’ve written up at https://github.com/Chocobozzz/PeerTube/issues/2807.
For the next release, I also believe you should be able to use the .tar.xz source instead of .zip, which halves the source download (saving 50MB). I’m guessing this wasn’t done in the past because the 2.1.1 .tar.xz looks too small to be realistic, so is something missing? Well, the 2.2.0-rc.1 release .tar.xz looks a realistic size relative to the zip file.
Pinned Comments
daftaupe commented on 2025-06-11 11:52 (UTC)
7.2.0 is out, check the release notes. Biggest point is to run a migration script :
cd /usr/share/webapps/peertube && sudo -u peertube NODE_CONFIG_DIR=/etc/peertube NODE_ENV=production node dist/scripts/migrations/peertube-7.2.js
daftaupe commented on 2025-03-18 19:49 (UTC)
7.1.0 is out, check the release notes. One important note is : "Due to a bug in the remote video thumbnail update, we recommend running the prune storage script to clean up the filesystem".
rigelk commented on 2020-06-18 13:32 (UTC)
Please note that the package now verifies the release signature against the lead developer's key, which you can find here: https://keybase.io/chocobozzz