Prepare Utils
- Download Vmware 15.0
- Download RHEL 8.0 (For the study purpose you may download the development version)
Install Vmware
Install Vmware
Create Virtual Machine
createVM
Install RHEL 8.0
Install RHEL 8.0
First-time Bootup Configuration and Package Management
-
Basic Configuration
basicConf.png
- RHEL 8.0 Package Management
-
RPM
RPM Package Manager (RPM) (originally Red Hat Package Manager, now a recursive acronym) is a free and open-source package management system. The name RPM refers to the .rpm file format and the package manager program itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.
Although it was created for use in Red Hat Linux, RPM is now used in many Linux distributions such as Fedora, CentOS, OpenSUSE, OpenMandriva, and Oracle Linux. It has also been ported to some other operating systems, such as Novell NetWare (as of version 6.5 SP3), IBM's AIX (as of version 4), IBM I, and ArcaOS.
The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager. Though YUM has a command-line interface, several other tools provide graphical user interfaces to YUM functionality. -
YUM
YUM allows for automatic updates and package and dependency management on RPM-based distributions. Like the Advanced Package Tool (APT) from Debian, YUM works with software repositories (collections of packages), which can be accessed locally or over a network connection.
Under the hood, YUM depends on RPM, which is a packaging standard for digital distribution of software, which automatically uses hashes and digisigs to verify the authorship and integrity of said software; unlike some app stores, which serve a similar function, neither YUM nor RPM provide built-in support for proprietary restrictions on copying of packages by end-users. YUM is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface. GUI-based wrappers such as YUM Extender (yumex) also exist.
-
RPM vs YUM
- Yum is a package manager and RPMs are the actual packages.
- With yum you can add or remove the software. The software itself comes within an rpm.
- The package manager allows you to install the software from hosted repositories and it will usually install dependencies as well.
-
RHEL 8 recovers root password
- Boot to the GRUB menu and enter the edit mode. Use your arrows to navigate to the menu item you would normally boot your RHEL 8 Linux system from. Press
e
to start editing the selected menu item.Boot to the GRUB menu and enter the edit mode
- Perform a break at an early stage of the boot process by typing
rd.break
at the end of the line starting withkernel=
. Once ready pressCTRL+X
to start the RHEL 8 boot process.rd.break
- Check write access on the
/sysroot
mount point. By default this mount point is mounted only with the read-only (ro) access.mount | grep sysroot
Check write access on the `/sysroot` mount point
- Remount the
sysroot
directory with read & write access.mount -o remount,rw /sysroot/ mount | grep sysroot
Remount the `sysroot` directory with read & write access
- Enter chroot system
chroot /sysroot
Enter chroot system
- Use the
passwd
command to set a new root password. Please note that when typing a new password the characters you type will not be visible. Simply keep typing.image.png
- Force file-system relabeling
touch /.autorelabel
Force file-system relabeling
- Exit the
chroot
systemexit
logout
- Logout to continue the normal boot\
logout
image.png
-
Wait for the file-system relabeling to complete. Depending on your system speed and number of files this might take some time.
wait and see
Extra Notion: Linux Bootup Progress
bootProgress.png