Can someone in the list guide me how do I remove an RPM file which is installed 2 times.
Following are the error:
[root@Gateway Samba64-23c]# rpm -e samba-common
error: "samba-common" specifies multiple packages
and rpm -qa |grep samba gives as below
samba-common-3.0.10-1.4E-9
samba-common-3.0.10-1.4E-9
It list 2 times the same package and I can not remove them. Could you please help me?
Thanks
Rajeev
On Wed, 18 Oct 2006, Rajeev R Veedu wrote:
Date: Wed, 18 Oct 2006 11:05:25 +0400 From: Rajeev R Veedu rajeev@cracknell.com Reply-To: CentOS mailing list centos@centos.org To: 'CentOS mailing list' centos@centos.org Subject: [CentOS] removing multiple packages
[removed redundant empty lines]
Can someone in the list guide me how do I remove an RPM file which is installed 2 times.
Following are the error:
[root@Gateway Samba64-23c]# rpm -e samba-common error: "samba-common" specifies multiple packages
and rpm -qa |grep samba gives as below samba-common-3.0.10-1.4E-9 samba-common-3.0.10-1.4E-9
First: what a more detailed listing gives you? Try (all on the same line):
rpm -qa --qf '%{name}_%{version}-%{release}.%{arch}\n' | grep samba
Thanks, Itay
Rajeev
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
First: what a more detailed listing gives you? Try (all on the same line):
rpm -qa --qf '%{name}_%{version}-%{release}.%{arch}\n' | grep samba
I'd also recommend creating a file called .rpmmacros in your home directory, and also for your root user if you're so inclined. the contents of the file should be
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
This makes the effect listed in the rpm command above permenant, and is quite helpful especially with multi-arch systems.
Can someone in the list guide me how do I remove an RPM file which is installed 2 times.
Following are the error:
[root@Gateway Samba64-23c]# rpm -e samba-common
error: "samba-common" specifies multiple packages
I assume that you will be reinstalling samba-common, and as such you do not need to worry about the dependencies that you will be breaking for the few brief moments until you reinstall samba-common. Therefore, I am adding the "--nodeps" flag.
rpm -e --nodeps --allmatches samba-common
HTH, Barry
Thanks Barray, it worked.
Rajeev
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Barry Brimer Sent: Wednesday, October 18, 2006 4:49 PM To: CentOS mailing list Subject: Re: [CentOS] removing multiple packages
Can someone in the list guide me how do I remove an RPM file which is installed 2 times.
Following are the error:
[root@Gateway Samba64-23c]# rpm -e samba-common
error: "samba-common" specifies multiple packages
I assume that you will be reinstalling samba-common, and as such you do not need to worry about the dependencies that you will be breaking for the few brief moments until you reinstall samba-common. Therefore, I am adding the "--nodeps" flag.
rpm -e --nodeps --allmatches samba-common
HTH, Barry _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos