diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3258bf4b1bda66de386d2343249aa1f9f6a33d35..0ce80c6938815dc683a0fdbe59dc8fb49454cadf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,7 +43,7 @@ building_stage:
       - echo "Getting system info ..."
       - cat /etc/os-release
       - echo "Installing dependencies"
-      - yum install -y g++ gfortran make
+      - sudo yum install -y g++ gfortran make
       - cd src
       - echo "Running make"
       - make
@@ -69,7 +69,7 @@ running_stage:
       - echo $CI_COMMIT_SHA
       - echo $CI_COMMIT_BRANCH
       - echo "Updating system"
-      - yum install -y g++ gfortran gdb
+      - sudo yum install -y g++ gfortran gdb
       - cd build/sphere
       - echo "Running np_sphere"
       - chmod +x np_sphere
@@ -99,7 +99,7 @@ testing_stage:
       - echo $CI_COMMIT_SHA
       - echo $CI_COMMIT_BRANCH
       - echo "Updating system"
-      - yum install -y python3
+      - sudo yum install -y python3
       - cd build/sphere
       - export FFILE=../../test_data/sphere/OSPH
       - echo "Comparing output of SPHERE"