Upgrade ownCloud from manual install to repository
I started out with a manual installation on version 4.5.4. It was located in a /home/ folder rather than the /var/www/ directory, which gave me opportunity to think some more. So, let’s begin.
Go to the folder your ownCloud installation is in and tar it, in case anything goes wrong.
sudo tar -cjvf owncloud.tar.bz2 owncloud/ Since it’s now owned by root because of the sudo, make it yours now.
sudo chown orangensaft:orangensaft owncloud.tar.bz2 Subscribe to the new ownCloud server repository.
sudo vim /etc/apt/sources.list Add this line at the bottom:
deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_6.0/ / Then add the key, update your repositories and install owncloud.