CentOS 8 的各种笔记

首先

各种备注

记录

# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)

# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

# cat /etc/yum.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True

# ll /etc/yum.repos.d/
total 44
-rw-r--r--. 1 root root  731 Aug 14 02:42 CentOS-AppStream.repo
-rw-r--r--. 1 root root  712 Aug 14 02:42 CentOS-Base.repo
-rw-r--r--. 1 root root  798 Aug 14 02:42 CentOS-centosplus.repo
-rw-r--r--. 1 root root 1320 Aug 14 02:42 CentOS-CR.repo
-rw-r--r--. 1 root root  668 Aug 14 02:42 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  756 Aug 14 02:42 CentOS-Extras.repo
-rw-r--r--. 1 root root  338 Aug 14 02:42 CentOS-fasttrack.repo
-rw-r--r--. 1 root root  928 Aug 14 02:42 CentOS-Media.repo
-rw-r--r--. 1 root root  736 Aug 14 02:42 CentOS-PowerTools.repo
-rw-r--r--. 1 root root 1382 Aug 14 02:42 CentOS-Sources.repo
-rw-r--r--. 1 root root   74 Aug 14 02:42 CentOS-Vault.repo

# cat /etc/yum.repos.d/*
# CentOS-AppStream.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[AppStream]
name=CentOS-$releasever - AppStream
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[BaseOS]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-centosplus.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-CR.repo
#
# The Continuous Release ( CR )  repository contains rpms that are due in the next
# release for a specific CentOS Version ( eg. next release in CentOS-8 ); these rpms
# are far less tested, with no integration checking or update path testing having
# taken place. They are still built from the upstream sources, but might not map
# to an exact upstream distro release.
#
# These packages are made available soon after they are built, for people willing
# to test their environments, provide feedback on content for the next release, and
# for people looking for early-access to next release content.
#
# The CR repo is shipped in a disabled state by default; its important that users
# understand the implications of turning this on.
#
# NOTE: We do not use a mirrorlist for the CR repos, to ensure content is available
#       to everyone as soon as possible, and not need to wait for the external
#       mirror network to seed first. However, many local mirrors will carry CR repos
#       and if desired you can use one of these local mirrors by editing the baseurl
#       line in the repo config below.
#

[cr]
name=CentOS-$releasever - cr
baseurl=http://mirror.centos.org/$contentdir/$releasever/cr/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-Debug.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#

# All debug packages from all the various CentOS-8 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#

[base-debuginfo]
name=CentOS-$releasever - Debuginfo
baseurl=http://debuginfo.centos.org/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-Extras.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#CentOS-fasttrack.repo

[fasttrack]
name=CentOS-$releasever - fasttrack
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=fasttrack&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/fasttrack/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-Media.repo
#
#  This repo can be used with mounted DVD media, verify the mount point for
#  CentOS-8.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c8-media [command]
#
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c8-media [command]

[c8-media-BaseOS]
name=CentOS-BaseOS-$releasever - Media
baseurl=file:///media/CentOS/BaseOS
        file:///media/cdrom/BaseOS
        file:///media/cdrecorder/BaseOS
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[c8-media-AppStream]
name=CentOS-AppStream-$releasever - Media
baseurl=file:///media/CentOS/AppStream
        file:///media/cdrom/AppStream
        file:///media/cdrecorder/AppStream
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
# CentOS-PowerTools.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[PowerTools]
name=CentOS-$releasever - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS-Sources.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[BaseOS-source]
name=CentOS-$releasever - BaseOS Sources
baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/Source/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#AppStream
[AppStream-source]
name=CentOS-$releasever - AppStream Sources
baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/Source/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#additional packages that may be useful
[extras-source]
name=CentOS-$releasever - Extras Sources
baseurl=http://vault.centos.org/$contentdir/$releasever/extras/Source/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#additional packages that extend functionality of existing packages
[centosplus-source]
name=CentOS-$releasever - Plus Sources
baseurl=http://vault.centos.org/$contentdir/$releasever/centosplus/Source/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

# CentOS Vault contains rpms from older releases in the CentOS-8
# tree.


# yum module list
CentOS-8 - AppStream                                                          255 kB/s | 5.6 MB     00:22
CentOS-8 - Base                                                               966 kB/s | 5.3 MB     00:05
CentOS-8 - Extras                                                             487  B/s | 2.1 kB     00:04
CentOS-8 - AppStream
Name                 Stream     Profiles                  Summary
389-ds               1.4                                  389 Directory Server (base)
ant                  1.10 [d]   common [d]                Java build tool
container-tools      1.0        common [d]                Common tools and dependencies for container runtimes
container-tools      rhel8 [d]  common [d]                Common tools and dependencies for container runtimes
freeradius           3.0 [d]    server [d]                High-performance and highly configurable free RADIUS
                                                           server
gimp                 2.8 [d]    common [d], devel         gimp module
go-toolset           rhel8 [d]  common [d]                Go
httpd                2.4 [d]    common [d], devel, minima Apache HTTP Server
                                l
idm                  DL1        common [d], adtrust, clie The Red Hat Enterprise Linux Identity Management sys
                                nt, dns, server           tem module
idm                  client [d] common [d]                RHEL IdM long term support client module
inkscape             0.92.3 [d] common [d]                Vector-based drawing program using SVG
javapackages-runtime 201801 [d] common [d]                Basic runtime utilities to support Java applications
libselinux-python    2.8        common                    Python 2 bindings for libselinux
llvm-toolset         rhel8 [d]  common [d]                LLVM
mailman              2.1 [d]    common [d]                Electronic mail discussion and e-newsletter lists ma
                                                          naging software
mariadb              10.3 [d]   client, server [d], galer MariaDB Module
                                a
maven                3.5 [d]    common [d]                Java project management and project comprehension to
                                                          ol
mercurial            4.8 [d]    common [d]                Mercurial -- a distributed SCM
mod_auth_openidc     2.3                                  Apache module suporting OpenID Connect authenticatio
                                                          n
mysql                8.0 [d]    client, server [d]        MySQL Module
nginx                1.14 [d]   common [d]                nginx webserver
nodejs               10 [d]     common [d], development,  Javascript runtime
                                minimal, s2i
parfait              0.5        common                    Parfait Module
perl                 5.24       common [d], minimal       Practical Extraction and Report Language
perl                 5.26 [d]   common [d], minimal       Practical Extraction and Report Language
perl-App-cpanminus   1.7044 [d] common [d]                Get, unpack, build and install CPAN modules
perl-DBD-MySQL       4.046 [d]  common [d]                A MySQL interface for Perl
perl-DBD-Pg          3.7 [d]    common [d]                A PostgreSQL interface for Perl
perl-DBD-SQLite      1.58 [d]   common [d]                SQLite DBI driver
perl-DBI             1.641 [d]  common [d]                A database access API for Perl
perl-FCGI            0.78 [d]   common [d]                FastCGI Perl bindings
perl-YAML            1.24 [d]   common [d]                Perl parser for YAML
php                  7.2 [d]    common [d], devel, minima PHP scripting language
                                l
pki-core             10.6                                 PKI Core
pki-deps             10.6                                 PKI Dependencies
postgresql           10 [d]     client, server [d]        PostgreSQL server and client module
postgresql           9.6        client, server [d]        PostgreSQL server and client module
python27             2.7 [d]    common [d]                Python programming language, version 2.7
python36             3.6 [d]    common [d], build         Python programming language, version 3.6
redis                5 [d]      common [d]                Redis persistent key-value database
rhn-tools            1.0 [d]    common [d]                Red Hat Satellite 5 tools for RHEL
ruby                 2.5 [d]    common [d]                An interpreter of object-oriented scripting language
rust-toolset         rhel8 [d]  common [d]                Rust
satellite-5-client   1.0 [d][e] common [d], gui           Red Hat Satellite 5 client packages
scala                2.10 [d]   common [d]                A hybrid functional/object-oriented language for the
                                                           JVM
squid                4 [d]      common [d]                Squid - Optimising Web Delivery
subversion           1.10 [d]   common [d], server        Apache Subversion
swig                 3.0 [d]    common [d], complete      Connects C/C++/Objective C to some high-level progra
                                                          mming languages
varnish              6 [d]      common [d]                Varnish HTTP cache
virt                 rhel [d]   common [d]                Virtualization module

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled