首页
学习
活动
专区
工具
TVP
发布

运维经验分享

专栏作者
742
文章
2358862
阅读量
72
订阅数
CentOS开机时出现GRUB引导错误怎么办
CentOS在开机的时候,突然出现了GRUB引导错误,导致系统进入不了,遇到这种情况很多人就束手无策了,其实这类的问题不难解决,请按照以下步骤进行操作即可。
拓荒者
2019-09-05
3.4K0
使用CentOS安装光盘进行开机GRUB引导修复
输入:chroot /mnt/sysimage ,回车    #将当前目录切换到原来系统的根目录
拓荒者
2019-09-05
4.4K0
Linux package-cleanup的使用
 发表于 2013-07-18 |  更新于: 2018-02-16 |  分类于 Linux , CentOS , Fedora |  |  阅读次数: 408
拓荒者
2019-08-19
8510
package-cleanup
为什么这么说呢? 卸载deb包时候,可以连不要的依赖关系包一起删除,但是多如牛毛的rpm却不可以。 这个真的是rpm的痛! yum仅仅能在线安装rpm,但是只能在安装的时候解决依赖关系,卸载的时候却不行。 不过,有个工具可以专门解决rpm依赖关系:package-cleanup Options:   -h, --help           show this help message and exit   --problems           List dependency problems in the local RPM database   --leaves             List leaf nodes in the local RPM database   --all                When listing leaf nodes also list leaf nodes that are                        not libraries   --orphans            List installed packages which are not available from                        currenly configured repositories.   -q, --quiet          Print out nothing unecessary   -y                   Agree to anything asked   -d, --dupes          Scan for duplicates in your rpmdb   --cleandupes         Scan for duplicates in your rpmdb and cleans out the                        older versions   --oldkernels         Remove old kernel and kernel-devel packages   --count=KERNELCOUNT  Number of kernel packages to keep on the system                        (default 2)   --keepdevel          Do not remove kernel-devel packages when removing                        kernels   -c CONFFILE          config file location Please specify either --problems, --leaves, --orphans or --oldkernels 例如,你不小心安装了gnome-games,然后马上把这个卸载。你会发现只卸载了gnome-games,那些“包庇”gnome-games的“同党”还留在你的硬盘里! 这时,你输入:package-cleanup --leaves 就会列出一系列的关系包,都是在rpm数据库里没有被依赖的依赖包。 把这些包统统remove,你的硬盘从此干净了。
拓荒者
2019-08-19
5550
Linux package-cleanup的使用
 发表于 2013-07-18 |  更新于: 2018-02-16 |  分类于 Linux , CentOS , Fedora |  |  阅读次数: 408
拓荒者
2019-08-19
4510
CentOS中基于不同版本安装重复包的解决方案
在更新 PHP 版本的时候,出现了NOKEY的错误提示后,暂时没有解决掉这个问题,于是就手动安装了php-mbstring...rpm  包的高版本,这样在接下来的错作中就出现了错误信息:The program package-cleanup is found in the yum-utils package. 什么是yum-utils: yum-utils are tools for manipulating repositories and extended package management. It is a collection of tools and programs for managing yum repositories, installing debug packages, source packages, extended information from repositories and administration.  yum-utils package includes: debuginfo-install - install debuginfo packages and their dependencies package-cleanup - manage package cleanup, duplicates, orphaned packages and outstanding dependency problems repo-graph - outputs a full package dependency list in dot format repo-rss - generates an RSS feed from one or more repositories repoclosure - reads metadata of repositories, checks dependencies and displays list of unresolved dependencies repodiff - takes two or more repositories, returns a list of added, removed or changed packages repomanage - manages a directory of rpm packages, returns a list of newest or oldest packages in a directory repoquery - query yum repositories and get additional information on the them reposync - synchronize a remote yum repository to a local directory using yum to retrieve packages repotrack - track packages and its dependencies and downloads them yum-builddep - installs missing dependencies to build a specified package yum-complete-transaction - finds incomplete or aborted yum transactions and attempts to complete them yum-installed - print a compact package list making use of comps groups yumdownloader - downloads packages from yum repositories including source RPMs 出现这句话说明清除程序包存在并在yum-utils套件包里找到了,看不出安装存在问题。存在不兼容问题的话一般是用yum安装一些rpm packages时候会出现missing dependency error,会有error提示的。 解决办法: yum install yum-utils yum-complete-transaction --cleanup-only 清除可能存在的重复包 package-cleanup --dupes 清除可能存在的损坏包 package-cleanup --problems 清除重复包的老版本: package-cleanup --cleandupes package-cleanup 帮助信息如下: options: -h, --help show th
拓荒者
2019-08-19
1.3K0
升级CentOS 7.4内核版本的三种方案
在实验环境下,已安装了最新的CentOS 7.4操作系统,现在需要升级内核版本。
拓荒者
2019-06-28
2.7K0
centos7 选定默认启动内核,及删除无用内核
(adsbygoogle = window.adsbygoogle || []).push({});
拓荒者
2019-05-31
1.1K0
Linux-CentOS7 安装VMware Workstation
      衔接地址 http://www.vmware.com/products/workstation/workstation-evaluation ,下载Linux版本的VMware。我下载是:VMware-Workstation-Full-12.0.0-2985596.x86_64.bundle。
拓荒者
2019-05-23
5.3K0
centos7 选定默认启动内核,及删除无用内核
(adsbygoogle = window.adsbygoogle || []).push({});
拓荒者
2019-03-11
1.1K0
用supermin制作centos 7 docker 基础镜像
supermin5 一个工具,运行命令man supermin可以查看关于这个工具的基本信息。
拓荒者
2019-03-11
1.3K0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档