Red Hat Subscription Management:
--------------------------------
- Red Hat Subscription provides tool that can be used to entitle machine to product subscription.
- Subscription allowing administrators to get updates to software packages and track information about the support contract and subscription used by the system.
- Standard tools such as Package Kit and yum can be obtain software packages and updates through a content distribution network provided by Red Hat.
Register:- This allow subscription manager to uniquely inventory the system.
Subscribe:- Subscription have specific levels of support, expiration dates and defaults repositories.
Enable Repositories:- Enable multiple repositories by default with each subscription.
Review and Track:- Subscription information can be viewed locally on a specific system or for an account, in either Red Hat Customer Portal Subscription page or Subscription Asset Manager (SAM)
System Registration:
--------------------
- There are a number of different ways to register a system with Red Hat Customer Portal.
- There is a graphical interface that you can access with GNOME application or through the web console service and also there is command line.
- Once Registration successfully done, your system is ready to take the updates or install new software from Red Hat.
Note: "GNU Network Object Environment Model is a free & open source desktop environment for Linux & other Unix operating system. It's started from 15 August 1997."
Graphical Mode
- Activities Show All Redhat Subscription Manger
- Activities Type in Search Subscription
Terminal Mode
1) Register a system to Red Hat Account
#subscription-manager register -username=name -password=password
2) View Available Subscription
#subscription-manager list -available | less
3) Auto Attached a Subscription
#subscription-manager attached -auto
4) Alternatively Attached a Subscription From Specific Pool
#subscription-manager attached -pool=poolId
5) View Consumed Subscriptions
#subscription-manager list -consumed
6) Unregister a System
#subscription-manager unregister
Entitlement Certificates:
-------------------------
An entitlement is a subscription that has been attached to a system. Digital certificates are used to store current information about entitlements on the local system.
Note: "Once registerd, entitlement certificates are stored in /etc/pki and its subdirectories."
- /etc/pki/product: Contains certificate indicating which Red Hat products are installed on the System.
- /etc/pki/consumer: Contain certificate identifying the Red Hat account to which the system is registerd.
- /etc/pki/entitlement: Contain certificate indicating which subscription are attached to the system.
Red Hat Package Manager:
------------------------
- RPM (Red Hat Package Manager) is originally developed by Red Hat and most popular package management utility in Linux Platform.
- RPM is distributed under the terms of the GPL (General Public License).
- RPM provides a standard way to package software for distribution
- It allows administrator to track where files installed by the software package and which one need to be removed.
- Package management system take all the various files containing programs and data, documentation and configuration information and place them in one specially formatted file a package file with an extension of ".rpm".
RPM
maintains a database of installed packages, which enables powerful and fast queries. TheRPM
database is inside/var/lib
, and the file is named__db*
.
Package Identification:
-----------------------
vsftpd-3.0.3-28.el8.x86_64.rpm
vsftpd Name
-3.0.3 Version
-28.el8 Release
.x86_64 Architecture
.rpm Extension
RPM Package made up of three component:
---------------------------------------
A) The file installed by the package
B) Information about package (metadata)
- Name
- Version
- Release
- Arch
C) Scripts that may run when package is
- Installed
- Updated
- Removed
RPM(Redhat Package Manager) Mode:
---------------------------------
- Install: It is used for install any rpm package
- Upgrade: It is used to update any existing rpm packages
- Remove: To uninstall any installed rpm package from system
- Verify: Verify the rpm packages
- Query: It is used to find rpm package is installed or not
Note:- "A repository (or repo) is a type of centrally located storage where you can keep all your project's files and resources".
Updates and Patches:
--------------------
- When the upstream source code for a software package is patched by Red Hat, a complete RPM package is generated.
- If a package is newly added to a system only the latest version of that package is needed, not every version of the package since the first release.
- When you update the old version of the package is removed and the new version is installed.
#rpm [option] package_name
YUM Package Manager:
--------------------
- YUM(Yellow dog Updater Modified) is created by Terra Soft, ported to many Linux distributions.
- YUM is used to managed packages like installing,updating,removing and querying.
- The YUM command searches packages and their dependencies so they may be installed together and resolve dependency issues.
- The main configuration file for yum is /etc/yum.conf with additional repository configuration files located in the /etc/yum.repos.d directory.
How we can configure YUM server in RHEL 8
Group installing and Removing:
------------------------------
Yum also has a concept of groups, which are collection of related software together for a particular purpose.
In RHEL 8 have two types of group
- Regular Group: This group are collection of packages
- Environment Group: This group are collection of regular groups
Thanks & Regards
Abhishek Pathak
+91-9621134014
abhishek9621134014@outlook.com
No comments:
Post a Comment