4月 112023
 

安装epel软件源仓库

[root@localhost ~]# dnf install epel-release
Last metadata expiration check: 0:03:00 ago on Tue 12 Dec 2023 09:01:45 AM CST.
Dependencies resolved.
================================================================================
 Package               Architecture    Version            Repository       Size
================================================================================
Installing:
 epel-release          noarch          9-7.el9            extras           19 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 19 k
Installed size: 26 k
Is this ok [y/N]:

安装编译工具及内核开发库

[root@localhost ~]# dnf install gcc make perl kernel-devel kernel-headers bzip2 dkms
Extra Packages for Enterprise Linux 9 - x86_64  2.6 MB/s |  20 MB     00:07
Extra Packages for Enterprise Linux 9 openh264  1.2 kB/s | 2.5 kB     00:02
Dependencies resolved.
================================================================================
 Package                       Arch    Version                 Repository  Size
================================================================================
Installing:
 bzip2                         x86_64  1.0.8-8.el9             baseos      52 k
 dkms                          noarch  3.0.12-1.el9            epel        80 k
 gcc                           x86_64  11.4.1-2.1.el9          appstream   32 M
 kernel-devel                  x86_64  5.14.0-362.8.1.el9_3    appstream   20 M
 kernel-headers                x86_64  5.14.0-362.8.1.el9_3    appstream  6.5 M
 make                          x86_64  1:4.3-7.el9             baseos     530 k
 perl                          x86_64  4:5.32.1-480.el9        appstream   13 k
Upgrading:
 elfutils-libelf               x86_64  0.189-3.el9             baseos     192 k
 elfutils-libs                 x86_64  0.189-3.el9             baseos     254 k
 glibc                         x86_64  2.34-83.el9.7           baseos     1.9 M
 glibc-common                  x86_64  2.34-83.el9.7           baseos     309 k
 glibc-gconv-extra             x86_64  2.34-83.el9.7           baseos     1.6 M
 glibc-langpack-en             x86_64  2.34-83.el9.7           baseos     567 k
 libgcc                        x86_64  11.4.1-2.1.el9          baseos      94 k
 libgomp                       x86_64  11.4.1-2.1.el9          baseos     270 k
 libstdc++                     x86_64  11.4.1-2.1.el9          baseos     736 k
 openssl                       x86_64  1:3.0.7-24.el9          baseos     1.2 M
 openssl-libs                  x86_64  1:3.0.7-24.el9          baseos     2.1 M
 zlib                          x86_64  1.2.11-40.el9           baseos      90 k
Installing dependencies:
 annobin                       x86_64  12.12-1.el9             appstream  977 k
 binutils                      x86_64  2.35.2-42.el9           baseos     4.5 M
 binutils-gold                 x86_64  2.35.2-42.el9           baseos     734 k
 bison                         x86_64  3.7.4-5.el9             appstream  921 k
 cpp                           x86_64  11.4.1-2.1.el9          appstream   11 M
 dwz                           x86_64  0.14-3.el9              appstream  127 k
 efi-srpm-macros               noarch  6-2.el9_0               appstream   22 k
 elfutils-debuginfod-client    x86_64  0.189-3.el9             baseos      36 k
 elfutils-libelf-devel         x86_64  0.189-3.el9             appstream   21 k
 flex                          x86_64  2.6.4-9.el9             appstream  308 k
 fonts-srpm-macros             noarch  1:2.0.5-7.el9.1         appstream   27 k
 gcc-c++                       x86_64  11.4.1-2.1.el9          appstream   13 M
 gcc-plugin-annobin            x86_64  11.4.1-2.1.el9          appstream   48 k
 ghc-srpm-macros               noarch  1.5.0-6.el9             appstream  7.8 k
 glibc-devel                   x86_64  2.34-83.el9.7           appstream   50 k
 glibc-headers                 x86_64  2.34-83.el9.7           appstream  450 k
 go-srpm-macros                noarch  3.2.0-2.el9             appstream   26 k
 kernel-core                   x86_64  5.14.0-362.8.1.el9_3    baseos      20 M
 kernel-devel-matched          x86_64  5.14.0-362.8.1.el9_3    appstream  5.1 M
 kernel-modules-core           x86_64  5.14.0-362.8.1.el9_3    baseos      32 M
 kernel-srpm-macros            noarch  1.0-13.el9              appstream   15 k
 libdatrie                     x86_64  0.2.13-4.el9            appstream   32 k
 libmpc                        x86_64  1.2.1-4.el9             appstream   61 k
 libpkgconf                    x86_64  1.7.3-10.el9            baseos      35 k
 libstdc++-devel               x86_64  11.4.1-2.1.el9          appstream  2.2 M
 libthai                       x86_64  0.1.28-8.el9            appstream  208 k
 libxcrypt-devel               x86_64  4.4.18-3.el9            appstream   28 k
 libzstd-devel                 x86_64  1.5.1-2.el9             appstream   46 k
 llvm-libs                     x86_64  16.0.6-4.el9            appstream   24 M
 lua-srpm-macros               noarch  1-6.el9                 appstream  8.5 k
 m4                            x86_64  1.4.19-1.el9            appstream  294 k
 ocaml-srpm-macros             noarch  6-6.el9                 appstream  7.8 k
 openblas-srpm-macros          noarch  2-11.el9                appstream  7.3 k
 openssl-devel                 x86_64  1:3.0.7-24.el9          appstream  3.0 M
 perl-Algorithm-Diff           noarch  1.2010-4.el9            appstream   47 k
 perl-Archive-Tar              noarch  2.38-6.el9              appstream   71 k
 perl-Archive-Zip              noarch  1.68-6.el9              appstream  106 k
 perl-Attribute-Handlers       noarch  1.01-480.el9            appstream   28 k
 perl-AutoLoader               noarch  5.74-480.el9            appstream   21 k
 perl-AutoSplit                noarch  5.74-480.el9            appstream   22 k
 perl-B                        x86_64  1.80-480.el9            appstream  179 k
 perl-Benchmark                noarch  1.23-480.el9            appstream   27 k
 perl-CPAN                     noarch  2.29-3.el9              appstream  556 k
 perl-CPAN-Meta                noarch  2.150010-460.el9        appstream  176 k
 perl-CPAN-Meta-Requirements   noarch  2.140-461.el9           appstream   31 k
 perl-CPAN-Meta-YAML           noarch  0.018-461.el9           appstream   26 k
 perl-Carp                     noarch  1.50-460.el9            appstream   29 k
 perl-Class-Struct             noarch  0.66-480.el9            appstream   22 k
 perl-Compress-Bzip2           x86_64  2.28-5.el9              appstream   69 k
 perl-Compress-Raw-Bzip2       x86_64  2.101-5.el9             appstream   34 k
 perl-Compress-Raw-Lzma        x86_64  2.101-3.el9             appstream   50 k
 perl-Compress-Raw-Zlib        x86_64  2.101-5.el9             appstream   60 k
 perl-Config-Extensions        noarch  0.03-480.el9            appstream   12 k
 perl-Config-Perl-V            noarch  0.33-4.el9              appstream   21 k
 perl-DBM_Filter               noarch  0.06-480.el9            appstream   32 k
 perl-DB_File                  x86_64  1.855-4.el9             appstream   81 k
 perl-Data-Dumper              x86_64  2.174-462.el9           appstream   55 k
 perl-Data-OptList             noarch  0.110-17.el9            appstream   26 k
 perl-Data-Section             noarch  0.200007-14.el9         appstream   25 k
 perl-Devel-PPPort             x86_64  3.62-4.el9              appstream  211 k
 perl-Devel-Peek               x86_64  1.28-480.el9            appstream   32 k
 perl-Devel-SelfStubber        noarch  1.06-480.el9            appstream   15 k
 perl-Devel-Size               x86_64  0.83-10.el9             appstream   31 k
 perl-Digest                   noarch  1.19-4.el9              appstream   25 k
 perl-Digest-MD5               x86_64  2.58-4.el9              appstream   36 k
 perl-Digest-SHA               x86_64  1:6.02-461.el9          appstream   61 k
 perl-Digest-SHA1              x86_64  2.13-34.el9             appstream   52 k
 perl-DirHandle                noarch  1.05-480.el9            appstream   13 k
 perl-Dumpvalue                noarch  2.27-480.el9            appstream   19 k
 perl-DynaLoader               x86_64  1.47-480.el9            appstream   26 k
 perl-Encode                   x86_64  4:3.08-462.el9          appstream  1.7 M
 perl-Encode-devel             x86_64  4:3.08-462.el9          appstream   41 k
 perl-English                  noarch  1.11-480.el9            appstream   14 k
 perl-Env                      noarch  1.04-460.el9            appstream   19 k
 perl-Errno                    x86_64  1.30-480.el9            appstream   15 k
 perl-Exporter                 noarch  5.74-461.el9            appstream   31 k
 perl-ExtUtils-CBuilder        noarch  1:0.280236-4.el9        appstream   46 k
 perl-ExtUtils-Command         noarch  2:7.60-3.el9            appstream   14 k
 perl-ExtUtils-Constant        noarch  0.25-480.el9            appstream   47 k
 perl-ExtUtils-Embed           noarch  1.35-480.el9            appstream   18 k
 perl-ExtUtils-Install         noarch  2.20-4.el9              appstream   44 k
 perl-ExtUtils-MM-Utils        noarch  2:7.60-3.el9            appstream   12 k
 perl-ExtUtils-MakeMaker       noarch  2:7.60-3.el9            appstream  289 k
 perl-ExtUtils-Manifest        noarch  1:1.73-4.el9            appstream   34 k
 perl-ExtUtils-Miniperl        noarch  1.09-480.el9            appstream   15 k
 perl-ExtUtils-ParseXS         noarch  1:3.40-460.el9          appstream  182 k
 perl-Fcntl                    x86_64  1.13-480.el9            appstream   20 k
 perl-File-Basename            noarch  2.85-480.el9            appstream   17 k
 perl-File-Compare             noarch  1.100.600-480.el9       appstream   13 k
 perl-File-Copy                noarch  2.34-480.el9            appstream   20 k
 perl-File-DosGlob             x86_64  1.12-480.el9            appstream   20 k
 perl-File-Fetch               noarch  1.00-4.el9              appstream   30 k
 perl-File-Find                noarch  1.37-480.el9            appstream   26 k
 perl-File-HomeDir             noarch  1.006-4.el9             appstream   57 k
 perl-File-Path                noarch  2.18-4.el9              appstream   35 k
 perl-File-Temp                noarch  1:0.231.100-4.el9       appstream   59 k
 perl-File-Which               noarch  1.23-10.el9             appstream   21 k
 perl-File-stat                noarch  1.09-480.el9            appstream   17 k
 perl-FileCache                noarch  1.10-480.el9            appstream   15 k
 perl-FileHandle               noarch  2.03-480.el9            appstream   16 k
 perl-Filter                   x86_64  2:1.60-4.el9            appstream   81 k
 perl-Filter-Simple            noarch  0.96-460.el9            appstream   27 k
 perl-FindBin                  noarch  1.51-480.el9            appstream   14 k
 perl-GDBM_File                x86_64  1.18-480.el9            appstream   23 k
 perl-Getopt-Long              noarch  1:2.52-4.el9            appstream   60 k
 perl-Getopt-Std               noarch  1.12-480.el9            appstream   16 k
 perl-HTTP-Tiny                noarch  0.076-461.el9           appstream   53 k
 perl-Hash-Util                x86_64  0.23-480.el9            appstream   34 k
 perl-Hash-Util-FieldHash      x86_64  1.20-480.el9            appstream   38 k
 perl-I18N-Collate             noarch  1.02-480.el9            appstream   14 k
 perl-I18N-LangTags            noarch  0.44-480.el9            appstream   55 k
 perl-I18N-Langinfo            x86_64  0.19-480.el9            appstream   23 k
 perl-IO                       x86_64  1.43-480.el9            appstream   87 k
 perl-IO-Compress              noarch  2.102-4.el9             appstream  256 k
 perl-IO-Compress-Lzma         noarch  2.101-4.el9             appstream   74 k
 perl-IO-Socket-IP             noarch  0.41-5.el9              appstream   42 k
 perl-IO-Socket-SSL            noarch  2.073-1.el9             appstream  217 k
 perl-IO-Zlib                  noarch  1:1.11-4.el9            appstream   19 k
 perl-IPC-Cmd                  noarch  2:1.04-461.el9          appstream   39 k
 perl-IPC-Open3                noarch  1.21-480.el9            appstream   23 k
 perl-IPC-SysV                 x86_64  2.09-4.el9              appstream   42 k
 perl-IPC-System-Simple        noarch  1.30-6.el9              appstream   40 k
 perl-Importer                 noarch  0.026-4.el9             appstream   39 k
 perl-JSON-PP                  noarch  1:4.06-4.el9            appstream   65 k
 perl-Locale-Maketext          noarch  1.29-461.el9            appstream   94 k
 perl-Locale-Maketext-Simple   noarch  1:0.21-480.el9          appstream   18 k
 perl-MIME-Base64              x86_64  3.16-4.el9              appstream   30 k
 perl-MIME-Charset             noarch  1.012.2-15.el9          appstream   48 k
 perl-MRO-Compat               noarch  0.13-15.el9             appstream   19 k
 perl-Math-BigInt              noarch  1:1.9998.18-460.el9     appstream  188 k
 perl-Math-BigInt-FastCalc     x86_64  0.500.900-460.el9       appstream   27 k
 perl-Math-BigRat              noarch  0.2614-460.el9          appstream   38 k
 perl-Math-Complex             noarch  1.59-480.el9            appstream   47 k
 perl-Memoize                  noarch  1.03-480.el9            appstream   57 k
 perl-Module-Build             noarch  2:0.42.31-9.el9         appstream  255 k
 perl-Module-CoreList          noarch  1:5.20210320-3.el9      appstream   81 k
 perl-Module-CoreList-tools    noarch  1:5.20210320-3.el9      appstream   18 k
 perl-Module-Load              noarch  1:0.36-4.el9            appstream   17 k
 perl-Module-Load-Conditional  noarch  0.74-4.el9              appstream   22 k
 perl-Module-Loaded            noarch  1:0.08-480.el9          appstream   14 k
 perl-Module-Metadata          noarch  1.000037-460.el9        appstream   35 k
 perl-Module-Signature         noarch  0.88-1.el9              appstream   83 k
 perl-Mozilla-CA               noarch  20200520-6.el9          appstream   12 k
 perl-NDBM_File                x86_64  1.15-480.el9            appstream   22 k
 perl-NEXT                     noarch  0.67-480.el9            appstream   21 k
 perl-Net                      noarch  1.02-480.el9            appstream   26 k
 perl-Net-Ping                 noarch  2.74-5.el9              appstream   49 k
 perl-Net-SSLeay               x86_64  1.92-2.el9              appstream  365 k
 perl-ODBM_File                x86_64  1.16-480.el9            appstream   23 k
 perl-Object-HashBase          noarch  0.009-7.el9             appstream   25 k
 perl-Opcode                   x86_64  1.48-480.el9            appstream   36 k
 perl-POSIX                    x86_64  1.94-480.el9            appstream   96 k
 perl-Package-Generator        noarch  1.106-23.el9            appstream   23 k
 perl-Params-Check             noarch  1:0.38-461.el9          appstream   22 k
 perl-Params-Util              x86_64  1.102-5.el9             appstream   33 k
 perl-PathTools                x86_64  3.78-461.el9            appstream   85 k
 perl-Perl-OSType              noarch  1.010-461.el9           appstream   23 k
 perl-PerlIO-via-QuotedPrint   noarch  0.09-4.el9              appstream   22 k
 perl-Pod-Checker              noarch  4:1.74-4.el9            appstream   32 k
 perl-Pod-Escapes              noarch  1:1.07-460.el9          appstream   20 k
 perl-Pod-Functions            noarch  1.13-480.el9            appstream   14 k
 perl-Pod-Html                 noarch  1.25-480.el9            appstream   27 k
 perl-Pod-Perldoc              noarch  3.28.01-461.el9         appstream   83 k
 perl-Pod-Simple               noarch  1:3.42-4.el9            appstream  215 k
 perl-Pod-Usage                noarch  4:2.01-4.el9            appstream   40 k
 perl-Safe                     noarch  2.41-480.el9            appstream   25 k
 perl-Scalar-List-Utils        x86_64  4:1.56-461.el9          appstream   71 k
 perl-Search-Dict              noarch  1.07-480.el9            appstream   13 k
 perl-SelectSaver              noarch  1.02-480.el9            appstream   12 k
 perl-SelfLoader               noarch  1.26-480.el9            appstream   22 k
 perl-Socket                   x86_64  4:2.031-4.el9           appstream   54 k
 perl-Software-License         noarch  0.103014-12.el9         appstream  128 k
 perl-Storable                 x86_64  1:3.21-460.el9          appstream   95 k
 perl-Sub-Exporter             noarch  0.987-27.el9            appstream   66 k
 perl-Sub-Install              noarch  0.928-28.el9            appstream   22 k
 perl-Symbol                   noarch  1.08-480.el9            appstream   14 k
 perl-Sys-Hostname             x86_64  1.23-480.el9            appstream   17 k
 perl-Sys-Syslog               x86_64  0.36-461.el9            appstream   47 k
 perl-Term-ANSIColor           noarch  5.01-461.el9            appstream   48 k
 perl-Term-Cap                 noarch  1.17-460.el9            appstream   22 k
 perl-Term-Complete            noarch  1.403-480.el9           appstream   13 k
 perl-Term-ReadLine            noarch  1.17-480.el9            appstream   19 k
 perl-Term-Size-Perl           x86_64  0.031-12.el9            appstream   21 k
 perl-Term-Table               noarch  0.015-8.el9             appstream   35 k
 perl-Test                     noarch  1.31-480.el9            appstream   29 k
 perl-Test-Harness             noarch  1:3.42-461.el9          appstream  267 k
 perl-Test-Simple              noarch  3:1.302183-4.el9        appstream  525 k
 perl-Text-Abbrev              noarch  1.02-480.el9            appstream   12 k
 perl-Text-Balanced            noarch  2.04-4.el9              appstream   48 k
 perl-Text-Diff                noarch  1.45-13.el9             appstream   41 k
 perl-Text-Glob                noarch  0.11-15.el9             appstream   13 k
 perl-Text-ParseWords          noarch  3.30-460.el9            appstream   16 k
 perl-Text-Tabs+Wrap           noarch  2013.0523-460.el9       appstream   23 k
 perl-Text-Template            noarch  1.59-5.el9              appstream   60 k
 perl-Thread                   noarch  3.05-480.el9            appstream   18 k
 perl-Thread-Queue             noarch  3.14-460.el9            appstream   21 k
 perl-Thread-Semaphore         noarch  2.13-480.el9            appstream   16 k
 perl-Tie                      noarch  4.6-480.el9             appstream   32 k
 perl-Tie-File                 noarch  1.06-480.el9            appstream   43 k
 perl-Tie-Memoize              noarch  1.1-480.el9             appstream   14 k
 perl-Tie-RefHash              noarch  1.40-4.el9              appstream   23 k
 perl-Time                     noarch  1.03-480.el9            appstream   19 k
 perl-Time-HiRes               x86_64  4:1.9764-462.el9        appstream   57 k
 perl-Time-Local               noarch  2:1.300-7.el9           appstream   33 k
 perl-Time-Piece               x86_64  1.3401-480.el9          appstream   41 k
 perl-URI                      noarch  5.09-3.el9              appstream  108 k
 perl-Unicode-Collate          x86_64  1.29-4.el9              appstream  732 k
 perl-Unicode-Normalize        x86_64  1.27-461.el9            appstream   91 k
 perl-Unicode-UCD              noarch  0.75-480.el9            appstream   79 k
 perl-User-pwent               noarch  1.03-480.el9            appstream   21 k
 perl-autodie                  noarch  2.34-4.el9              appstream   94 k
 perl-autouse                  noarch  1.11-480.el9            appstream   14 k
 perl-base                     noarch  2.27-480.el9            appstream   16 k
 perl-bignum                   noarch  0.51-460.el9            appstream   42 k
 perl-blib                     noarch  1.07-480.el9            appstream   13 k
 perl-constant                 noarch  1.33-461.el9            appstream   23 k
 perl-debugger                 noarch  1.56-480.el9            appstream  134 k
 perl-deprecate                noarch  0.04-480.el9            appstream   15 k
 perl-devel                    x86_64  4:5.32.1-480.el9        appstream  660 k
 perl-diagnostics              noarch  1.37-480.el9            appstream  211 k
 perl-doc                      noarch  5.32.1-480.el9          appstream  4.5 M
 perl-encoding                 x86_64  4:3.00-462.el9          appstream   62 k
 perl-encoding-warnings        noarch  0.13-480.el9            appstream   17 k
 perl-experimental             noarch  0.022-6.el9             appstream   21 k
 perl-fields                   noarch  2.27-480.el9            appstream   16 k
 perl-filetest                 noarch  1.03-480.el9            appstream   15 k
 perl-if                       noarch  0.60.800-480.el9        appstream   14 k
 perl-inc-latest               noarch  2:0.500-20.el9          appstream   24 k
 perl-interpreter              x86_64  4:5.32.1-480.el9        appstream   71 k
 perl-less                     noarch  0.03-480.el9            appstream   13 k
 perl-lib                      x86_64  0.65-480.el9            appstream   15 k
 perl-libnet                   noarch  3.13-4.el9              appstream  125 k
 perl-libnetcfg                noarch  4:5.32.1-480.el9        appstream   17 k
 perl-libs                     x86_64  4:5.32.1-480.el9        appstream  2.0 M
 perl-local-lib                noarch  2.000024-13.el9         appstream   67 k
 perl-locale                   noarch  1.09-480.el9            appstream   14 k
 perl-macros                   noarch  4:5.32.1-480.el9        appstream   11 k
 perl-meta-notation            noarch  5.32.1-480.el9          appstream   10 k
 perl-mro                      x86_64  1.23-480.el9            appstream   28 k
 perl-open                     noarch  1.12-480.el9            appstream   17 k
 perl-overload                 noarch  1.31-480.el9            appstream   46 k
 perl-overloading              noarch  0.02-480.el9            appstream   13 k
 perl-parent                   noarch  1:0.238-460.el9         appstream   14 k
 perl-perlfaq                  noarch  5.20201107-4.el9        appstream  372 k
 perl-ph                       x86_64  5.32.1-480.el9          appstream   42 k
 perl-podlators                noarch  1:4.14-460.el9          appstream  112 k
 perl-sigtrap                  noarch  1.09-480.el9            appstream   16 k
 perl-sort                     noarch  2.04-480.el9            appstream   14 k
 perl-srpm-macros              noarch  1-41.el9                appstream  8.2 k
 perl-subs                     noarch  1.03-480.el9            appstream   12 k
 perl-threads                  x86_64  1:2.25-460.el9          appstream   57 k
 perl-threads-shared           x86_64  1.61-460.el9.0.1        appstream   44 k
 perl-utils                    noarch  5.32.1-480.el9          appstream   55 k
 perl-vars                     noarch  1.05-480.el9            appstream   13 k
 perl-version                  x86_64  7:0.99.28-4.el9         appstream   62 k
 perl-vmsish                   noarch  1.04-480.el9            appstream   14 k
 pkgconf                       x86_64  1.7.3-10.el9            baseos      40 k
 pkgconf-m4                    noarch  1.7.3-10.el9            baseos      14 k
 pkgconf-pkg-config            x86_64  1.7.3-10.el9            baseos      10 k
 pyproject-srpm-macros         noarch  1.9.0-1.el9             appstream   14 k
 python-srpm-macros            noarch  3.9-52.el9              appstream   22 k
 python3-pyparsing             noarch  2.4.7-9.el9             baseos     150 k
 qt5-srpm-macros               noarch  5.15.9-1.el9            appstream  7.9 k
 redhat-rpm-config             noarch  201-1.el9               appstream   66 k
 rust-srpm-macros              noarch  17-4.el9                appstream  9.3 k
 sombok                        x86_64  2.4.0-16.el9            appstream   47 k
 systemtap-sdt-devel           x86_64  4.9-3.el9               appstream   73 k
 tar                           x86_64  2:1.34-6.el9_1          baseos     876 k
 unzip                         x86_64  6.0-56.el9              baseos     180 k
 zip                           x86_64  3.0-35.el9              baseos     263 k
 zlib-devel                    x86_64  1.2.11-40.el9           appstream   44 k
Installing weak dependencies:
 perl-CPAN-DistnameInfo        noarch  0.12-23.el9             appstream   14 k
 perl-Encode-Locale            noarch  1.05-21.el9             appstream   19 k
 perl-Term-Size-Any            noarch  0.002-35.el9            appstream   13 k
 perl-TermReadKey              x86_64  2.38-11.el9             appstream   36 k
 perl-Unicode-LineBreak        x86_64  2019.001-11.el9         appstream  120 k

Transaction Summary
================================================================================
Install  283 Packages
Upgrade   12 Packages

Total download size: 210 M
Is this ok [y/N]:

执行挂载安装

[root@localhost ~]# mount /dev/cdrom /mnt/
mount: /mnt: WARNING: source write-protected, mounted read-only.
[root@localhost ~]# /mnt/VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.12 Guest Additions for Linux  100%
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel
5.14.0-284.11.1.el9_2.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: unable to load vboxguest kernel module, see dmesg
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
[root@localhost ~]#

重启系统并查看服务状态

[root@localhost ~]# systemctl status vboxadd.service
● vboxadd.service
     Loaded: loaded (/opt/VBoxGuestAdditions-7.0.12/init/vboxadd; enabled; preset: disabled)
     Active: active (exited) since Tue 2023-12-12 09:28:56 CST; 51s ago
    Process: 733 ExecStart=/opt/VBoxGuestAdditions-7.0.12/init/vboxadd start (code=exited, status=0/SUCCESS)
   Main PID: 733 (code=exited, status=0/SUCCESS)
        CPU: 1.195s

Dec 12 09:28:54 localhost systemd[1]: Starting vboxadd.service...
Dec 12 09:28:54 localhost vboxadd[733]: VirtualBox Guest Additions: Starting.
Dec 12 09:28:56 localhost.localdomain systemd[1]: Finished vboxadd.service.
[root@localhost ~]#