This chapter introduces the installation, uninstallation, configuration, and maintenance of Linux system software, as well as how to build enterprise local YUM CD-ROM source and HTTP local source.

1 RPM Package management

Linux package management can be roughly divided into binary packages, source packages, and the tools used are also different. Common Linux software packages are divided into two types: Source Code and Binary Code. Source Code packages are uncompiled and need to be compiled by GCC and C++ compiler environment to run. Binary packages can be installed and used directly without compilation.

Generally speaking, you can distinguish the source package from the binary package by suffixes. For example, a package ending in. Tar. gz,. Zip, and. Rar is called the source package, and a package ending in. RPM is called the binary package. The real distinction between source code and binary is based on the files in the code to judge, such as.h,.c,.cpp,.cc and other end of the source file, called the source package, and the code in the bin directory can be executed files, called the binary package.

CentOS has a default software management tool, Red Hat Package Manager (RPM).

You can use the RPM tool to quickly install, manage, and maintain software packages. The RPM management tool is applicable to CentOS, RedHat, Fedora, and SUSE operating systems. The RPM tool is used to manage software packages ending in the RPM suffix.

RPM software package command rules are described as follows:

RPM name-version-noarch. RPM name-version-arch.src. RPM The format of the RPM package is as follows: RPM perl-pod-plainer-1.03-1.el6.noarch. RPM perl-pod-plainer-1.03-1.el6.noarch. RPM yASM-1.2.0-4.el7.x86_64.  name Software name, such as yasm and perl-pod-plainer.  version Version, 1.2.0 Common format: Major version. Revision number "; 4 indicates the release version number and the number of times the RPM package is compiled.  ARCH applies to hardware platforms. RPM supports i386, I586, I686, X86_64, Sparc, alpha, etc. . RPM indicates the compiled binary package. You can run the RPM command to install the package directly. . Src. RPM Source code package. The source code is compiled and generated.  el* Software package release version. El6 indicates that the software package applies to RHEL 6.x or CentOS 6.x.  devel: Development kit;  Noarch: Packages can be installed on any platform.Copy the code

The RPM command is described as follows:

RPM PACKAGE_NAME -a, --all Queries all installed software packages. -q, --query Queries the user and outputs information. -l, --list Prints the list of software packages. -f, --file file Queries the software package containing file. -i, --info Displays information about the software package, including the name, version, and description. -v, --verbose Displays detailed information. -u, --upgrade Upgrade RPM package; -h,-- Hash software installation, can print the installation progress bar; --last Lists packages in order of installation time, with the most recent at the top; -e, --erase Uninstalling the RPM package --force Forcibly installing or uninstalling the RPM package. --nodeps RPM package does not depend on -l, --list lists the files in the package; --provides Lists the features provided by the package. -r, --requires Lists other packages that the package depends on; Scripts lists applets that are customized by the software package.Copy the code

RPM enterprise case demonstration:

Check whether the sysstat package is installed. [root@superman-vm01 ~]# RPM -q sysstat package sysstat is not installed [root@superman-vm01 ~]# [root@superman-vm01 ~]# RPM -ivh sysstat-10.1.5-17.el7.x86_64. RPM Preparing... ################################# [100%] Updating / installing... 1: sysstat 10.1.5-17. El7 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [100%] [root @ seen superman - vm01 ~] # # to check the software installation path; [root@superman-vm01 ~]# rpm -ql sysstat /etc/cron.d/sysstat /etc/sysconfig/sysstat /etc/sysconfig/sysstat.ioconf /usr/bin/cifsiostat /usr/bin/iostat /usr/bin/mpstat /usr/bin/nfsiostat-sysstat /usr/bin/pidstat /usr/bin/sadf /usr/bin/sar /usr/bin/tapestat .......... Check the version information of the software installed. [root@superman-vm01 ~]# RPM -qi sysstat Name: sysstat Version: 10.1.5 Release: 17.el7 Architecture: x86_64 Install Date: Sat 10 Jul 2021 06:46:49 AM CST Group : Applications/System Size : 1172947 License : GPLv2+ Signature : RSA/SHA256, Mon 12 Nov 2018 10:47:27 PM CST, Key ID 24c6a8a7f4a80eb5 Source RPM : Build Date: Wed 31 Oct 2018 04:04:26 AM CST Build Host: sysstat-10.1.5-17.el7.src. RPM Build Date: Wed 31 Oct 2018 04:04:26 AM CST Build Host: x86-01.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://sebastien.godard.pagesperso-orange.fr/ Summary : Collection of performance monitoring tools for Linux Description : The sysstat package contains sar, sadf, mpstat, iostat, pidstat, nfsiostat-sysstat, tapestat, cifsiostat and sa tools for Linux. .......... Uninstall sysstat; [root @ seen superman - vm01 ~] # RPM - qa | grep sysstat sysstat 10.1.5-17. El7. X86_64 / root @ seen superman - vm01 ~ # [root @ seen superman - vm01 RPM -e sysstat-10.1.5-17.el7.x86_64 [root@superman-vm01 ~]# [root@superman-vm01 ~]# RPM -uvh sysstat-10.1.5-17.el7.x86_64. RPM Preparing... ################################# [100%] Updating / installing... 1: sysstat 10.1.5-17. El7 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [100%] [root @ seen superman - vm01 ~] # # check whether sysstat related package installation; [root @ seen superman - vm01 ~] # RPM - qa | grep sysstat sysstat 10.1.5-17. El7. X86_64 / root @ seen superman - vm01 ~ # # mandatory uninstall sysstat; [root@superman-vm01 ~]# RPM -e --nodeps sysstat [root@superman-vm01 ~]# [root@superman-vm01 ~]# RPM -ivh --nodeps sysstat-10.1.5-17.el7.x86_64. RPM Preparing... ################################# [100%] Updating / installing... 1: sysstat 10.1.5-17. El7 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [100%] [root @ seen superman - vm01 ~] #Copy the code

2 Tar Software Package management

In Linux, you can use the RPM management tool to manage software packages, as well as tar, ZIP, and JAR tools to manage source packages.

2.1 Description of parameters of the Tar command

-a, --catenate, --concatenate Merges an archive with an existing archive -c, --create creates A new archive -d, --diff, --compare Compares the differences between the archive and the current file --delete deletes from the archive -r, --append to end of archive -t, --list lists directories of files in the archive -u, --update appends only newer files to the archive -x, --extract, --get unzip the file -j, --bzip2, Bunzip2 bundles with bZ2 properties; -z, --gzip, --ungzip Software package with gz attribute; -b, --block-size N Specifies the block size to be Nx512 bytes (N=20 by default). -b, --read-full-blocks; -c, --directory DIR Specifies a new directory. --checkpoint displays the directory name when the archive is read. -f, --file [HOSTNAME:] f Specifies the archive or device, followed by the file name; --force-local Enforces the local archive, even if a clone exists; -g, --incremental to build backup in old GNU format; -g, -- tick-incremental builds backups in new GNU format; -h, --dereference Dumps the file pointed to by the dynamic link without dumping the dynamic link. -i, --ignore-zeros ignores a 0 byte block in the archive (usually indicating the end of the file); --ignore-failed-read Marks unreadable files with 0 before exiting; -k, --keep-old-files Saves existing files; Do not overwrite when expanding from the archive; -k, --starting-file F start from archive file F; -l, --one-file-system Creates an archive in the local file system. -l, --tape-length N Pauses after N*1024 bytes are written and waits for the disk to be replaced. -m, --modification-time Does not use new time tags when restoring files from a file; -m, --multi-volume Creates a multi-volume archive for storage on several disks; -o, --to-stdout expands the file to standard output; -p, --absolute-paths Do not remove '/' from file names; -v, --verbose displays the file to be processed in detail; --version Displays the version number of the tar program. --exclude FILE Exclude specified files; -x, --exclude-from FILE Reads a list of unwanted files from the specified FILE.Copy the code
2.2.1 TAR Command Actual Deployment
Keepalived-2.2.2.tar. gz; [root@superman-vm01 ~]# tar-tf keepalived-2.2.2.tar.gz keepalived-2.2.2/ keepalived-2.2.2/tools/ Keepalived - 2.2.2 / tools/timed_reload keepalived - 2.2.2 / Makefile. In keepalived - 2.2.2 / build - aux / Keepalived - 2.2.2 / build - aux/install - sh keepalived - 2.2.2 / build - aux/missing keepalived - 2.2.2 / build - aux/compile Keepalived - 2.2.2 / build - aux/depcomp keepalived 2.2.2 / build - aux/ar - lib keepalived - 2.2.2 / bin_install / Keepalived - 2.2.2 / bin_install/Makefile. In keepalived - 2.2.2 / bin_install/Makefile. Am keepalived - 2.2.2 / keepalived. Spec. In . Unzip keepalived-2.2.2.tar.gz package; [root@superman-vm01 ~]# tar-xvf keepalived-2.2.2.tar.gz keepalived-2.2.2/ keepalived-2.2.2/tools/ Keepalived - 2.2.2 / tools/timed_reload keepalived - 2.2.2 / Makefile. In keepalived - 2.2.2 / build - aux / Keepalived - 2.2.2 / build - aux/install - sh keepalived - 2.2.2 / build - aux/missing keepalived - 2.2.2 / build - aux/compile Keepalived - 2.2.2 / build - aux/depcomp keepalived 2.2.2 / build - aux/ar - lib keepalived - 2.2.2 / bin_install / Keepalived - 2.2.2 / bin_install/Makefile. In keepalived - 2.2.2 / bin_install/Makefile. Am keepalived - 2.2.2 / keepalived. Spec. In Keepalived - 2.2.2 / snap/keepalived 2.2.2 / snap/snapcraft yaml keepalived - 2.2.2 / snap hooks / Keepalived - 2.2.2 / snap hooks/post - refresh keepalived 2.2.2 / snap hooks/install keepalived 2.2.2 / install Keepalived -2.2.2/doc/ Keepalived -2.2.2/doc/ keepalived-2.2.2/ man/ keepalived-2.2.2/doc/man/man8/........  # package keepalived file or directory as keepalive-2.2.2.tar; [root@superman-vm01 ~]# tar - CVF keepAlived-2.2.2. tar keepalived-2.2.2 keepalived-2.2.2/ keepalived-2.2.2/tools/ Keepalived - 2.2.2 / tools/timed_reload keepalived - 2.2.2 / Makefile. In keepalived - 2.2.2 / build - aux / Keepalived - 2.2.2 / build - aux/install - sh keepalived - 2.2.2 / build - aux/missing keepalived - 2.2.2 / build - aux/compile Keepalived - 2.2.2 / build - aux/depcomp keepalived 2.2.2 / build - aux/ar - lib keepalived - 2.2.2 / bin_install / Keepalived - 2.2.2 / bin_install/Makefile. In keepalived - 2.2.2 / bin_install/Makefile. Am keepalived - 2.2.2 / keepalived. Spec. In Keepalived - 2.2.2 / snap/keepalived 2.2.2 / snap/snapcraft yaml keepalived - 2.2.2 / snap hooks / Keepalived - 2.2.2 / snap hooks/post - refresh keepalived 2.2.2 / snap hooks/install keepalived 2.2.2 / install Keepalived -2.2.2/doc/ Keepalived -2.2.2/doc/ keepalived-2.2.2/ man/ keepalived-2.2.2/doc/man/man8/........  # append a.txt to keepalived-2.2.2.tar; [root@superman-vm01 ~]# tar -rf keepalived-2.2.2.tar abc.txt [root@superman-vm01 ~]# [root@superman-vm01 ~]# tar tf Keepalived - 2.2.2. Tar | grep ABC. TXT ABC. TXT/root @ seen superman - vm01 ~ # # using gzip format compressed and packaged keepalived - 2.2.2 directory; [root@superman-vm01 ~]# tar-czvf keepalived-2.2.2.tar.gz keepalived-2.2.2 Keepalived-2.2.2 / keepalived-2.2.2/tools/ Keepalived - 2.2.2 / tools/timed_reload keepalived - 2.2.2 / Makefile. In keepalived - 2.2.2 / build - aux / Keepalived - 2.2.2 / build - aux/install - sh keepalived - 2.2.2 / build - aux/missing keepalived - 2.2.2 / build - aux/compile Keepalived - 2.2.2 / build - aux/depcomp keepalived 2.2.2 / build - aux/ar - lib keepalived - 2.2.2 / bin_install / Keepalived - 2.2.2 / bin_install/Makefile. In keepalived - 2.2.2 / bin_install/Makefile. Am keepalived - 2.2.2 / keepalived. Spec. In Keepalived - 2.2.2 / snap/keepalived 2.2.2 / snap/snapcraft yaml keepalived - 2.2.2 / snap hooks / Keepalived - 2.2.2 / snap hooks/post - refresh keepalived 2.2.2 / snap hooks/install... Package and compress the superman directory in bzip2 format [root@superman-vm01 ~]# tar -cjvf keepalived-2.2.2.tar.bz2 Keepalived-2.2.2 Keepalived-2.2.2 / keepalived-2.2.2/tools/ Keepalived - 2.2.2 / tools/timed_reload keepalived - 2.2.2 / Makefile. In keepalived - 2.2.2 / build - aux / Keepalived - 2.2.2 / build - aux/install - sh keepalived - 2.2.2 / build - aux/missing keepalived - 2.2.2 / build - aux/compile Keepalived - 2.2.2 / build - aux/depcomp keepalived 2.2.2 / build - aux/ar - lib keepalived - 2.2.2 / bin_install / Keepalived - 2.2.2 / bin_install/Makefile. In keepalived - 2.2.2 / bin_install/Makefile. Am keepalived - 2.2.2 / keepalived. Spec. In Keepalived - 2.2.2 / snap/keepalived 2.2.2 / snap/snapcraft yaml keepalived - 2.2.2 / snap hooks / Keepalived - 2.2.2 / snap hooks/post - refresh keepalived 2.2.2 / snap hooks/install... Package and compress all files in the current directory in gzip format, excluding files recorded in abc.txt; [root@superman-vm01 ceshi]# ls abc.txt keepalived-2.2.2 [root@superman-vm01 ceshi]# [root@superman-vm01 ceshi]# tar-czf Keepalived-2.2.2.tar.gz * -x abc.txt [root@superman-vm01 ceshi]# [root@superman-vm01 ceshi]# tar tf Keepalived - 2.2.2. Tar. Gz | grep ABC. TXT ABC. TXT [root @ seen superman - vm01 ceshi] # # using gzip format package and all files and directories in the current directory, eliminate ABC. TXT. [root@superman-vm01 ceshi]# ls abc.txt keepalived-2.2.2 [root@superman-vm01 ceshi]# [root@superman-vm01 ceshi]# tar-czf Keepalived-2.2.2.tar. gz * --exclude=abc.txt [root@superman-vm01 ceshi]# [root@superman-vm01 ceshi]# tar tf Keepalived - 2.2.2. Tar. Gz | grep ABC. TXT [root @ seen superman - vm01 ceshi] #Copy the code

3 Installing the source code package

The RPM tool is usually used to manage binary. RPM packages, while the standard. Zip and tar source code packages cannot be installed, uninstalled, and upgraded by the RPM tool.

./configure precompile, which is mainly used to check whether the system base environment library meets the requirements and generate MakeFile files.  make Compiles source code based on the makefile generated in the first step.  make install After compiling, install the relevant runnable files to the system. To compile with make, the Linux operating system must have a GCC compiler to compile the source code.Copy the code

Source package installation usually requires three steps:./configure, make, and make install. Some special source code can have only one or two of the three steps.

3.1 source code installation combat

CentOS 7 Linux OS as a baseline, install Nginx source package on it, enterprise source code installation details are as follows:

1, the nginx.org website to download nginx - 1.19.9. Tar. Gz packages/root @ seen superman - vm01 ~ # wget HTTP: / / http://nginx.org/download/nginx-1.19.9.tar.gz - the 2021-07-10 07:43:34 - http://nginx.org/download/nginx-1.19.9.tar.gz Resolving nginx.org (nginx.org)... 52.58.199.22, 3.125.197.172, 2 a05: d014: edb: 5702: : 6,... Connecting to nginx.org (nginx.org) | 52.58.199.22 | : 80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. --2021-07-10 07:43:35-- (try: 2) http://nginx.org/download/nginx-1.19.9.tar.gz Connecting to nginx.org (nginx.org) | 52.58.199.22 | : 80... connected. HTTP request sent, awaiting response... 200 OK Length: 887908 (867K) [application/octet-stream] Saving to: 'nginx - 1.19.9. Tar. Gz' 57% [= = = = = = = = = = = = = = = = = = = = = >] - 507913. 16 m 50 s - K/s in the 2021-07-10 08:00:26 (503 B/s) - Read error at byte 507913/887908 (Connection timed out). Retrying. --2021-07-10 08:00:28-- (try: 3) http://nginx.org/download/nginx-1.19.9.tar.gz Connecting to nginx.org (nginx.org) | 52.58.199.22 | : 80... connected. HTTP request sent, awaiting response... 206 Partial Content Length: 887908 (867K), 379995 (371K) remaining [application/octet-stream] Saving to: 'nginx - 1.19.9. Tar. Gz' 100% [+ + + + + + + + + + + + + + + + + + + + + + = = = = = = = = = = = = = = = = >] 887908 6.46 KB/s 52 in the 2021-07-10 s 08:01:20 (7.11) KB/s) - 'nginx-1.19.9.tar.gz' saved [887908/887908] [root@superman-vm01 ~]# 2, nginx source package unzip [root@superman-vm01 ~]# tar -xvf nginx-1.19.9.tar.gz nginx-1.19.9/ nginx-1.19.9/auto/ nginx-1.19.9/conf/ nginx-1.19.9/ SRC / Configure nginx-1.19.9/LICENSE nginx-1.19.9/README nginx-1.19.9/ HTML/nginx-1.19.9/man/. Configure nginx-1.19.9/LICENSE nginx-1.19.9/README nginx-1.19.9/ HTML/nginx-1.19.9/man/ Nginx - 1.19.9 / CHANGES. Ru nginx - 1.19.9 / CHANGES nginx - 1.19.9 / man/nginx. 8 nginx - 1.19.9 / HTML / 50 x. HTML Nginx 1.19.9 / HTML/index. The HTML nginx 1.19.9 / SRC/core /... 3, source Configure precompile, need to go to the decompressed directory to execute./ Configure command, semicolon ";" Indicates to connect multiple commands. [root @ seen superman - vm01 ~] # CD nginx 1.19.9 /; /configure checking for OS + Linux 3.10.0-957.el7.x86_64 X86_64 checking for C compiler... / Configure checking for OS + Linux 3.10.0-957.el7.x86_64 Checking for Gcc-PIPE Switch Found + using GNU C Compiler + GCC version: 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) Checking for Gcc-PIPE Switch... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for unistd.h ... found checking for inttypes.h ... found checking for limits.h ... found checking for sys/filio.h ... not found checking for sys/param.h ... found checking for sys/mount.h ... found checking for sys/statvfs.h ... found checking for crypt.h ... found checking for Linux specific features checking for epoll ... found checking for EPOLLRDHUP ... found ........... [root@superman-vm01 nginx-1.19.9]# make install make -f objs/Makefile install make[1]: If the directory ` / root/nginx - 1.19.9 'test - d'/usr/local/nginx '| | mkdir -p'/usr/local/nginx 'test - d '/usr/local/nginx/sbin' || mkdir -p '/usr/local/nginx/sbin' test ! -f '/usr/local/nginx/sbin/nginx' || mv '/usr/local/nginx/sbin/nginx' '/usr/local/nginx/sbin/nginx.old' cp objs/nginx '/usr/local/nginx/sbin/nginx' test -d '/usr/local/nginx/conf' || mkdir -p '/usr/local/nginx/conf' cp conf/koi-win '/usr/local/nginx/conf' cp conf/koi-utf '/usr/local/nginx/conf' cp conf/win-utf '/usr/local/nginx/conf' test -f '/usr/local/nginx/conf/mime.types' || cp conf/mime.types '/usr/local/nginx/conf' cp conf/mime.types '/usr/local/nginx/conf/mime.types.default' test -f '/usr/local/nginx/conf/fastcgi_params' || cp conf/fastcgi_params '/usr/local/nginx/conf' cp conf/fastcgi_params '/usr/local/nginx/conf/fastcgi_params.default' test -f '/usr/local/nginx/conf/fastcgi.conf' || cp conf/fastcgi.conf '/usr/local/nginx/conf' cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default' test -f '/usr/local/nginx/conf/uwsgi_params' || cp conf/uwsgi_params '/usr/local/nginx/conf' cp conf/uwsgi_params '/usr/local/nginx/conf/uwsgi_params.default' test -f '/usr/local/nginx/conf/scgi_params' || cp conf/scgi_params '/usr/local/nginx/conf' cp conf/scgi_params '/usr/local/nginx/conf/scgi_params.default' test -f '/usr/local/nginx/conf/nginx.conf' || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf' cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default' test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/logs' test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/logs' test -d '/usr/local/nginx/html' || cp -R html '/usr/local/nginx' test -d '/usr/local/nginx/logs' | | mkdir -p '/ usr/local/nginx/logs' make [1] : brigade directory ` / root/nginx - 1.19.9' [root @ seen superman - vm01 nginx - 1.19.9] #Copy the code

Through the above five steps, the source package software installation is successful, source package compilation and installation, may encounter various errors, you need to solve the errors, and then proceed to the next installation, the following chapters will focus on the enterprise software case drills.

4 YUM Software Package Management

The front-end software package manager (Yellow Updater Modified, YUM) is applicable to Shell command lines in CentOS, Fedora, RedHat, and SUSE. It is mainly used to manage RPM packages, similar to the use of the RPM tool. The YUM tool automatically downloads and installs RPM packages from specified servers, and also handles dependencies automatically.

When you use the RPM tool to manage and install software, you may find dependencies on RPM packages and need to manually download and install them one by one. The biggest convenience of the YUM tool is that it automatically installs all dependent packages, which improves efficiency and saves time.

4.1 How YUM works

Learning YUM, you must understand the working principle of YUM. The normal operation of YUM depends on two parts: one is the source side of YUM, and the other is the client side of YUM, which is also the user side.

All RPM packages installed by the YUM client are from the YUM server, which is distributed by the HTTP or FTP server. The YUM client can download the dependent RPM package from the YUM source side because the benchmark information of the RPM package is generated on the YUM source side, including the RPM package version number, configuration file, binary information, and dependencies.

Repo file ends with. Repo in /etc/yom.repos. D. CentOS Linux default. Repo file name centos-base-repo. Therefore, every time an RPM package is installed or upgraded, the YUM client looks for the. Repo file.

If the CentOS official REPo source is configured for the YUM client, the client operating system must be able to connect to the Internet and meet network conditions before downloading and installing software. If no network is available, you can also build the CD-ROM source or internal YUM source. /var/cache/yum YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM YUM Then visit the extranet YUM source.

4.2 YUM Parameters

Because the use of YUM tools is simple, fast and efficient, IT is widely used in enterprises and favored by many IT operations and maintenance personnel. To be able to skillfully use YUM tools, IT is necessary to master the use of YUM command line parameters. The following is the parameter description and practical steps of YUM command tools:

Guidelines, YUM YUM command tool format for: YUM [command] [package] - y | - q [options] is optional. -y Automatically confirms YES when YES is displayed during installation or uninstallation. -q Does not display the installation process. Yum install sysstat install sysstat; Yum search sysstat yum 安装sysstat package Yum list sysstat; yum list sysstat; Yum List displays all installed and installable packages; Yum remove sysstat; Yum erase sysstat delete sysstat; Yum Update kernel update or software update Yum update sysstat update sysstat Yum check-update check for updatable programs; Yum info sysstat displays installation package information sysstat; Yum provides lists the files provided by the package. Yum provides "*/rz". Yum provides "*/rz". # yum grouplist # yum grouplist # groupinstall Yum groupinstall "Chinese Support" Yum groupreMove "Chinese Support" Yum deplist sysstat check sysstat dependencies. Yum Clean Packages clears packages in the cache directory. Yum clean headers Clear headers from the cache directory. Yum Clean All Clears software packages and old headers from the cache directory. Yum repolist {all | enabled | disabled} to list all/enable/disable the yum yum source list {all | installed | avaliable} to list all installed/software package can be installedCopy the code
4.2.1 YUM Installation

1. Based on CentOS 7 Linux, run the yum install sysstat -y command to install the sysstat service

[root@superman-vm01 ~]# yum install sysstat -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.cn99.com * updates: Mirrors.cn99.com considerations Dependencies --> Running Transaction Check --> Package sysstat.x86_64 0:10.1.5-17.el7 will Update --> Package sysstat.x86_64 0:10.1.5-19.el7 will be an update --> Finished Dependency Resolution Dependencies  Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: Sysstat x86_64 10.1.5-19.el7 Base 315 K Transaction Summary ================================================================================ Upgrade 1 Package Total size: 315 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: Updating: sysstat-10.1.5-19.el7.x86_64 1/2 Cleanup: Sysstat -10.1.5-17.el7.x86_64 2/2verifying: sysstat-10.1.5-19.el7.x86_64 1/2verifying: sysstat-10.1.5-19.el7.x86_64 2/2verifying: sysstat-10.1.5-19.el7.x86_64 1/2verifying: Sysstat-10.1.5-17.el7.x86_64 2/2 Updated: sysstat.x86_64 0:10.1.5-19.el7 Complete! [root@superman-vm01 ~]#Copy the code

2. Run the yum grouplist command to check the software group name of groupinstall

[root@superman-vm01 ~]# yum grouplist
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.bfsu.edu.cn
 * extras: mirrors.bfsu.edu.cn
 * updates: mirrors.bfsu.edu.cn
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
Done
[root@superman-vm01 ~]# 
Copy the code

3. Run the yum groupinstall “GNOME Desktop” -y command to install the Linux image interface

[root@superman-vm01 ~]# yum groupinstall "GNOME Desktop" -y Loaded plugins: fastestmirror, langpacks There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.bfsu.edu.cn Warning: Group core does not have any packages to install. Warning: Group gnome-desktop does not have any packages to install. Warning: Group guest-agents does not have any packages to install. Package gtk2-immodule-xim-2.24.31-1.el7.x86_64 already installed and latest version Warning: Group guest-desktop-agents does not have any packages to install. Warning: Group fonts does not have any packages to install. Warning: Group print-client does not have any packages to install. Warning: Group desktop-debugging does not have any packages to install. Warning: Group dial-up does not have any packages to install. Package gstreamer1-plugins-bad-free-1.10.4-3.el7.x86_64 already Installed and latest version Package gstreamer1-plugins-good-1.10.4-2.el7.x86_64 already installed and latest version Package gstreamer1-plugins-ugly-free-1.10.4-3.el7.x86_64 Already installed and latest version Warning: Group multimedia does not have any packages to install. Warning: Group base does not have any packages to install. Group base does have 1 conditional packages, which may get installed. Warning: Group internet-browser does not have any packages to install. Warning: Group x11 does not have any packages to install. Resolving Dependencies --> Running transaction check ---> Package NetworkManager- Bluetooth.x86_64 1:18.8-2.el7_9 will be installed.........Copy the code

4. Run the yum install sysstat PHP php-devel php-mysql mariadb mariadb-server -y command to install LAMP for smes

[root@superman-vm01 ~]# yum install sysstat php php-devel php-mysql mariadb mariadb-server -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.cn99.com * updates: Latest version considerations Dependencies --> Package sysstat-10.1.5-19.el7.x86_64 Already installed Running Transaction check --> Package Mariadb.x86_64 1:5.5.68-1.el7 will be installed --> Processing Dependency: Mariadb-libs (x86-64) = 1:5.5.68-1.el7 for package: 1:mariadb-5.5.68-1.el7.x86_64 --> Package Mariadb-server. x86_64 1:5.5.68-1.el7 will be installed --> Processing Dependency: perl-DBD-MySQL for package: X86_64 --> Package php.x86_64 0:5.4.16-48.el7 will be installed --> Processing Dependency: phP-common (x86-64) = 5.4.16-48.el7 for package: php-5.4.16-48.el7.x86_64..........Copy the code

5. Run the yum remove ntpdate -y command to uninstall the ntpdate package

[root@superman-vm01 ~]# yum remove ntpdate -yLoaded plugins: fastestmirror, Langpacksconsiderations Dependencies--> Running Transaction Check --> Package ntpDate.x86_64 0:4.2.6 P5-29.el7.centos.2 will Erased -> Processing Dependency: NTPdate = 4.2.6 P5-29.el7.centos.2 for package: Ntp-4.2.6 P5-29.el7.centos.2.x86_64--> Running Transaction check-- > Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be  erased--> Processing Dependency: ntp for package: Ipa-client-4.6.8-5.el7.centos.6.x86_64--> Running Transaction Check --> Package IPa-client.x86_64 0:46.8-5.el7.centos  will be erased--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository  Size================================================================================Removing: Ntpdate x86_64 4.2.6p5-29.el7.centos.2 @base 121 kRemoving for Dependencies: Ipa-client x86_64 4.6.8-5.el7.centos.6@updates 255 K NTP x86_64 4.2.6 p5-29.el7.centos.2@base 1.4mTransaction Summary================================================================================Remove 1 Package (+2 Dependent packages)Installed size: 1.7 Downloading Packages :Running Transaction checkRunning Transaction testTransaction Test succeededRunning Transaction X86_64 2/3 Erasing: ntp-4.2.6 p5-29.el7.tocentos.2. X86_64 2/3 Erasing: ntp-4.2.6 p5-29.el7.tocentos.2. Ntpdate-4.2.6 p5-29.el7.centos.2.x86_64 3/3 Verifying: ntp-4.2.6p5-29.el7.centos.2.x86_64 1/3 Verifying: Ntpdate-4.2.6 P5-29.el7.centos.2. x86_64 2/3 Verifying: IPA-client-4.6.8-5.el7.centos.6. x86_64 3/3 Removed: Ntpdate. X86_64 0-4. 2.6 the p5-29. El7. Centos. 2 the Dependency Removed: Ipa - client. X86_64 0-4. 6.8-5. El7. Centos. 6 the NTP. X86_64 0-4. 2.6 the p5-29. El7. Centos. 2 complete! [root@superman-vm01 ~]#Copy the code

6. Run the yum provides rz command or yum provides “*/rz” to find the rz provider

[root@superman-vm01 ~]# yum provides rzLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.bfsu.edu.cn * extras: mirrors.bfsu.edu.cn * updates: mirrors.bfsu.edu.cnextras/7/x86_64/filelists_db                             | 235 kB     00:00     updates/7/x86_64/filelists_db                            | 5.1 MB     00:04     lrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : baseMatched from:Filename    : /usr/bin/rzlrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : @anacondaMatched from:Filename    : /usr/bin/rz[root@superman-vm01 ~]# [root@superman-vm01 ~]# yum provides "*/rz"Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: mirrors.huaweicloud.com * updates: mirrors.huaweicloud.comlrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : baseMatched from:Filename    : /usr/bin/rzlrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : @anacondaMatched from:Filename    : /usr/bin/rz[root@superman-vm01 ~]# 
Copy the code

7. Run the yum update -y command to upgrade all updatable Linux software packages or Linux kernel upgrades

[root@superman-vm01 ~]# yum update -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: Considerations Dependencies --> Running Transaction Check --> Package geoip.x86_64 0:1.5.0-13.el7 Will be updated --> Package geoip.x86_64 0:1.5.0-14.el7 will be an update --> Processing Dependency: geoipupdate for package: Geoip-1.5.0-14.el7.x86_64 --> Package modemManager.x86_64 0:1.6.10-1.el7 will be updated --> Package X86_64 0:1.6.10-4.el7 will be an update --> Package modemManager-glib.x86_64 0:1.6.10-1.el7 will be Updated --> Package modemManager-glib.x86_64 0:1.6.10-4.el7 will be an update --> Package PackageKit.x86_64 0:1.1.10-1.el7.centos will be updated --> Package PackageKit.x86_64 0:1.1.10-2.el7.centos will be an update...........Copy the code

4.3 Configuring network Sources

#Install 163yum:[root@superman-vm01 ~]# wget -O /etc/yum.repos.d/CentOS7-Base-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo --2021-07-10 17:07:57-- http://mirrors.163.com/.help/CentOS7-Base-163.repo Resolving mirrors.163.com (mirrors.163.com)... 1.193.221.38, 124.116.156.215, 124.116.156.214,... Connecting to mirrors.163.com (mirrors.163.com) | 1.193.221.38 | : 80... connected. HTTP request sent, awaiting response... 200 OK Length: 1572 (1.5k) [application/octet-stream] Saving to: '/etc/yum-repos. D/centos7-base-163.repo'
100%[= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = >] 1572 -. - K/sin 0s2021-07-10 17:07:57 (76.7 MB/s) - '/etc/yum-repos. D/centos7-base-163. repo' saved [1572/1572] [root@superman-vm01 ~]#
#Install aliyun yum source:[root@superman-vm01 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo --2021-07-10 17:08:52-- http://mirrors.aliyun.com/repo/Centos-7.repo Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 1.180.14.242, 1.180.14.241, 1.180.14.248,... Connecting to mirrors.aliyun.com (mirrors.aliyun.com) | 1.180.14.242 | : 80... connected. HTTP request sent, awaiting response... 200 OK Length: 2523 (2.5k) [application/octet-stream] Saving to: '/etc/ yum-repos. D/centos-base. Repo'
100%[= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = >] 2523 -. - K/sin 0s2021-07-10 17:08:52 (384 MB/s) - '/etc/yum-repos. D/centos-base. repo' saved [2523/2523] [root@superman-vm01 ~]#Copy the code
#Sohu does not have a ready-made yum source file to download, you need to configure their own:
[root@superman-vm01 ~]# echo "[sohu]
name=Centos-$releasever-sohu
baseurl=http://mirrors.sohu.com/centos/$releasever/os/$basearch
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-$releasever" > /etc/yum.repos.d/CentOS-souhu.repo
[root@superman-vm01 ~]# 
[root@superman-vm01 ~]# 
[root@superman-vm01 ~]# 
[root@superman-vm01 ~]# yum makecache
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Copy the code

4.4 Configuring local Sources

[root@superman-vm01 ~]# mkdir /mnt/cdrom
[root@superman-vm01 ~]# mount /dev/cdrom /mnt/cdrom
echo "[local]
name=centos-$releasever-local
baseurl=file:///mnt/cdrom
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-CentOS-7" > /etc/yum.repos.d/centos-7-local.repomount: /dev/sr0 is write-protected, mounting read-only
[root@superman-vm01 ~]# echo "[local]
name=centos-$releasever-local
baseurl=file:///mnt/cdrom
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-CentOS-7" > /etc/yum.repos.d/centos-7-local.repo
[root@superman-vm01 ~]# 
Copy the code

4.5 Automatically configuring the warehouse

[root@superman-vm01 ~]# yum install yum-utils -y Loaded plugins: fastestmirror, langpacks Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: Mirrors.aliyun.com base | 3.6 kB 00:00 extras | 2.9 kB 00:00 local | 3.6 kB 00:00 updates | 2.9 kB 00:00 # automatic configuration of domestic epel warehouse:  [root@superman-vm01 ~]# yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/ Loaded plugins: fastestmirror, langpacks Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration adding repo from: https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/ [mirrors.tuna.tsinghua.edu.cn_epel_7_x86_64_] name=added from: https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/ baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/ enabled=1 [root@superman-vm01 ~]#Copy the code

4.6 Disabling or Enabling a Warehouse

# epel 是仓库的id [epel]
[root@superman-vm01 ~]# yum-config-manager --disable epel
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
[root@superman-vm01 ~]# 
[root@superman-vm01 ~]# yum-config-manager --enable epel
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
[root@superman-vm01 ~]# 

# 查看仓库状态:
[root@superman-vm01 ~]# yum repolist all
Loaded plugins: fastestmirror, langpacks
Repository 'sohu' is missing name in configuration, using id
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
repo id                             repo name                         status
C7.0.1406-base/x86_64               CentOS-7.0.1406 - Base            disabled
C7.0.1406-centosplus/x86_64         CentOS-7.0.1406 - CentOSPlus      disabled
C7.0.1406-extras/x86_64             CentOS-7.0.1406 - Extras          disabled
C7.0.1406-fasttrack/x86_64          CentOS-7.0.1406 - Fasttrack       disabled
C7.0.1406-updates/x86_64            CentOS-7.0.1406 - Updates         disabled
C7.1.1503-base/x86_64               CentOS-7.1.1503 - Base            disabled
C7.1.1503-centosplus/x86_64         CentOS-7.1.1503 - CentOSPlus      disabled
C7.1.1503-extras/x86_64             CentOS-7.1.1503 - Extras          disabled
C7.1.1503-fasttrack/x86_64          CentOS-7.1.1503 - Fasttrack       disabled
C7.1.1503-updates/x86_64            CentOS-7.1.1503 - Updates         disabled
C7.2.1511-base/x86_64               CentOS-7.2.1511 - Base            disabled
C7.2.1511-centosplus/x86_64         CentOS-7.2.1511 - CentOSPlus      disabled
C7.2.1511-extras/x86_64             CentOS-7.2.1511 - Extras          disabled
C7.2.1511-fasttrack/x86_64          CentOS-7.2.1511 - Fasttrack       disabled
C7.2.1511-updates/x86_64            CentOS-7.2.1511 - Updates         disabled
C7.3.1611-base/x86_64               CentOS-7.3.1611 - Base            disabled
C7.3.1611-centosplus/x86_64         CentOS-7.3.1611 - CentOSPlus      disabled
C7.3.1611-extras/x86_64             CentOS-7.3.1611 - Extras          disabled
C7.3.1611-fasttrack/x86_64          CentOS-7.3.1611 - Fasttrack       disabled
C7.3.1611-updates/x86_64            CentOS-7.3.1611 - Updates         disabled
C7.4.1708-base/x86_64               CentOS-7.4.1708 - Base            disabled
C7.4.1708-centosplus/x86_64         CentOS-7.4.1708 - CentOSPlus      disabled
C7.4.1708-extras/x86_64             CentOS-7.4.1708 - Extras          disabled
C7.4.1708-fasttrack/x86_64          CentOS-7.4.1708 - Fasttrack       disabled
C7.4.1708-updates/x86_64            CentOS-7.4.1708 - Updates         disabled
C7.5.1804-base/x86_64               CentOS-7.5.1804 - Base            disabled
C7.5.1804-centosplus/x86_64         CentOS-7.5.1804 - CentOSPlus      disabled
C7.5.1804-extras/x86_64             CentOS-7.5.1804 - Extras          disabled
C7.5.1804-fasttrack/x86_64          CentOS-7.5.1804 - Fasttrack       disabled
C7.5.1804-updates/x86_64            CentOS-7.5.1804 - Updates         disabled
C7.6.1810-base/x86_64               CentOS-7.6.1810 - Base            disabled
C7.6.1810-centosplus/x86_64         CentOS-7.6.1810 - CentOSPlus      disabled
C7.6.1810-extras/x86_64             CentOS-7.6.1810 - Extras          disabled
C7.6.1810-fasttrack/x86_64          CentOS-7.6.1810 - Fasttrack       disabled
C7.6.1810-updates/x86_64            CentOS-7.6.1810 - Updates         disabled
C7.7.1908-base/x86_64               CentOS-7.7.1908 - Base            disabled
C7.7.1908-centosplus/x86_64         CentOS-7.7.1908 - CentOSPlus      disabled
C7.7.1908-extras/x86_64             CentOS-7.7.1908 - Extras          disabled
C7.7.1908-fasttrack/x86_64          CentOS-7.7.1908 - Fasttrack       disabled
C7.7.1908-updates/x86_64            CentOS-7.7.1908 - Updates         disabled
C7.8.2003-base/x86_64               CentOS-7.8.2003 - Base            disabled
C7.8.2003-centosplus/x86_64         CentOS-7.8.2003 - CentOSPlus      disabled
C7.8.2003-extras/x86_64             CentOS-7.8.2003 - Extras          disabled
C7.8.2003-fasttrack/x86_64          CentOS-7.8.2003 - Fasttrack       disabled
C7.8.2003-updates/x86_64            CentOS-7.8.2003 - Updates         disabled
base/7/x86_64                       CentOS-7 - Base - mirrors.aliyun. enabled: 0
base-debuginfo/x86_64               CentOS-7 - Debuginfo              disabled
base-source/7                       CentOS-7 - Base Sources           disabled
c7-media                            CentOS-7 - Media                  disabled
centos-kernel/7/x86_64              CentOS LTS Kernels for x86_64     disabled
centos-kernel-experimental/7/x86_64 CentOS Experimental Kernels for x disabled
centosplus/7/x86_64                 CentOS-7 - Plus - mirrors.aliyun. disabled
centosplus-source/7                 CentOS-7 - Plus Sources           disabled
contrib/7/x86_64                    CentOS-7 - Contrib - mirrors.aliy disabled
cr/7/x86_64                         CentOS-7 - cr                     disabled
extras/7/x86_64                     CentOS-7 - Extras - mirrors.aliyu enabled: 0
extras-source/7                     CentOS-7 - Extras Sources         disabled
fasttrack/7/x86_64                  CentOS-7 - fasttrack              disabled
sohu                                sohu                              enabled: 0
updates/7/x86_64                    CentOS-7 - Updates - mirrors.aliy enabled: 0
updates-source/7                    CentOS-7 - Updates Sources        disabled
repolist: 0
[root@superman-vm01 ~]#
Copy the code

5. Synchronize the Internet source

In the actual application scenarios of enterprises, only relying on the RPM packages in the CD-ROM cannot meet the needs. We can synchronize all the packages in the external YUM source to the local, which can improve the number and integrity of the packages in the local YUM source.

5.1 Installing the RepoSync Tool

[root@superman-vm01 ~]# yum install yum-utils createrepo -y Loaded plugins: fastestmirror, langpacks Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: Mirrors.aliyun.com * updates: mirrors.aliyun.com mirrors.tuna.tsinghua.edu.cn_epel_7_x86_64_ | 4.7 kB 00:00 (1/3) : mirrors.tuna.tsinghua.edu.cn_epel_7_x86_64_/group_g | 96 kB 00:00 (2/3): 1.0 MB 00:04 mirrors.tuna.tsinghua.edu.cn_epel_7_x86_64_/updatei | (3/3) : 6.9 MB 00:07 mirrors.tuna.tsinghua.edu.cn_epel_7_x86_64_/primary |Copy the code

5.2 source

Create local directory: [root@superman-vm01 ~]# mkdir /data/{centos,epel} [root@superman-vm01 ~]#  [root@superman-vm01 ~]# reposync -r base -r updates -p /data/centos/ Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration No Presto metadata Available for Base 389-DS-BASE-1.3.10.2-6.el7.x86 FAILED 389-DS-base-dep-1.3.10.2-6.e FAILED (1/10072): 389 - ds - base - SNMP - 1.3.10.2-6. El7. X86_64. RPM | 178 kB 00:00 (2/10072) : ElectricFence - 2.2.2-39. El7. I686. RPM | 35 kB 00:00 (3/10072) : ElectricFence - 2.2.2-39. El7. X86_64. RPM | 35 kB 00:00 (4/10072) : GConf2 3.2.6-8 el7. I686. RPM | 1.0 MB 00:01onsaturday (UK time) (5/10072) : Cython - 0.19-5. El7. X86_64. RPM | 1.9 MB 00:03 (6/10072) : GConf2 3.2.6-8 el7. X86_64. RPM | 1.0 MB 00:01onsaturday (UK time) (7/10072) : GConf2 - devel - 3.2.6-8. El7. I686. RPM | 110 kB 00:00 (8/10072) : GConf2 - devel - 3.2.6-8. El7. X86_64. RPM | 110 kB 00:00... Generate metadata: [root@superman-vm01 ~]# createrepo /data/centos [root@superman-vm01 ~]# #Copy the code

Welcome to pay attention to my wechat public number [super brother’s IT private dishes] to get more technical dry goods!

If you have any jokes or feedback, just let me know! I will solve the problem you said, further better service you oh!