Debian Codegraph @

doc/source/install/ubuntu.md

raw symbols SCIP
1 # Ubuntu
2
3 This section describes how to install Groonga related deb packages on
4 Ubuntu. You can install them by `apt`.
5
6 We distribute both 32-bit and 64-bit packages but we strongly
7 recommend a 64-bit package for server. You should use a 32-bit package
8 just only for tests or development. You will encounter an out of
9 memory error with a 32-bit package even if you just process medium
10 size data.
11
12 ## Register Groonga APT repository
13
14 ### Groonga APT Repository (packages.groonga.org)
15
16 Groonga packages are distributed via our Groonga APT repository at
17 https://packages.groonga.org.
18
19 Install `groonga-apt-source` to enable Groonga APT repository.
20
21 ```bash
22 sudo apt update
23 sudo apt install -y -V ca-certificates lsb-release wget
24 wget https://packages.groonga.org/ubuntu/groonga-apt-source-latest-$(lsb_release --codename --short).deb
25 sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb
26 sudo apt update
27 ```
28
29 ### Deprecated Groonga PPA (Personal Package Archive)
30
31 ```{note}
32 The Grppmga PPA (Personal Package Archive, ppa:groonga/ppa) is deprecated. We
33 strongly recommend using our Groonga APT repository (packages.groonga.org)
34 because packages from that repository are built with Apache Arrow enabled. This
35 configuration unlocks extra features, such as parallel offline index building.
36 If you are currently using the Groonga PPA, please see
37 {ref}`migrate-from-ppa-to-apt-repository`.
38 ```
39
40 ## `groonga` package
41
42 Install:
43
44 ```bash
45 sudo apt -V -y install groonga
46 ```
47
48 ```{include} server-use.md
49
50 ```
51
52 ## `groonga-tokenizer-mecab` package
53
54 If you want to use [MeCab](https://taku910.github.io/mecab/) as a
55 tokenizer, install `groonga-tokenizer-mecab` package.
56
57 Install `groonga-tokenizer-mecab` package:
58
59 ```bash
60 sudo apt -V -y install groonga-tokenizer-mecab
61 ```
62
63 ## `groonga-token-filter-stem` package
64
65 If you want to use `TokenFilterStem` as a token filter, install
66 `groonga-token-filter-stem` package.
67
68 Install groonga-token-filter-stem package:
69
70 ```bash
71 sudo apt -V -y install groonga-token-filter-stem
72 ```
73
74 ## `groonga-munin-plugins` package
75
76 There is a package that provides [Munin](http://munin-monitoring.org/)
77 plugins. If you want to monitor Groonga status by Munin, install
78 `groonga-munin-plugins` package.
79
80 Install `groonga-munin-plugins` package:
81
82 ```bash
83 sudo apt -V -y install groonga-munin-plugins
84 ```
85
86 ## `groonga-normalizer-mysql` package
87
88 There is a package that provides MySQL compatible normalizer as a
89 Groonga plugin. If you want to use that one, install
90 `groonga-normalizer-mysql` package.
91
92 Install `groonga-normalizer-mysql` package:
93
94 ```bash
95 sudo apt -V -y install groonga-normalizer-mysql
96 ```
97
98 ## Build from source
99
100 Build from source is for developers.
101
102 See {doc}`/install/cmake` .
103
104 (migrate-from-ppa-to-apt-repository)=
105
106 ## Migration from Groonga PPA (ppa:groonga/ppa) to Groonga APT Repository (packages.groonga.org)
107
108 This section guides you through the migration from the deprecated Groonga PPA
109 (Personal Package Archive, ppa:groonga/ppa) to our new Groonga APT Repository
110 (packages.groonga.org).
111
112 By switching to the Groonga APT Repository, you'll receive packages built with
113 Apache Arrow enabled. Which unlocks extra features such as parallel offline
114 index building. We strongly recommend you to migrate to enjoy these enhancements.
115
116 If you are currently using the Groonga PPA, please follow the
117 steps below to switch to the new package source.
118
119 ### Configure the Groonga APT Repository
120
121 #### Register Groonga APT Repository
122
123 To register the Groonga APT Repository, install the `groonga-apt-source` package
124 as follows.
125
126 ```bash
127 sudo apt update
128 sudo apt install -y -V groonga-apt-source
129 sudo apt update
130 ```
131
132 #### Remove the Existing Package Source
133
134 Remove the old Groonga PPA:
135
136 ```bash
137 sudo add-apt-repository -y --remove ppa:groonga/ppa
138 ```
139
140 After these steps, your package source is now switched from Groonga PPA to
141 Groonga APT Repository.
142
143 ### Upgrade Package
144
145 There are two approaches depending on your needs.
146
147 #### Option 1: Use Groonga APT Repository from the Next Release (Recommended)
148
149 Starting with the next package version, we strongly recommend using the Groonga
150 APT Repository. When you upgrade Groonga via `apt`, you will automatically receive
151 the next package version without having to specify a version explicitly as
152 follows. This option is simpler and is recommended for most users:
153
154 ```bash
155 sudo apt upgrade
156 ```
157
158 #### Option 2: Use Groonga APT Repository Immediately Without Waiting for Next Release
159
160 If you wish to upgrade immediately without waiting for the next official release,
161 you can force an upgrade to a specific package version in the Groonga APT
162 Repository. In this case, you must upgrade the package by specifying the version.
163 This is important because even if the version numbers match, the package's
164 naming conventions between the Groonga PPA and the Groonga APT Repository differ,
165 and the Groonga PPA package takes precedence.
166
167 ```bash
168 sudo apt upgrade package-name=version
169 ```
170
171 ```{note}
172 If the package has dependencies, you also need to upgrade dependent packages by
173 specifying the version.
174 ```
175
176 For example, upgrade a specific version of `groonga-bin` package:
177
178 ```bash
179 version=$(dpkg-query -W -f='${Version}' libgroonga0 | sed 's/\.ubuntu.*$//') && \
180 sudo apt upgrade -y -V --allow-downgrades \
181 libgroonga0=$version \
182 groonga-bin=$version
183 ```
184
185 This command forces the upgrade to a specific package version from the new
186 repository. In this case, it's Groonga APT Repository.