Apparently, when doing "yum update
", and it fails miserably,
you can end up with duplicate versions of packages in the RPM database.
This seems harmless, but is annoying. yum provides a tool to check for
this, but I was not able to find anything that would automatically
repair it. So here's a little tip:
$ yum check duplicates | awk '/is a duplicate/ {print $6}' > /tmp/DUPES
$ yum remove `cat /tmp/DUPES`
Of course, before you remove the dupes, make sure to examine the tmp file (/tmp/DUPES) and make sure it looks ok.
Update:
There seems to be a command to do this, package-cleanup
has an option for it. E.g.
$ package-cleanup --cleandupes
However, testing this command on a second box having the same problem
gave bad results, it seems to have uninstalled the "real" packages too.
分享到:
相关推荐
《Informatica案例研究:RemoveDuplicates》 在信息技术领域,数据清洗和去重是至关重要的步骤,尤其是在大数据处理中。Informatica作为一个强大的数据集成工具,提供了RemoveDuplicates功能,以确保数据的准确性和...
"Delete Duplicates for Outlook Express 5.8.1" 是一款专为Outlook Express设计的软件,用于帮助用户查找并删除邮箱中的重复邮件。Outlook Express是微软在早期推出的一款电子邮件客户端,它允许用户接收、发送电子...
"LeetCode Remove Duplicates from Sorted Array解决方案" 本文将详细介绍 LeetCode 中的 Remove Duplicates from Sorted Array 解决方案,包括问题描述、解决方案和关键知识点。 问题描述: 给定一个排序的数组 ...
Delete Duplicates for Outlook Express and Windows Mail v3.8.0.1注册版程序
在这个特定的案例中,我们有一个名为"removeduplicates.zip"的压缩包,它包含了一个名为"removeduplicates.cpp"的源代码文件,该文件展示了一种在整数数组中移除重复元素的算法。这个例子使用了C++标准库中的`std::...
"remove_duplicates"功能专注于解决一个特定的问题:从数组中去除重复的条目。这个功能对于那些需要保持数组元素唯一性的场景非常有用,比如在数据存储、数据分析或者前端开发中避免显示重复的数据。 在JavaScript...
键值对文档去重,键重复部分挑出,以及值为英文时首字母大写。如果想要排序可以先把内容放到excel中排序,中间不能有多余的回车,结尾回车一个。
Remove_duplicates.cpp
26.Remove_Duplicates_from_Sorted_Array删除有序数组中的重复项【LeetCode单题讲解系列
“Delete Duplicates for Outlook Express and Windows Mail v3.8.0.1”是一款专门针对Outlook Express和Windows Mail设计的去重工具。该软件的主要功能在于帮助用户清理邮箱中重复的邮件,从而有效提高邮箱空间的...
python python_leetcode题解之083_Remove_Duplicates_from_Sorted_List
c c语言_leetcode 0026_remove_duplicates_from_sorted_array.zip
java入门 java_leetcode题解之026_Remove_Duplicates_from_Sorted_Array
javascript js_leetcode题解之83-remove-duplicates-from-sorted-list.js
js js_leetcode题解之26-remove-duplicates-from-sorted-array.js
c c语言_leetcode题解之0083_remove_duplicates_from_sorted_list.zip
python python_leetcode题解之080_Remove_Duplicates_from_Sorted_Array_II
c语言入门 C语言_leetcode题解之26-remove-duplicates-from-sorted-array.c