- 根据经验,选择安装包时应该按最小化原则,即不需要的或者不确定是否需要的就不安装,这样可以最大程度上确保系统安全。
- 如果安装过程落了部分包组或者其他伙伴安装时没选,再安装后可以按如下方式补上安装时未安装的包组:
yum groupinstall "Compatibility libraries" "Base" "Development tools" yum groupinstall "debugging Tools" "Dial-up Networking Support"
可以通过yum groupinfo 包组查看具体安装的组件。
[root@192168088101_vsftp_server ~]# yum groupinfo "Development tools"
Group: Compatibility Libraries
Group-Id: compat-libraries
Description: Compatibility libraries for applications built on previous versions of CentOS Linux.
Mandatory Packages:
compat-db47
compat-exiv2-023
compat-glibc
compat-libcap1
compat-libf2c-34
compat-libgfortran-41
compat-libtiff3
compat-openldap
libpng12
openssl098e
- 下面安装7.6后登陆系统的时候yum grouplist查看选包的情况
[root@192168088101_vsftp_server ~]# yum grouplist 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
可以看到除了我们选择的外,系统还是默认安装了一些额外的软件包组。
注意:
不要使用yum的删除功能删除软件,会删除相关依赖,导致意外问题。
-
安装系统补装工具命令
安装系统后还会有一些基本的工具没装,这时可以根据需求yum来安装下,啥时用啥时装也可。例如:yum install tree nmap sysstat lrzsz dos2unix -y
- 如果需要更新补丁则执行
yum update