LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-18-2018, 03:43 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post How can I remove duplicate packages?


Hello.
I'm using CentOS 7 x86_64 and when I want to install any app then it show me an error about duplicate packages.
Code:
# yum update
.
.
.
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
** Found 781 pre-existing rpmdb problem(s), 'yum check' output follows:
ModemManager-glib-1.6.10-1.el7.x86_64 is a duplicate with ModemManager-glib-1.1.0-8.git20130913.el7.x86_64
1:NetworkManager-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-1.0.6-27.el7.x86_64
1:NetworkManager-adsl-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-adsl-1.0.6-27.el7.x86_64
1:NetworkManager-glib-1.10.2-16.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '16.el7_5'): 1:NetworkManager-libnm-
1.0.6-27.el7.x86_64
1:NetworkManager-glib-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-glib-1.0.6-27.el7.x86_64
1:NetworkManager-libnm-1.10.2-16.el7_5.x86_64 has installed conflicts NetworkManager-glib < ('1', '1.10.2', '16.el7_5'): 1:NetworkManager-glib-1
.0.6-27.el7.x86_64
1:NetworkManager-libnm-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-libnm-1.0.6-27.el7.x86_64
1:NetworkManager-team-1.10.2-16.el7_5.x86_64 is a duplicate with 1:NetworkManager-team-1.0.6-27.el7.x86_64
PackageKit-command-not-found-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-command-not-found-1.0.7-5.el7.centos.x86_64
PackageKit-glib-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-glib-1.0.7-5.el7.centos.x86_64
PackageKit-gstreamer-plugin-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-gstreamer-plugin-1.0.7-5.el7.centos.x86_64
abattis-cantarell-fonts-0.0.25-1.el7.noarch is a duplicate with abattis-cantarell-fonts-0.0.16-3.el7.noarch
abrt-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-2.1.11-36.el7.centos.x86_64
abrt-addon-ccpp-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-ccpp-2.1.11-36.el7.centos.x86_64
abrt-addon-kerneloops-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-kerneloops-2.1.11-36.el7.centos.x86_64
abrt-addon-pstoreoops-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-pstoreoops-2.1.11-36.el7.centos.x86_64
abrt-addon-python-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-python-2.1.11-36.el7.centos.x86_64
abrt-addon-vmcore-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-vmcore-2.1.11-36.el7.centos.x86_64
abrt-addon-xorg-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-xorg-2.1.11-36.el7.centos.x86_64
abrt-cli-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-cli-2.1.11-36.el7.centos.x86_64
abrt-console-notification-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-console-notification-2.1.11-36.el7.centos.x86_64
abrt-dbus-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-dbus-2.1.11-36.el7.centos.x86_64
abrt-libs-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-libs-2.1.11-36.el7.centos.x86_64
abrt-python-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-python-2.1.11-36.el7.centos.x86_64
.
.
.
I did below commands but problem exist:
Code:
# package-cleanup --dupes
# package-cleanup --cleandupes
But, problem exist.

Thank you.
 
Old 12-18-2018, 03:52 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
What software repositories have you got enabled ??

Because I strongly suspect you may well have more than just the default repo's enabled. Post the results of the following command using CODE tags;

Code:
yum repolist
 
Old 12-18-2018, 07:41 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by jsbjsb001 View Post
What software repositories have you got enabled ??

Because I strongly suspect you may well have more than just the default repo's enabled. Post the results of the following command using CODE tags;

Code:
yum repolist
It is:
Code:
# yum repolist 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.linux.org.tr
 * epel: ftp.jaist.ac.jp
 * extras: mirror.scopesky.iq
 * ius: syd.mirror.rackspace.com
 * updates: ftp.linux.org.tr
repo id                                           repo name                                                                               status
base/7/x86_64                                     CentOS-7 - Base                                                                         10,019
epel/x86_64                                       Extra Packages for Enterprise Linux 7 - x86_64                                          12,744
extras/7/x86_64                                   CentOS-7 - Extras                                                                          321
ius/x86_64                                        IUS Community Packages for Enterprise Linux 7 - x86_64                                     870
updates/7/x86_64                                  CentOS-7 - Updates                                                                         599
repolist: 24,553
 
Old 12-18-2018, 07:51 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Well, I can't see anything wrong in your repolist.

Did you do a clean install of CentOS when you installed it?
 
Old 12-18-2018, 09:27 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I was thinking before, that it maybe someone has done something to yum on your system, and given your thread here; did these issues start happening around the same time?

Because unless you have done an upgrade rather than a clean install of CentOS, then you're having the problem you are because someone has done something to either the rpm database and/or yum.

Beyond that, it should not be giving you those errors with a default install, without some kind of human intervention.

The only other possibility I can think of is a bug of some kind, or a package that's been installed - but this seems unlikely to me.

(I just noticed the thread of yours I've linked.)

Last edited by jsbjsb001; 12-18-2018 at 09:32 AM. Reason: typo
 
Old 12-18-2018, 05:58 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by hack3rcon View Post
I did below commands but problem exist:
Code:
# package-cleanup --dupes
# package-cleanup --cleandupes
But, problem exist.
I googled this (and I suggest you sharpen your internet search skills as well) and found more tips in https://stackoverflow.com/questions/...duplicate-with.

Last edited by berndbausch; 12-18-2018 at 05:59 PM.
 
1 members found this post helpful.
Old 12-18-2018, 11:06 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,364

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As you have at least 1 repo that is NOT part of the C7 setup, I HIGHLY recommend installing http://keihsler.com/redmine/projects...yum-priorities to protect your repos/pkgs.
 
Old 12-19-2018, 01:06 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by chrism01 View Post
As you have at least 1 repo that is NOT part of the C7 setup, I HIGHLY recommend installing http://keihsler.com/redmine/projects...yum-priorities to protect your repos/pkgs.
While yes, that repo (being the "IUS Community Packages for Enterprise Linux 7 - x86_64" repo) is not a default repo, I also have that same repo enabled on my CentOS installation, and it's never caused any problems without "yum priorities" being setup. If you don't use problematic software repo's, then it's not really likely that you are going to need "yum priorities" in the first place. I think you'll find it was developed in the event people do wish to use repo's that could overwrite base packages. Why not just avoid any potential problems to begin with? As "yum priorities" does not stop the user from adding unsafe repo's to begin with.

In all honesty, I think the OP's bigger problem is that they don't seem to be able to do proper troubleshooting and research, and seem to think that we should do those things for them. I think in all honesty the OP should consider just sticking with Windows, particularly since they always seem to be posting from it anyway, according to their "User Agent" anyway...
 
Old 12-21-2018, 12:21 AM   #9
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by jsbjsb001 View Post
I was thinking before, that it maybe someone has done something to yum on your system, and given your thread here; did these issues start happening around the same time?

Because unless you have done an upgrade rather than a clean install of CentOS, then you're having the problem you are because someone has done something to either the rpm database and/or yum.

Beyond that, it should not be giving you those errors with a default install, without some kind of human intervention.

The only other possibility I can think of is a bug of some kind, or a package that's been installed - but this seems unlikely to me.

(I just noticed the thread of yours I've linked.)
No, The other thread was for Ubuntu and not CetnOS.
 
Old 12-21-2018, 12:22 AM   #10
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by berndbausch View Post
I googled this (and I suggest you sharpen your internet search skills as well) and found more tips in https://stackoverflow.com/questions/...duplicate-with.
I did "yum-complete-transaction":
Code:
$ sudo yum-complete-transaction
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.scopesky.iq
 * epel: mirrors.aliyun.com
 * extras: ftp.linux.org.tr
 * ius: syd.mirror.rackspace.com
 * updates: mirror.rackdc.com
No unfinished transactions left.
But, problem exist.
 
Old 12-21-2018, 12:28 AM   #11
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by chrism01 View Post
As you have at least 1 repo that is NOT part of the C7 setup, I HIGHLY recommend installing http://keihsler.com/redmine/projects...yum-priorities to protect your repos/pkgs.
I installed "yum-priorities" and added "priority=10" to each sections but when I enter "yum update" but I got duplicate error.
 
Old 12-21-2018, 12:32 AM   #12
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hack3rcon View Post
No, The other thread was for Ubuntu and not CetnOS.
Yes, but you have missed the point of what I was saying there. You are still not providing proper information. I asked you before if you have done a clean install or not? You have not even answered that, and as usual, give one line responses that tell us next to nothing, if anything at all.

At this point, I'm done trying to help you. Good luck.
 
Old 12-21-2018, 12:48 AM   #13
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by hack3rcon View Post
I did "yum-complete-transaction":
Code:
$ sudo yum-complete-transaction
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.scopesky.iq
 * epel: mirrors.aliyun.com
 * extras: ftp.linux.org.tr
 * ius: syd.mirror.rackspace.com
 * updates: mirror.rackdc.com
No unfinished transactions left.
But, problem exist.
This is not the only suggestion in the Stackoverflow thread. And this thread is not the only search result.

Last edited by berndbausch; 12-21-2018 at 01:01 AM.
 
Old 12-21-2018, 01:16 AM   #14
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by jsbjsb001 View Post
Yes, but you have missed the point of what I was saying there. You are still not providing proper information. I asked you before if you have done a clean install or not? You have not even answered that, and as usual, give one line responses that tell us next to nothing, if anything at all.

At this point, I'm done trying to help you. Good luck.
It just a normal install.

Last edited by hack3rcon; 12-21-2018 at 01:24 AM.
 
Old 12-21-2018, 03:04 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
Quote:
Originally Posted by hack3rcon View Post
It just a normal install.
that does not mean anything.
But anyway you can try to remove one repo (one by one) and check if that solves this duplicate package issue. You could be at least able to find the conflicting repo(s).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Stale/duplicate packages in 14.1 patches/packages/ GazL Slackware 3 06-17-2015 09:06 AM
Installation of packages in RHEL-5.3 using X windows menu Add/Remove packages akluthra Linux - Newbie 2 09-21-2010 05:34 AM
Remove a package and all packages it depends on without breaking other packages? macroron Fedora 2 01-31-2010 05:49 PM
does tar or bzip2 squash duplicate or near-duplicate files? garydale Linux - Software 6 11-19-2009 04:43 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration