How to manually update an app

Am I doing something wrong :slight_smile: ?
Most likely yes, because otherwise it would have worked :wink:

These are the steps to update/install an app manually:

  1. Navigate to the apps folder in the Nextcloud document root folder, e.g.:
     cd <path-to nextcloud-document-root>/apps
     pwd
    
  2. Delete the old app folder of the app you want to update:
    rm -rf ./<app-to-remove>
    
  3. Extract the new app to the apps directory:
    tar xvzf <app-archive>.tar.gz -C <path-to nextcloud-document-root>/apps
    ls -ald <installed-app-folder>
    
  4. change the app folder ownership and access rights:
    find ./<installed-app-folder> -type d -exec chmod 0750 {} \;
    find ./<installed-app-folder> -type f -exec chmod 0640 {} \;
    chown <web-server-user>: ./<installed-app-folder>
    
  5. Enable the app if not already done:
    sudo <web-server-user> php <path-to nextcloud-document-root>/occ app:enable <updated-app-name>
    
  6. Force an update of the app information in the Nextcloud database:
    sudo <web-server-user> php <path-to nextcloud-document-root>/occ app:update <updated-app-name>
    

Thanks for your reply! I tried it, but it didn’t work.

If this doesn’t work, please describe IN DETAIL all steps you’ve done and provide screenshots of each command result .

2 Likes