Getting Started: Installation


This article is derived from the RStudio Package Manager administration guide.

RStudio Package Manager organizes and centralizes R packages across your team, department, or entire organization.


Please review the necessary system requirements, account privileges, and internet access requirements prior to installing RStudio Package Manager.

System Requirements

  • Red Hat Enterprise Linux/CentOS Linux 7+
  • Red Hat Enterprise Linux/CentOS Linux 8+
  • SUSE Linux Enterprise Server 12 SP5
  • SUSE Linux Enterprise Server 15 SP1/SP2
  • openSUSE Leap 42.3
  • openSUSE Leap 15.1/15.2
  • Ubuntu 16.04 (Xenial Xerus)
  • Ubuntu 18.04 (Bionic Beaver)
  • Ubuntu 20.04 (Focal Fossa)

Within each version of a Linux distribution, we support the latest patch release or "service pack." The RStudio Platform Support page explains the support period for each Linux distribution.

RStudio Package Manager should run on a server with a minimum of 2GB of RAM. Package sources can be lazily cached from CRAN or eagerly downloaded. RStudio Package Manager recommends 50-200GB of disk storage.

Internet Access Requirements

RStudio Package Manager acts as a “bridge” between offline servers running R and upstream package sources like CRAN. RStudio Package Manager should be installed on a server in the network with outbound access to:

See Repository Syncing for more details on what information is downloaded from the RStudio CRAN service.

RStudio Package Manager can be configured to use a HTTP proxy to access the internet, see Outbound Proxy for more details.

Additional steps are necessary if your internal servers can not access an online server through your internal network. See the appendix on running RStudio Package Manager in an air-gapped environment.

Root Requirements

RStudio Package Manager does not run as root. By default, root privileges are required to:

  • Install RStudio Package Manager
  • Start and Stop RStudio Package Manager via the service daemons
  • Activate the RStudio Package Manager license

RStudio Package Manager can be installed and licensed without requiring root privileges. Instructions are available in the appendix of the admin guide.

RunAs User

RStudio Package Manager starts and runs under an unprivileged account. It never requires root.

The installer creates a user account and group named rstudio-pm and runs the RStudio Package Manager service under this account. If you wish to change the account under which the service runs, please see Changing RunAs User.

R Installation

If you plan to use git sources, RStudio Package Manager will require a valid installation of R version 3.0.0 or greater. See R Configuration for more information.


Download and install RStudio Package Manager for your platform. These commands will install the product into /opt/rstudio-pm. See Manual Installation for Minimal Root Use to install into a non-default location or to perform a non-root install.

# for ubuntu 
sudo apt-get install gdebi-core
sudo gdebi 0.7.1-8.deb
# for redhat and centos 
sudo yum install --nogpgcheck rstudio-pm-0.7.1-8.x86_64.rpm
# for suse
wget https://download-url/rstudio-pm-0.7.1-8.x86_64.rpm
sudo zypper --no-gpg-checks install rstudio-pm0.7.1-8.x86_64.rpm

Initial Configuration

RStudio Package Manager settings are controlled by a configuration file located at /etc/rstudio-pm/rstudio-pm.gcfg by default. At a minimum, complete the Address property within the Serversection, by specifying the URL used to access RStudio Package Manager.

; /etc/rstudio-pm/rstudio-pm.gcfg
Address =

Replace with the value appropriate to your organization.

There are many other default options you may want to configure now or at a later point, such as:

  • The on-disk location where data will be stored, default: /var/lib/rstudio-pm
  • The database where essential metadata should be stored, default: built-in SQLite.
  • Important security settings settings such as HTTPS certificates and ports, default: HTTP on port 4242.

For multi-node or highly available (HA) setups, please refer to the REQUIRED config settings listed at High Availability and Load Balancing.


Verify the status of your license using:

/opt/rstudio-pm/license-manager status

If you have a license key, activate the license using

/opt/rstudio-pm/license-manager activate LICENSE_KEY

Replace LICENSE_KEY with the value of your license key. If your server is offline or you need more information, consult Licensing in the admin guide.

Restart RStudio Package Manager

After changing the configuration file or license you must restart the RStudio Package Manager service:

sudo systemctl stop rstudio-pm
sudo systemctl start rstudio-pm

Visit the web UI

You should be able to visit RStudio Package Manager in a web browser. The default port is 4242, so navigate to: RStudio Package Manager should present a welcome page, though no repositories are yet available.

Try out the CLI

You should be able to invoke the admin CLI by running: /opt/rstudio-pm/bin/rspm list. If you are not able to use the CLI, ensure your user is a member of the rstudio-pm group:

  1. Run: sudo usermod -aG rstudio-pm USER, replacing USER with your username. This command will add USER to the rstudio-pm group.
  2. Close the terminal or SSH session and begin a new session.
  3. In the new session, run the command groups to enumerate the groups the current user is a member of. Confirm that rstudio-pm is listed.
  4. Re-run the command: /opt/rstudio-pm/bin/rspm list.

Note, you can elect a different group to grant access to the CLI, see Changing RunAs User.

Next Steps

Now that RStudio Package Manager is installed, you can complete the second part of the setup by configuring RStudio Package Manager for your desired use case. Follow the instructions in Get Started: Configuration.