diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index ea9ef545b1a1806c07901a5ea23854cac56c467e..704ebc11db8763835db1e0b42a35d79239ff5195 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,7 +14,7 @@ jobs:
     steps:
       - name: Install dependencies
         run: |
-          yum clean packages
+          dnf --refresh update
           yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel yum-utils rpm-build
           ln -s /usr/bin/python3 /usr/bin/python
       - uses: actions/checkout@v3
@@ -66,7 +66,7 @@ jobs:
           printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
           bash cmake_build_options;
           echo "Calling CPACK"
-          cpack -G RPM   centos
+          cpack -G RPM centos
           if [ $? -ne 0 ]; then
             echo "Error creating package"
             exit 1
@@ -121,6 +121,7 @@ jobs:
           ln -s ./README.md README.txt
           cd build
           export DEP_PACKING=$HOME/openfpm_dependencies/${{ github.ref }}
+          ls $DEP_PACKING
           printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
           tail cmake_build_options
           bash cmake_build_options;
diff --git a/script/install_PETSC.sh b/script/install_PETSC.sh
index 35be00e4bf0e191d6f697cf9f882151cbfc335de..7a8e52bd807656c33eca67ecd8e36b45e4fca272 100755
--- a/script/install_PETSC.sh
+++ b/script/install_PETSC.sh
@@ -9,8 +9,7 @@ FC=$6
 
 if [ -d "$1/PETSC" -a -f "$1/PETSC/include/petsc.h" ]; then
   echo "PETSC is already installed"
-  echo "BUT WE ARE REINSTALLING FOR CI"
-  #exit 0
+  exit 0
 fi
 
 # Detect gcc pr clang