Linux Mint

How to Install Onedrive on Linux Mint 21

OneDrive is the cloud storage app hosted by Microsoft, launched in August 2007. It helps to store user’s data on cloud. It has broad access compatibility; you can create files on one device and access them from other devices. OneDrive comes up with robust security that no one can undervalue. This article is guide on how to install Microsoft OneDrive on Linux Mint 21:

Installing OneDrive on Linux Mint 21

To install OneDrive on Linux Mint 21; there are a few steps listed below to run:

Step 1: Add the mentioned OpenSuSE repository key that is necessary before installing OneDrive:

$ wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null

Step 2: Now, we need to download OpenSuSE Build Service OneDrive repository with the help of mentioned command:

$ echo “deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/ ./| sudo tee /etc/apt/sources.list.d/onedrive.list

Step 3: In the next move, you are required to run the update command to refresh apt repositories:

$ sudo apt update

Step 4: After this, run the given command to install OneDrive:

$ sudo apt install onedrive

You have successfully installed OneDrive on Linux Mint 21.

To verify the version, type:

$ onedrive --version

To sync OneDrive, type “onedrive” in the terminal and you will get a link that needs to be opened. Right-click on it and hit the Copy Link” option from the context menu:

$ onedrive

Step 5: Open the browser and paste the copied link into web search bar, enter credentials to login and copy the generated link:

This link needs to be pasted on the terminal where you are asked for “Enter the response uri”, once you paste it, your OneDrive application will be ready to use:

Now, run the help command to display OneDrive functionalities in terminal:

$ onedrive --help

How to Uninstall OneDrive from Linux Mint 21

To delete OneDrive application from the Linux Mint 21 system, execute the mentioned command:

$ sudo apt remove onedrive

Conclusion

OneDrive is cloud storage that allows the user to save personal or shareable data like files, photos, and other types of documents. Data is secured on OneDrive even after the user has lost a device. This article has mentioned a detailed tutorial on how to install OneDrive on Linux Mint 21. Although OneDrive is present in the base repository of Linux Mint 21 it doesn’t contain an updated version. In this guide, we have seen how to install the OneDrive application on Linux Mint 21.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.