Using YUM or APT to Install the Client on Linux
To install the Cloud Client for Linux, you can use either the native package manager or repositories such as YUM or APT. This topic covers how to install the client onto systems that use YUM or APT.
-
RedHat, CentOS, Amazon systems: Use the "Yellowdog Updater, Modified (yum)" tool to update the rpm-redhat repository. For details, see To Set Up and Configure a RedHat, CentOS, or Amazon Repository.
-
Debian or Ubuntu systems: Use the Advanced Package Tool (APT), apt-get, or Aptitude tools to update the deb repository. For details, see To Set Up and Configure a Debian or Ubuntu Repository.
-
Alpine Linux systems: For details, see To Set Up and Configure an Alpine Linux Repository.
The procedures in this section require that you log in to the Delinea Support Portal and go to the Delinea Repo site. On that page, click the link to generate the repo key. You will then specify the repo key in a yum (RHEL, SUSE, and so forth) or APT (Debian, Ubuntu, and so forth) configuration file. There are some examples on the Delinea repo site about how to add the key to your configuration file.
For additional details about configuring and using SUSE or yum repositories, see the documentation for the distribution of Linux you are using. For additional details about configuring and using APT repositories, see the documentation for the distribution of Debian Linux or Ubuntu you are using.
WARNING: If you specify your repository on the command line, be sure to clean out your command history afterwards. Because the URL for your repository includes the credentials to access it, leaving this information around in command history is not a secure practice.
To Set Up and Configure a RedHat, CentOS, or Amazon Repository
-
Create a /etc/yum.repos.d/centrify-rpm-redhat.repo configuration file to use the official Delinea package repository, and download a RPM-GPG-KEY-centrify key from the Delinea Support Portal.
You can manually create the configuration file or you can use a setup script to generate the file automatically.
For the baseurl parameter, enter your Delinea repo URL token in place of <URLtoken>.
- To create the repository configuration file manually
# Source: CENTRIFY
# Repository: CENTRIFY / rpm-redhat
# Description: YUM repository for RedHat packages (RPMs)
[centrify-rpm-redhat]
name=centrify-rpm-redhat
baseurl=https://cloudrepo.centrify.com/<URLtoken>/rpm-redhat/rpm/any-distro/any-version/$basearch
repo_gpgcheck=1
enabled=1
gpgkey=https://downloads.centrify.com/products/RPM-GPG-KEY-centrify
gpgcheck=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
pkg_gpgcheck=1
autorefresh=1
type=rpm-md
- To create the repository configuration file automatically from a script
curl -1sLf 'https://cloudrepo.centrify.com/<URLtoken>/rpm-redhat/cfg/setup/bash.rpm.sh' | sudo -E bash
You should see output that lists out your repository details, such as the following example:
# Source: CENTRIFY
# Repository: CENTRIFY / rpm-redhat
# Description: YUM repository for RedHat packages (RPMs)
[centrify-rpm-redhat]
name=centrify-rpm-redhat
baseurl=https://cloudrepo.centrify.com/<URLtoken>/rpm-redhat/rpm/el/6/$basearch
repo_gpgcheck=1
enabled=1
gpgkey=https://cloudrepo.centrify.com/<URLtoken>/rpm-redhat/cfg/gpg/gpg.BDD3FD95B65ECA48.key
gpgcheck=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
pkg_gpgcheck=1
autorefresh=1
type=rpm-md
The gpgkey listed in the output is a public key.
- Execute the yum info command to verify the repository connection. You should see output similar to the following.
# yum info centrifycc
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
2020-11-25 14:36:39,826 [INFO] yum:4208:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-11-25 14:36:39,827 [INFO] yum:4208:MainThread @repolib.py:464 - repos updated: Repo updates
Total repo updates: 0
Updated
<NONE>
Added (new)
<NONE>
Deleted
<NONE>
This system is not registered with an entitlement server. You can use subscription-manager to register.
Available Packages
Name : CentrifyCC
Arch : x86_64
Version : 20.6
Release : 121
Size : 32 M
Repo : centrify-rpm-redhat-test/x86_64
Summary : Cloud Client for Linux
URL : http://www.centrify.com/
License : BSD with portions copyright (c) <span class="mc-variable global-vars.CompanyName variable">Delinea</span> Corporation 2004-2022 and licensed under <span class="mc-variable global-vars.CompanyName variable">Delinea</span> End User License Agreement
Description : RPM to install Cloud Client for Linux on X86_64 platform.
-
Install the Cloud Client rpm package.
yum install CentrifyCC
To uninstall the Cloud Client rpm file, you can use the erase command. For example:
yum erase CentrifyCC
To Set Up and Configure a Debian or Ubuntu Repository
-
Create the repository:
You can manually create the repository or you can use a setup script to create the repository automatically.
-
To create the Debian or Ubuntu repository configuration file manually
-
Update the /etc/apt/sources.list file to include the official Delinea package repository.
Copydeb https://cloudrepo.centrify.com/<URLtoken>/deb/deb/debian any-version main /etc/apt/sources.list.d/centrify-deb.list
-
Import your GPG key and update the repository.
Copy# bash -c 'wget -O - https://downloads.centrify.com/products/RPM-GPG-KEY-centrify | apt-key add -'
-
Comment out the no-debsig line in /etc/dpkg/dpkg.cfg to enable GPG signature validation.
Copy# grep no-debsig /etc/dpkg/dpkg.cfg
# no-debsig -
Clean and update the local archives.
Copy# apt-get clean
# apt-get update
-
-
To create the Debian or Ubuntu repository configuration file automatically from a script
Copycurl -1sLf 'https://cloudrepo.centrify.com/<URLtoken>/deb/cfg/setup/bash.deb.sh' | sudo -E bash
Enter your Delinea repository URL token in place of <URLtoken>.
If you manually created your APT repository, the configuration details are in the /etc/apt/sources.list file. If you used the setup script to create the APT repository, the configuration details are in a separate file such as centrify-deb.list in the /etc/apt/sources.list.d directory.
-
-
Execute the apt list command to verify the repository connection. You should see output similar to the following.
Copy# apt list --all-versions | grep centrify
centrifyda/buster 3.7.0-172 amd64
centrifyda/buster 3.6.1-324 amd64
centrifydc-adbindproxy/buster 5.7.0-217 amd64
centrifydc-adbindproxy/buster 5.6.1-334 amd64
centrifydc-cifsidmap/buster 5.7.0-207 amd64
centrifydc-cifsidmap/buster 5.6.1-330 amd64
centrifydc-curl/buster 5.7.0-207 amd64
centrifydc-curl/buster 5.6.1-330 amd64
centrifydc-ldapproxy/buster 5.7.0-207 amd64
centrifydc-ldapproxy/buster 5.6.1-330 amd64
centrifydc-nis/buster 5.7.0-207 amd64
centrifydc-nis/buster 5.6.1-330 amd64
centrifydc-openldap/buster 5.7.0-207 amd64
centrifydc-openldap/buster 5.6.1-330 amd64
centrifydc-openssh/buster 8.2p1-5.7.0.207 amd64
centrifydc-openssh/buster 7.9p1-5.6.1.329 amd64
centrifydc-openssl/buster 5.7.0-207 amd64
centrifydc-openssl/buster 5.6.1-330 amd64
centrifydc/buster 5.7.0-207 amd64
centrifydc/buster 5.6.1-330 amd64 -
Execute the apt install or apt-get install commands to install Delinea packages. For example:
apt-get install CentrifyCC
To uninstall the Cloud Client rpm, you can use the remove command to delete the Cloud Client package or the purge command to also delete any configuration files. For example:
\# apt remove centrifycc=20.6-121
To Set Up and Configure an Alpine Linux Repository
-
To configure the repository automatically, run the following commands:
Copysudo apk add --no-cache bash
curl -1sLf \ 'https://cloudrepo.centrify.com/<URLtoken>/apk/setup.alpine.sh' \ | sudo -E bashEnter your Delinea repository URL token in place of <URLtoken>.
-
Or, if you want to manually configure the repository, run the following commands:
Copycurl -1sLf 'https://cloudrepo.centrify.com/<URLtoken>/apk/rsa.5DD8742729E6E4B2.key' > /etc/apk/keys/apk@centrify-5DD8742729E6E4B2.rsa.pub
curl -1sLf 'https://cloudrepo.centrify.com/<URLtoken>/apk/config.alpine.txt?distro=alpine&codename=v3.13' >> /etc/apk/repositories
apk updateWhen configuring the repository manually, you reference the Delinea public RSA key:
apk@centrify-5DD8742729E6E4B2.rsa.pub
. -
Execute the apk add command to install the Delinea packages. For example:
# apk add centrifycc
To uninstall the Cloud Client for Linux rpm, you can use the del command to delete the Cloud Client for Linux package. For example:
\# apk del centrifycc=5.8.0-xxx