Right after doing that, it could be useful to repeat the gt5 or df -h command to see how much disk space we've recovered. Clean up YUM cache The next thing we should do is to cleanup our YUM cache with the following command: Shell yum clean all 1 yum clean all Unfortunately, the...
The simple command to cleanup yum caches: yum clean all Note that the above command will not remove everything related toyum. For instance, metadata fordisabledrepositories will not be affected. You may want to free up space taken by orphaned data from disabled or removed repositories: rm-rf/...
Step 4: Once you are finished with a particular file type, you can also free up much more space on the system using the "Clean Up System Files" option available under Disk cleanup, which gets rid of the unwanted system files as well. Step 5:Once again, select all the types of files ...
2、清理缓存 [root@server yum.repos.d]#yum clean all 已加载插件:fastestmirror, langpacks 正在清理软件源: base extras mariadb updates Cleaning up list of fastest mirrors Other repos take up 13 M of disk space (use --verbose for details) [root@server yum.repos.d]# 3、更新缓存 [root@serv...
DISK_INFO="\033[0;33m${diskused}\033[0m of \033[1;34m${disktotal}\033[0m disk space used (\033[0;33m${diskusedper}\033[0m)" # 获取CPU信息:cpu型号、核心数、逻辑数、 cpu=$(awk -F':' '/^model name/ {print $2}' /proc/cpuinfo | uniq | sed -e 's/^[ \t]*//')...
[root@study2 yum.repos.d]# yum clean all 已加载插件:fastestmirror 正在清理软件源: base Cleaning up list of fastest mirrors Other repos take up 84 M of disk space (use --verbose for details) [root@study2 yum.repos.d]# yum -y install httpd ...
Step4【本地光盘挂载】:mount *.repo yum_bkup步骤3:创建本地yum源配置文件Step5【创建本地yum源配置文件】:vim centos7.repo [centos7] name=centos7 baseurl=file:///mnt/cdrom gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7...
清除缓存原来的生成新的缓存并列出当前系统中已配置和启用的Yum仓库(repositories)及其状态 [root@cloud ~]# yum clean all 已加载插件:fastestmirror, langpacks 正在清理软件源: centos Cleaning up list of fastest mirrors Other repos take up 1.0 G of disk space (use --verbose for details) ...
yum clean all yum makecache fast yum -y update 二、安装docker 1、安装docker 可以参考官网文档 https://docs.docker.com/engine/install/centos/ 卸载旧版本 代码语言:javascript 复制 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \...
cron权限设定: 用户黑名单:/etc/cron.deny 用户白名单:/etc/cron.allow ??? 系统中的临时文件: 控制系统中的临时文件: systemd-tmpfiles – --create /usr/lib/tmpfiles.d/test.conf – --clean /usr/lib/tmpfiles.d/test.conf ###第四章:管理系统中的简单分区和文件系统1.添加文件系统空间 2.添加sw...