OneDrive is a cloud service to save any type of file on cloud that can be accessed from anywhere. OneDrive allows you to save any form of material, including movies, photos, and documents, and get them from any system, like Windows PC and mobiles etc. It provides the free space storage of 15 GB to users and also has Packages for more storage.

One Drive can also be installed on Linux; in this article installation of OneDrive will be discussed. Follow the steps of particular method for easy and successful installation of OneDrive on your Linux OS(Ubuntu):

Method1: How to Install OneDrive Through Terminal of Ubuntu

Step 1: Open Ubuntu terminal and update all existing packages:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-1.png" data-lazy- height="482" src="data:image/svg xml,” width=”734″>

Step 2: To add PPA repository run the command mentioned below:

$ sudo add-apt-repository ppa:yann1ck/onedrive

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-2.png" data-lazy- height="479" src="data:image/svg xml,” width=”738″>

Step 3: Run the below mentioned command to extract the OneDrive Package you have downloaded in the above step:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-3.png" data-lazy- height="482" src="data:image/svg xml,” width=”737″>

Step 4: Now run Microsoft OneDrive Application in Ubuntu terminal by executing the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-4.png" data-lazy- height="482" src="data:image/svg xml,” width=”738″>

You will get a link, open it by right clicking:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-5.png" data-lazy- height="482" src="data:image/svg xml,” width=”740″>

A Microsoft sign in page will appear, enter credentials. After login a blank web page will appear, copy the browser link of the blank page which is opened after you sign in your account and paste that link in front of “Enter the response uri:”.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-6.png" data-lazy- height="482" src="data:image/svg xml,” width=”734″>

Step 5: So, you have now successfully synced your Microsoft OneDrive with Ubuntu. Now run the below mentioned command to see help from OneDrive client regarding its functionalities:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-7.png" data-lazy- height="486" src="data:image/svg xml,” width=”739″>

How to Uninstall of Microsoft OneDrive from Ubuntu

To remove the OneDrive package which is installed by above technique run the below mentioned command:

$ sudo apt remove onedrive

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-8.png" data-lazy- height="481" src="data:image/svg xml,” width=”737″>

How to Remove OneDrive Repository from Ubuntu

Run the below mentioned command to delete the repository used at time of installation of OneDrive:

$ sudo add-apt-repository –remove ppa:yann1ck/onedrive

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-9.png" data-lazy- height="483" src="data:image/svg xml,” width=”737″>

Method 2: How to Use OneDrive Using Insync on Ubuntu

Second way to use Microsoft OneDrive is through Insync. Insync is a fantastic program that syncs your Linux system with your OneDrive and other cloud storages. It works with a variety of Linux distributions as well as conventional operating systems.

But this amazing app is paid and has a 15 days free trial, if you want to use it after a 15 days trial you have to purchase it.

To sync OneDrive with Insync follow the procedure mention below:

Step 1: First you have to download the “Insync” deb Package from its website. Visit Insync and download it according to your Ubuntu version:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-10.png" data-lazy- height="663" src="data:image/svg xml,” width=”1361″>

After clicking on Download, downloading will start:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-11.png" data-lazy- height="266" src="data:image/svg xml,” width=”1162″>

Step 2: Package will be downloaded in “Downloads” folder, open Downloads folder and double click on downloaded package, the installer window will appear, simply click on Install button:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-12.png" data-lazy- height="662" src="data:image/svg xml,” width=”1004″>

Step 3: Once the Package is installed search “Insync” from Activities window:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-13.png" data-lazy- height="596" src="data:image/svg xml,” width=”1362″>

Step 4: Now you have to click on the “Add OneDrive” option displayed on the Insync window:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-14.png" data-lazy- height="613" src="data:image/svg xml,” width=”800″>

Step 5: Now a webpage for OneDrive credentials will appear, fill in your credentials and give access to the “Insync” app by clicking on the “Yes” button:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-15.png" data-lazy- height="644" src="data:image/svg xml,” width=”1072″>

Step 6: Now it is totally setup, you can now manage your files and directories with OneDrive in Ubuntu:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-16.png" data-lazy- height="638" src="data:image/svg xml,” width=”803″>

How to Remove Insync from Ubuntu

Run the below mention command in your Ubuntu terminal to uninstall Microsoft OneDrive from system:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/How-to-Install-Microsoft-OneDrive-on-Ubuntu-17.png" data-lazy- height="482" src="data:image/svg xml,” width=”742″>

Conclusion

OneDrive is a cloud storage medium used to handle your files and other data on cloud. OneDrive does not have official support for Linux; it is only available for Macs and Windows but can be used on Ubuntu (Linux OS) just as other applications and services.

In this write-up we discussed the installation and usage of Microsoft OneDrive on Ubuntu (Linux OS) by two methods, through terminal (Command-Line) of Ubuntu and through the Insync app. We have also discussed its uninstallation in both methods.

About the author

<img alt="" data-lazy-src="https://secure.gravatar.com/avatar/7c99efcc024949e17b176845c757687e?s=112&r=g" data-lazy- height="112" src="data:image/svg xml,” width=”112″>

Alishba Iftikhar

I am currently an undergraduate student in my 1st year. I am an internee author with Linuxhint and loved learning the art of technical content writing from senior authors. I am looking forward to opting my career as a full time Linux writer after I graduate.