6. Online vs. Offline
In this section, you will learn:
- the pros and cons of running Package Manager “online” vs. “offline”
- what are the networking requirements for running Package Manager “online”
- how to run Package Manager in an “offline” environment
Online
The simplest way to configure Package Manager is to allow outbound access (directly or via a proxy) to the Posit Package Service at https://rspm-sync.posit.com
which will provide your Package Manager instance with the latest updates to packages. There are no other requirements for external access. In this configuration, Package Manager regularly syncs with Posit Package Service to get updates on package metadata, but packages are not actually installed on the server until a user requests it.
Offline
Package Manager can also be configured in offline “Air-Gapped environments”. In this offline configuration, packages will be downloaded from the Posit Package Service using the offline downloader and then transferred to the Package Manager server. Because packages cannot be lazily installed in this configuration, there is a higher storage requirement for servers in offline mode.