install_deps.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!/bin/bash
  2. set -ex
  3. # Prefer Debian packages over Ubuntu packages
  4. echo 'APT::Default-Release "bookworm";' >/etc/apt/apt.conf.d/default-release
  5. # The following aspell packages exist in Ubuntu but not Debian:
  6. # aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-st, aspell-tn, aspell-ts, aspell-xh
  7. echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main universe" > /etc/apt/sources.list.d/focal-amd.list
  8. echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main universe" > /etc/apt/sources.list.d/focal-ports-arm.list
  9. apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
  10. # aspell is leaking memory in bookworm, we'll obtain it from trixie
  11. echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list
  12. apt-get update
  13. # aspell is leaking memory in bookworm, we'll obtain it from trixie
  14. apt satisfy -y -t trixie 'aspell (>=0.60.8.1)'
  15. apt-get install -y \
  16. aspell-af \
  17. aspell-ar \
  18. aspell-ar-large \
  19. aspell-bg \
  20. aspell-br \
  21. aspell-ca \
  22. aspell-cs \
  23. aspell-cy \
  24. aspell-da \
  25. aspell-de \
  26. aspell-de-1901 \
  27. aspell-el \
  28. aspell-en \
  29. aspell-eo \
  30. aspell-es \
  31. aspell-et \
  32. aspell-eu-es \
  33. aspell-fa \
  34. aspell-fo \
  35. aspell-fr \
  36. aspell-ga \
  37. aspell-gl-minimos \
  38. aspell-hr \
  39. aspell-hsb \
  40. aspell-id \
  41. aspell-it \
  42. aspell-kk \
  43. aspell-ku \
  44. aspell-lt \
  45. aspell-lv \
  46. aspell-nl \
  47. aspell-no \
  48. aspell-nr \
  49. aspell-ns \
  50. aspell-pa \
  51. aspell-pl \
  52. aspell-pt-br \
  53. aspell-pt-pt \
  54. aspell-ro \
  55. aspell-ru \
  56. aspell-sk \
  57. aspell-sl \
  58. aspell-st \
  59. aspell-sv \
  60. aspell-tl \
  61. aspell-tn \
  62. aspell-ts \
  63. aspell-xh \
  64. rm -rf /var/lib/apt/lists/*