This topic describes how to install ossfs 2.0 on Linux.
Procedure
Alibaba Cloud Linux
Run the command that corresponds to your system architecture to download the installation package.
For x86_64 architecture:
sudo wget https://gosspublic.alicdn.com/ossfs/ossfs2_2.0.4_linux_x86_64.rpmFor aarch64 architecture:
sudo wget https://gosspublic.alicdn.com/ossfs/ossfs2_2.0.4_linux_aarch64.rpm
Run the command that corresponds to your system architecture to install ossfs 2.0.
x86_64:
sudo yum install ossfs2_2.0.4_linux_x86_64.rpm -yaarch64:
sudo yum install ossfs2_2.0.4_linux_aarch64.rpm -y
Run the following command to verify that ossfs 2.0 is installed.
ossfs2 --versionThe following output is returned:
Version ID: 2.0.4 Commit ID: e6c73293ca0c79f492f85525d01d4db04f0ef9a2 Build Time: 2025-10-27.01:44:58.UTCNoteThe ossfs2 executable is installed at
/usr/local/bin/ossfs2. If yourPATHenvironment variable is customized, you can access the program by using its absolute path/usr/local/bin/ossfs2.
CentOS
Run the following command to download the installation package:
sudo wget https://gosspublic.alicdn.com/ossfs/ossfs2_2.0.4_linux_x86_64.rpmRun the following command to install ossfs 2.0:
sudo yum install ossfs2_2.0.4_linux_x86_64.rpm -yRun the following command to verify that ossfs 2.0 is installed:
ossfs2 --versionThe following output is returned:
Version ID: 2.0.4 Commit ID: e6c73293ca0c79f492f85525d01d4db04f0ef9a2 Build Time: 2025-10-27.01:44:58.UTCNoteThe ossfs2 executable is installed at
/usr/local/bin/ossfs2. If yourPATHenvironment variable is customized, you can access the program by using its absolute path/usr/local/bin/ossfs2.
Ubuntu
Run the following command to download the installation package:
sudo wget https://gosspublic.alicdn.com/ossfs/ossfs2_2.0.4_linux_x86_64.debRun the following command to install ossfs 2.0:
sudo dpkg -i ossfs2_2.0.4_linux_x86_64.debRun the following command to verify that ossfs 2.0 is installed:
ossfs2 --versionThe following output is returned:
Version ID: 2.0.4 Commit ID: e6c73293ca0c79f492f85525d01d4db04f0ef9a2 Build Time: 2025-10-27.01:44:58.UTCNoteThe ossfs2 executable is installed at
/usr/local/bin/ossfs2. If yourPATHenvironment variable is customized, you can access the program by using its absolute path/usr/local/bin/ossfs2.
What to do next
After you install ossfs 2.0, configure the OSS bucket that you want to mount and the access credentials required to access it. For more information, see Configure ossfs 2.0.