Читать книгу Mastering Linux System Administration - Richard Blum - Страница 110

Real World Scenario MANUALLY INSTALLING RPM PACKAGES

Оглавление

The zsh package is an alternative shell that you can find in the standard CentOS repository. Follow these steps to manually install it:

1 Log into your CentOS server, either as the root user account or as a user account with root privileges.

2 Download the zsh package from the CentOS repository. You can do this either by using the command yumdownloader zsh or by manually downloading the package from mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages / and copying the file to your CentOS server. At the time of this writing, the current zsh package is zsh‐5.5.1‐6.el8_1.2.x86_64.rpm.

3 Install the zsh package by entering the command rpm ‐Uvh zsh‐5.5.1‐6.el8_1.2.x86_64.rpm. You should see output similar to this:# rpm -Uvh zsh-5.5.1-6.el8_1.2.x86_64.rpm Verifying… ################################# [100%] Preparing… ################################# [100%] Updating / installing… 1:zsh-5.5.1-6.el8_1.2 ################################# [100%] #

4 Verify the installation by entering the command zsh. You should then get the Z shell prompt and not an error message.

5 Return to your normal Bash Shell by typing the command exit.

6 Check whether the installation processed properly by typing the command dnflist installed zsh. You should see the package appear, indicating that it is installed.

Even though you installed the zsh package using the rpm command‐line tool, it appears when you use the dnf command to list the installed packages. This shows that both commands install packages to the same package management database.

Mastering Linux System Administration

Подняться наверх