Skip to content

Commit abcbd68

Browse files
enhancement: add a version check between repo install and install command (#830)
1 parent da341f4 commit abcbd68

File tree

1 file changed

+49
-2
lines changed
  • crowdsec-docs/unversioned/getting_started/installation

1 file changed

+49
-2
lines changed

crowdsec-docs/unversioned/getting_started/installation/linux.mdx

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ If you prefer to manually add the repository, you can do so by following the ins
123123

124124
### Install Security Engine
125125

126-
Once the repository is added, you can install the Security Engine via:
126+
#### Check Install Candidate
127+
128+
Before installing the Security Engine, make sure the version you are about to install is the latest from our official repositories. In some cases, other package sources on your system may have a higher priority and override our repository.
127129

128130
<Tabs
129131
defaultValue="debian"
@@ -137,7 +139,7 @@ Once the repository is added, you can install the Security Engine via:
137139
{label: 'CloudLinux', value: 'cloudlinux'},
138140
]}>
139141
<TabItem value="debian">
140-
<CodeBlock className="language-bash">apt install crowdsec</CodeBlock>
142+
<CodeBlock className="language-bash">apt list crowdsec</CodeBlock>
141143
:::warning
142144
If you are using ESM/Pro Ubuntu you will need to alter the package weights to get the latest version see below
143145
:::
@@ -204,6 +206,51 @@ Once the repository is added, you can install the Security Engine via:
204206
</details>
205207
</TabItem>
206208

209+
<TabItem value="centos7">
210+
<CodeBlock className="language-bash">yum list crowdsec</CodeBlock>
211+
</TabItem>
212+
213+
<TabItem value="centos8">
214+
<CodeBlock className="language-bash">dnf list crowdsec</CodeBlock>
215+
</TabItem>
216+
217+
<TabItem value="suselinux">
218+
<CodeBlock className="language-bash">zypper info crowdsec</CodeBlock>
219+
</TabItem>
220+
221+
<TabItem value="openwrt">
222+
<CodeBlock className="language-bash">opkg list | grep crowdsec</CodeBlock>
223+
</TabItem>
224+
225+
<TabItem value="cloudlinux">
226+
<CodeBlock className="language-bash">yum list crowdsec</CodeBlock>
227+
</TabItem>
228+
</Tabs>
229+
230+
231+
:::warning
232+
Ensure the above command outputs you are installing a version higher than **1.4.6** otherwise you are installing an old and outdated version.
233+
:::
234+
235+
#### Install Command
236+
237+
Once the repository is added and you have checked the install candidate, you can install the Security Engine via:
238+
239+
<Tabs
240+
defaultValue="debian"
241+
groupId="operating-systems"
242+
values={[
243+
{label: 'Debian/Ubuntu', value: 'debian'},
244+
{label: 'EL/Centos7/Amzn Linux 2', value: 'centos7'},
245+
{label: 'EL/Centos Stream 8', value: 'centos8'},
246+
{label: 'SUSE Linux', value: 'suselinux'},
247+
{label: 'OpenWRT', value: 'openwrt'},
248+
{label: 'CloudLinux', value: 'cloudlinux'},
249+
]}>
250+
<TabItem value="debian">
251+
<CodeBlock className="language-bash">apt install crowdsec</CodeBlock>
252+
</TabItem>
253+
207254
<TabItem value="centos7">
208255
<CodeBlock className="language-bash">yum install crowdsec</CodeBlock>
209256
</TabItem>

0 commit comments

Comments
 (0)