Options for the mirrormgr mirror Command

The following table lists some options for the mirrormgr mirror command.

For more information, you can request --help for any command. For example, you can submit mirrormgr mirror --help to read about more flags that could be useful.

mirrormgr mirror Command options

Option

Description

--cacert "location"

The CA certificate for communicating with the upstream repository server. The default is "$HOME/.config/mirrormgr/ca.pem".

--cert "location"

The location of the certificate for authenticating with the upstream repository server. The default is "$HOME/.config/mirrormgr/cert.pem".

--deployment-data "location"

The deployment data archive location.

-h, --help

Help for the mirror.

--httpdebug

Enables debugging of HTTP requests to the log file.

--latest

Mirrors only the latest versions of content.

--no-verify

Skips the verification steps during the download.

-p, --path "location"

The path to which repositories are downloaded. The default is "$HOME/sas_repos".

--platform string

Filters repositories to mirror by platform.

Here are the string values that can be used for the --platform option for Linux:

  • x64-redhat-linux-6 for all supported versions of Red Hat Enterprise Linux and its equivalent such as Oracle Linux.
  • x64-suse-linux-12 for all supported versions of SUSE Linux.
  • x64-ubuntu-linux-14 for all supported versions of Ubuntu Linux.

You can run the following command to list platform information:

./mirrormgr list remote platforms --deployment-data 
   path-to-location-of-deployment-zip-file-from-SOE/SAS_Viya_deployment_data.zip

--remove-old

If set with --latest, it removes any older packages from the local mirror.

-r, --repo strings

The list of repositories to mirror. If not specified, all repositories are mirrored.

Note: --type is required if --repo is used.

You can run the following command to list respository information:

./mirrormgr list remote repos --deployment-data 
   path-to-location-of-deployment-zip-file-from-SOE/SAS_Viya_deployment_data.zip

-t, --type string

Mirrors repositories of this type (yum or APT)

Note: --type is required if --repo is used.

--url "url"

The base URL of upstream repositories. The default is "https://ses.sas.download/ses".

--workers int

The number of download threads to use. The default value is 8.

The following options are inherited from the parent command.

mirrormgr mirror Command options

Option

Description

--config "location"

The configuration file location. The default is "$HOME/.config/mirrormgr/mirrormgr.yaml".

-d, --debug

Enables debug level logging.

--log-file "location"

The log file location. The default is "$HOME/.local/share/mirrormgr/mirrormgr.log".

Note: SAS recommends that you store the logs in the same location as the mirror repository.

Last updated: December 16, 2025