LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Weird duplicate with yum (https://www.linuxquestions.org/questions/linux-server-73/weird-duplicate-with-yum-4175592132/)

jusavard 10-24-2016 02:40 PM

Weird duplicate with yum
 
Hi,
So my gitlab update went wrong. I did a "yum history undo". However I still see this :

Code:

[root@server1 ~]# yum list | grep gitlab
gitlab-ce.x86_64                        7.12.0~omnibus-1            @gitlab_gitlab-ce
gitlab-ce.x86_64                        8.13.0-ce.0.el6            gitlab_gitlab-ce

I don't want to keep 8.13.0-ce.0.el6 and I'm trying to remove it however it seems to be there and not at the same time...
See :

Code:

[root@server1 ~]# rpm -qa | grep -i gitl
gitlab-ce-7.12.0~omnibus-1.x86_64

[root@server1 ~]# yum-complete-transaction
Loaded plugins: product-id
gitlab_gitlab-ce/signature                                                                              |  836 B    00:00
gitlab_gitlab-ce/signature                                                                              | 1.0 kB    00:00 ...
gitlab_gitlab-ce-source/signature                                                                      |  836 B    00:00
gitlab_gitlab-ce-source/signature                                                                      |  951 B    00:00 ...
No unfinished transactions left.

[root@server1 ~]# package-cleanup --dupes
Loaded plugins: product-id

[root@server1 ~]# yum erase gitlab-ce.86_64.8.13.0-ce.0.el6
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Remove Process
No Match for argument: gitlab-ce.86_64.8.13.0-ce.0.el6
No Packages marked for removal

[root@server1 ~]# yum erase gitlab-ce-8.13.0-ce.0.el6.x86_64
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Remove Process
No Match for argument: gitlab-ce-8.13.0-ce.0.el6.x86_64
Package(s) gitlab-ce-8.13.0-ce.0.el6.x86_64 available, but not installed.
No Packages marked for removal

And trying to simply remove it will remove gitlab 7.12 not 8.13

Code:

[root@server1 ~]# yum remove gitlab-ce
Loaded plugins: product-id, security, subscription-manager
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:7.12.0~omnibus-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
 Package                    Arch                    Version                          Repository                          Size
===============================================================================================================================
Removing:
 gitlab-ce                  x86_64                  7.12.0~omnibus-1                  @gitlab_gitlab-ce                  932 M

Transaction Summary
===============================================================================================================================
Remove        1 Package(s)

Installed size: 932 M
Is this ok [y/N]: n
Exiting on user Command

There must be a way to clean it in yum ...

John VV 10-24-2016 03:26 PM

reread what you posted

you asked yum to list ALL files in the repos for that
then you used rpm to get WHAT WAS INSTALLED


All times are GMT -5. The time now is 10:10 PM.