Skip to content

Commit cbb36e1

Browse files
authored
Consolidate Linux prerequisites (#5751)
1 parent 49b2d71 commit cbb36e1

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

docs/guides/continuous-integration/introduction.mdx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -309,22 +309,11 @@ shorter ones, following
309309

310310
### Dependencies
311311

312-
If you are not using one of the above CI providers then make sure your system
313-
has these dependencies installed.
312+
Cypress runs on many CI providers' virtual machine environments out-of-the-box without needing additional dependencies installed.
314313

315314
#### Linux
316315

317-
#### Ubuntu/Debian
318-
319-
```shell
320-
apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
321-
```
322-
323-
#### CentOS
324-
325-
```shell
326-
yum install -y xorg-x11-server-Xvfb gtk2-devel gtk3-devel libnotify-devel GConf2 nss libXScrnSaver alsa-lib
327-
```
316+
If you see a message about a missing dependency when you run Cypress in a Linux CI environment, then refer to the [Linux Prerequisites](/guides/getting-started/installing-cypress#Linux-Prerequisites) lists for guidance.
328317

329318
### Caching
330319

docs/guides/getting-started/installing-cypress.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ just need help with troubleshooting, check out our
139139

140140
Please read our
141141
[Continuous Integration](/guides/continuous-integration/introduction) docs for
142-
help installing Cypress in CI. When running in Linux you'll need to install some
143-
[system dependencies](/guides/continuous-integration/introduction#Dependencies)
142+
help installing Cypress in CI. When running in Linux you may need to install some
143+
[system dependencies](#Linux-Prerequisites)
144144
or you can use our [Docker images](/examples/docker) which have everything you
145145
need prebuilt.
146146

@@ -203,7 +203,9 @@ requirements:
203203
### Linux Prerequisites
204204

205205
If you're using Linux, you'll want to have the required dependencies installed
206-
on your system.
206+
on your system. Depending on your system defaults, these dependencies may already be installed.
207+
If not, run the command line for your operating system listed below.
208+
[Cypress Docker images](#Docker), which are Debian-based, already include the necessary dependencies.
207209

208210
#### Ubuntu/Debian
209211

0 commit comments

Comments
 (0)