How to Install Microsoft OneDrive On Pop!_OS

Microsoft OneDrive is a cloud storage service by which you can save any file (movies, pics, documents, etc.) online and access anytime. Microsoft OneDrive is not pre-installed in Linux operating systems and there is no official app either.

Over the years, many OneDrive clients have been released for Linux but most have been abandoned. The OneDrive client project for Linux is still in development but do not worry because there are a few ways to install it. So, in this tutorial, we will explain some simple ways to install Microsoft OneDrive on Pop!_OS.

How to Install Microsoft OneDrive On Pop!_OS

Here, we will install the OneDrive client on Pop!_OS through the Ubuntu repository and OpenSuSE build service repository.

Using Ubuntu Repository

First, update all existing features:

sudo apt update

The next step is to add a PPA repository using the following command:

sudo add-apt-repository ppa:yann1ck/onedrive

Install the OneDrive package by running the command below:

sudo apt install onedrive -y

You can install the OneDrive client in just a few steps with this method, although this method is outdated.

Using OpenSuSE Build Service Repository

The OneDrive client works with most distros. So, first, ensure your system is entirely up-to-date:

sudo apt-get update

The OpenSuSE Build Service repository is required to install the OneDrive client on any distribution of Linux. To add its release key to Pop!_OS, run the following command:

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

After adding the release key, add the repository through the below 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

Now, you can install the OneDrive client. But before that, update the system once again:

sudo apt-get update

Finally, install the Microsoft OneDrive for Pop!_OS:

sudo apt install --no-install-recommends --no-install-suggests onedrive

This is how you can install a OneDrive client in your Linux.

By default, Linux has Microsoft OneDrive as a command-line tool that includes various commands. You can understand these commands and their actions through the help option:

onedrive --help

Run the Microsoft OneDrive in Pop!_OS

To run OneDrive, enter the following command in the terminal:


You get a prompt to authorize the application so paste the above link in the web browser. It will show the page like this and proceed by logging into your Microsoft account.

The next page requires permission to access your information. Proceed by clicking on ‘Yes.’

By clicking on it, another page of your browser will open. Put the URL of this page in the terminal.

Afterward, press the Enter button to complete the authorization process.

Run the below command to sync it with Pop!_OS.

onedrive --synchronize

Pop!_OS will continue to sync with your OneDrive account as long as there is enough storage space in the target destination.


OneDrive is only available for macOS and Windows. However, you can use a well-developed OneDrive Linux client to use it on your Linux machine. In this tutorial, we explained the approaches to installing Microsoft OneDrive on Pop!_OS with the help of PPA and OpenSuSE Build Service repository.

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.