Upgrade FileCloud on Linux
Beginning in FileCloud 22.1, Linux installation and upgrades are moving to a new repository system.
The OS’s we currently support are:
Ubuntu 18.04 LTS (FileCloud EOL 23.1)
Ubuntu 20.04 LTS
CentOS 7.x
RHEL 7.x
RHEL 8.x
Note: FileCloud no longer supports Debian Installation and upgrade; we recommend installing in Ubuntu 20.04 LTS or migrating the existing installation to Ubuntu 20.04 LTS.
These instructions are intended for users who have not yet upgraded to FileCloud Version 22.1, and want to upgrade to FileCloud Version 22.1.1.
If you have already upgraded to FileCloud Version 22.1, and want to upgrade from Version 22.1 to Version 22.1.1, do not follow these instructions. Instead, follow the instructions on page Upgrade FileCloud on Linux from Version 22.1 to Version 22.1.1.
Upgrade instructions for each operating system
Upgrade for Ubuntu 20.04 LTS
Remove old repositories.
add-apt-repository --remove ppa:ondrej/php -y add-apt-repository --remove ppa:ondrej/apache2 -y rm -rf /etc/apt/sources.list.d/ondrej-ubuntu-php* rm -rf /etc/apt/sources.list.d/ondrej-ubuntu-apache2* rm -rf /etc/apt/sources.list.d/mongodb-org-* rm -rf /etc/apt/sources.list.d/nodesource* apt-get update -y
Run the mongodb compatibility command.
mongo --quiet --eval "db.adminCommand( { setFeatureCompatibilityVersion: '4.2' } )"
Make a backup copy of the mongodb config file.
cp -rvf /etc/mongod.conf /etc/mongod.conf_old
Add the FileCloud repository.
wget -qO - https://repo.filecloudlabs.com/static/pgp/filecloud.asc | sudo apt-key add - wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list apt-get update -y
Remove the old version of mongodb and the pre-existing install of php 8.1.
service mongod stop apt-get remove mongodb* -y apt-get remove php8.1* -y
Add the FileCloud repository file
echo "deb [ arch=amd64 ] https://repo.filecloudlabs.com/apt/ubuntu focal/filecloud/22.1 main" | sudo tee /etc/apt/sources.list.d/filecloud.list apt-get update -y apt-get install mongodb-org -y cp -rvf /etc/mongod.conf_old /etc/mongod.conf service mongod start apt-get install -y --no-install-recommends php8.1* ACCEPT_EULA=Y apt-get upgrade -y filecloud apt-get purge php7.4-* php7.2-* php7.1-* php7.0-* -y apt-get autoremove -y rm -rvf /etc/php/7.4 rm -rvf /etc/php/7.3 rm -rvf /etc/php/7.2 rm -rvf /etc/php/7.1 rm -rvf /etc/php/7.0 rm -rvf /etc/php/5.6
Upgrade for Ubuntu 18.04 LTS
Remove old repositories.
add-apt-repository --remove ppa:ondrej/php -y add-apt-repository --remove ppa:ondrej/apache2 -y rm -rf /etc/apt/sources.list.d/ondrej-ubuntu-php* rm -rf /etc/apt/sources.list.d/ondrej-ubuntu-apache2* rm -rf /etc/apt/sources.list.d/mongodb-org-* rm -rf /etc/apt/sources.list.d/nodesource* apt-get update -y
Run the mongodb compatibility command.
mongo --quiet --eval "db.adminCommand( { setFeatureCompatibilityVersion: '4.2' } )"
Make a backup copy of the mongodb config file.
cp -rvf /etc/mongod.conf /etc/mongod.conf_old
Remove the old version of mongodb and the pre-existing install of php 8.1.
service mongod stop apt-get remove mongodb* -y apt-get remove php8.1* -y
Add the FileCloud repository.
wget -qO - https://repo.filecloudlabs.com/static/pgp/filecloud.asc | sudo apt-key add - wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list apt-get update -y
Add the FileCloud repository file
apt-get install mongodb-org -y cp -rvf /etc/mongod.conf_old /etc/mongod.conf service mongod start echo "deb [ arch=amd64 ] https://repo.filecloudlabs.com/apt/ubuntu bionic/filecloud/22.1 main" | sudo tee /etc/apt/sources.list.d/filecloud.list apt-get update -y apt install --no-install-recommends php8.1* -y ACCEPT_EULA=Y apt-get upgrade -y filecloud apt-get purge php7.4-* php7.2-* php7.1-* php7.0-* -y apt-get autoremove -y rm -rvf /etc/php/7.4 rm -rvf /etc/php/7.3 rm -rvf /etc/php/7.2 rm -rvf /etc/php/7.1 rm -rvf /etc/php/7.0 rm -rvf /etc/php/5.6
Upgrade for CentOS 7/RHEL 7
Remove old repositories.
yum remove remi-release -y yum remove nodesource-release -y rm -rf /etc/yum.repos.d/remi* rm -rf /etc/yum.repos.d/mongodb-org-4.2.repo rm -rf /etc/yum.repos.d/nodesource-el7.repo
Run mongodb compatibility command.
mongo --quiet --eval "db.adminCommand( { setFeatureCompatibilityVersion: '4.2' } )"
Make a backup copy of the mongodb config file.
service mongod stop cp -rvf /etc/mongod.conf /etc/mongod.conf_old
Remove the previous version of mongodb.
yum remove mongodb-org* -y
Add the mongodb repository and install mongodb 4.4.
cat <<EOF > /etc/yum.repos.d/mongodb-org-4.4.repo [mongodb-org-4.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc EOF yum install mongodb-org -y cp -rvf /etc/mongod.conf_old /etc/mongod.conf service mongod start
Add FileCloud repository.
cat <<EOF > /etc/yum.repos.d/filecloud-22.1.repo [filecloud-22.1] name=FileCloud 22.1 Repository baseurl=https://repo.filecloudlabs.com/yum/redhat/\$releasever/filecloud/22.1/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://repo.filecloudlabs.com/static/pgp/filecloud.asc EOF yum-config-manager --enable filecloud-22.1 rpm -e --nodeps php-devel yum update -y --exclude=filecloud ACCEPT_EULA=Y yum upgrade filecloud -y
Upgrade for RHEL 8
Remove old repositories.
yum remove remi-release -y rm -rf /etc/yum.repos.d/remi* rm -rf /etc/yum.repos.d/mongodb-org-4.2.repo rm -rf /etc/yum.repos.d/nodesource-el8.repo
Run mongodb compatibility command.
mongo --quiet --eval "db.adminCommand( { setFeatureCompatibilityVersion: '4.2' } )"
Make a backup copy of the mongodb config file.
service mongod stop cp -rvf /etc/mongod.conf /etc/mongod.conf_old
Remove the previous version of mongodb.
yum remove mongodb-org* -y
Add the mongodb repository and install mongodb 4.4.
cat <<EOF > /etc/yum.repos.d/mongodb-org-4.4.repo [mongodb-org-4.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc EOF yum install mongodb-org -y cp -rvf /etc/mongod.conf_old /etc/mongod.conf service mongod start
Add FileCloud repository.
cat <<EOF > /etc/yum.repos.d/filecloud-22.1.repo [filecloud-22.1] name=FileCloud 22.1 Repository baseurl=https://repo.filecloudlabs.com/yum/redhat/\$releasever/filecloud/22.1/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://repo.filecloudlabs.com/static/pgp/filecloud.asc module_hotfixes=true EOF yum install yum-utils -y yum-config-manager --enable filecloud-22.1 rpm -e --nodeps php-devel yum update -y --exclude=filecloud ACCEPT_EULA=Y yum upgrade filecloud -y