1. Register Red Hat Enterprise server for support
To gain tech support and full access to the repositories on Red Hat Network(RHN), you will register your server under your Red Hat account. One Red Hat account can associate with multiple servers, depending on the number of licenses you have.
Your server will need the entitlement/subscription to access the software repositories on RHN. You can subscribe from either purchasing a subscription for RHEL, or Red Hat Developer program and its subscription
Reference: https://developers.redhat.com/articles/getting-red-hat-developer-subscription-what-rhel-users-need-know/
The subscription-manager tool is used to manage the subscription, the common usage includes:
/etc/pki stores your certificates. Here are several directories providing specific info:
2. Specify which repository to use
Sometimes you want to tell your server which repositories to use. Because you want to use non-default software packages, or you are installing Red Hat Enterprise Linux without registering it on RHN.
You need to create a file under /etc/yum.repos.d, ends in .repo. In the file you have:
GPG (GUN Privacy Guard) key is used to guarantee the package integrity. When you download the repository on the Internet, a GPG key is also stored locally in the early stage and checked against when the download is finished. The key is stored in /etc/pki/rpm-gpg
To gain tech support and full access to the repositories on Red Hat Network(RHN), you will register your server under your Red Hat account. One Red Hat account can associate with multiple servers, depending on the number of licenses you have.
Your server will need the entitlement/subscription to access the software repositories on RHN. You can subscribe from either purchasing a subscription for RHEL, or Red Hat Developer program and its subscription
Reference: https://developers.redhat.com/articles/getting-red-hat-developer-subscription-what-rhel-users-need-know/
The subscription-manager tool is used to manage the subscription, the common usage includes:
- Register the server with Red Hat account:
- subscription-manager register
- List available subscription
- subscription-manager list --available
- Attach a subscription to the server
- subscription-manager attach --auto
- This will attach all the subscriptions automatically.
- Check which subscriptions you are using:
- subscription-manager --consumed
- Unregister
- subscription-manager unregister
/etc/pki stores your certificates. Here are several directories providing specific info:
- /etc/pki/product: identify Red Hat products on this system
- /etc/pki/consumer: identify Red Hat account associated with this system
- /etc/pki/entitlement: identify Red Hat subscription attached to this sytem
2. Specify which repository to use
Sometimes you want to tell your server which repositories to use. Because you want to use non-default software packages, or you are installing Red Hat Enterprise Linux without registering it on RHN.
You need to create a file under /etc/yum.repos.d, ends in .repo. In the file you have:
- [lable]
- name=
- baseurl=
- mirrorlist=
- gpgcheck=
- gpgkey=
You can take a look at the default repository on CentOS: /etc/yum.repos.d/CentOS-Base.repo to get a feel of its format.
3. Security
3. Security
GPG (GUN Privacy Guard) key is used to guarantee the package integrity. When you download the repository on the Internet, a GPG key is also stored locally in the early stage and checked against when the download is finished. The key is stored in /etc/pki/rpm-gpg
Comments
Post a Comment