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.
分享到:
相关推荐
RemoveDuplicates for version 7.1
Delete Duplicates for Outlook Express
LeetCode Remove Duplicates from Sorted Array解决方案
Delete Duplicates for Outlook Express and Windows Mail v3.8.0.1注册版程序
demonstrates the algorithm to remove duplicates in an array of integers using vectors and unique.
键值对文档去重,键重复部分挑出,以及值为英文时首字母大写。如果想要排序可以先把内容放到excel中排序,中间不能有多余的回车,结尾回车一个。
Remove_duplicates.cpp
26.Remove_Duplicates_from_Sorted_Array删除有序数组中的重复项【LeetCode单题讲解系列
Delete Duplicates for Outlook Express and Windows Mail v3.8.0.1 测试注册码 若用过感觉好的话请购买正版软件。
删除重复项 从数组中删除重复条目的功能 使用npm install安装依赖项 使用gulp test运行gulp test
题目描述(中等难度) 给一个链表,如果一个数属于重复数字,就把这个数删除,一个都不留。 解法一 迭代 只需要两个指针,一个指针 pre 代表重复数字的前边的一个指针,另一个指针 cur 用来遍历链表。...
删除重复排序数组运行此脚本$ node index.js 所有输入... log ( "Length = " + removeDuplicates ( nums ) ) ;console . log ( "Modified nums = [" + nums + "]" ) ;console . log ( "------------------------------
在这段代码中,LinkedList类包含一个removeDuplicates方法,用于去除链表中的重复元素。我们使用一个HashSet来存储遍历过的元素,如果当前遍历到的元素已经在集合中,我们就删除该节点。printList方法用于打印链表中...
LinkedList-Javascript 如何在JS中实现链接列表。 为LinkedList添加了基本功能 推, 流行音乐, 转移, 换挡 撤销, 删除重复项, 删除特定 例子 var ll = newlinkedlist(); ll.push(3);... ll.sh
list去重并检查不包含重复数据 ${listnew} Remove Duplicates ${list} List Should Not Contain Duplicates ${listnew} 在log中会打印出来去掉了⼏个重复数据: 20201015 18:46:47.647 : INFO : 1 duplicate removed...
Python 重复数据处理(df.drop_duplicates方法)Python源码Python 重复数据处理(df.drop_duplicates方法)Python源码Python 重复数据处理(df.drop_duplicates方法)Python源码Python 重复数据处理(df.drop_...
实现了去除链表中重复元素的函数 removeDuplicates(),利用两层循环遍历链表,当发现重复元素时删除之。 在 main() 函数中,创建了一个包含重复元素的链表,然后调用 removeDuplicates() 函数去除重复元素,并打印...
Remove Duplicates from Sorted Array 2 Remove Duplicates from Sorted Array II 3 Search in Rotated Sorted Array 4 Search in Rotated Sorted Array II 5 Median of Two Sorted Arrays 递归实现find kth 6 ...
Duplicates from Sorted Array Easy #27 Remove Element Easy #35 Search Insert Position Easy #38 Count and Say Easy #53 Maximum Subarray Easy #66 Plus One Easy #70 Climbing Stairs Easy #83 Remove ...