LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2004, 01:51 PM   #1
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
how to remove installed package?


I now i am trying to intall a new package of samba, but previously i already installed older version. of it. When i reinstall samba with new rmp package it comes out below error. So what should i do now?

Code:
[root@localhost samba rpm]# rpm -ivh samba-common-3.0.7-2.FC2.i386.rpm
Preparing...                ########################################### [100%]
        file /etc/samba/smb.conf from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /lib/libnss_winbind.so.2 from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /lib/libnss_wins.so.2 from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /lib/security/pam_winbind.so from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/bin/ntlm_auth from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/bin/pdbedit from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/bin/profiles from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5        file /usr/bin/smbcquotas from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/bin/smbpasswd from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/bin/testparm from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5        file /usr/bin/testprns from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5        file /usr/bin/wbinfo from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/include/libsmbclient.h from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/lib/libsmbclient.a from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/lib/libsmbclient.so from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/lib/samba/charset/CP437.so from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/lib/samba/charset/CP850.so from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/sbin/winbindd from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/share/man/man5/smb.conf.5.gz from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
        file /usr/share/man/man8/smbpasswd.8.gz from install of samba-common-3.0.7-2.FC2 conflicts with file from package samba-common-3.0.3-5
Anyone knows please help, Thank You....
 
Old 10-24-2004, 02:04 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
try
Code:
rpm -Uivh samba-common-3.0.7-2.FC2.i386.rpm
 
Old 10-24-2004, 07:47 PM   #3
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
I got the following error, dependency.. I had tried all the rpm packages but also cant able to installed.

-rw------- 1 eugene eugene 14116065 Oct 25 01:30 samba-3.0.7-2.FC2.i386.rpm
-rw------- 1 eugene eugene 3529453 Oct 25 01:27 samba-client-3.0.7-2.FC2.i386.rpm
-rw------- 1 eugene eugene 4340281 Oct 25 01:26 samba-common-3.0.7-2.FC2.i386.rpm
-rw------- 1 eugene eugene 6876808 Oct 25 01:25 samba-swat-3.0.7-2.FC2.i386.rpm

Code:
[root@localhost samba rpm]# rpm -Uivh samba-common-3.0.7-2.FC2.i386.rpm
error: Failed dependencies:
        samba-common = 0:3.0.3 is needed by (installed) samba-client-3.0.3-5
        samba-common = 0:3.0.3 is needed by (installed) samba-3.0.3-5
[root@localhost samba rpm]# rpm -Uivh samba-3.0.7-2.FC2.i386.rpm
error: Failed dependencies:
        samba-common = 0:3.0.7 is needed by samba-3.0.7-2.FC2
[root@localhost samba rpm]# rpm -Uivh samba-client-3.0.7-2.FC2.i386.rpm
error: Failed dependencies:
        samba-common = 0:3.0.7 is needed by samba-client-3.0.7-2.FC2
Anyone knows, please help
Thank Yoou......
 
Old 10-24-2004, 10:47 PM   #4
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
To uninstall an rpm package use the -e swtich, such as
rpm -e packagename.rpm
To upgrade an rpm package (like in this case) you use
rpm -Uvh packagename.rpm (not -Uivh)
To see exactly what packages you have installed you do a query. The asterisk (*) symbol can be used as a wildcard. For example, to see what samba packages are installed you could do something like
rpm -qa samba*
Let me know if you need futher assistance.
 
Old 10-25-2004, 04:33 AM   #5
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
I only left 1 more samba rpm to remove, but now i should i remove the others 3 package below. This seems remove other packages which is important. So what should i do now?

Code:
[root@localhost samba rpm]# rpm -q samba-common-3.0.3-5
samba-common-3.0.3-5
[root@localhost samba rpm]# rpm -e samba-common-3.0.3-5
error: Failed dependencies:
        libsmbclient.so.0 is needed by (installed) gnome-vfs2-smb-2.6.0-8
        libsmbclient.so.0 is needed by (installed) kdebase-3.2.2-4
        samba-common >= 3.0.0 is needed by (installed) gnome-vfs2-smb-2.6.0-8
Anyone knows please help, thank you.......
 
Old 10-25-2004, 09:37 AM   #6
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
list ALL the packages that you need to install, INCLUDING the failed dependencies all in one command, otherwise it won't let you without forcing package installation (overriding the dependency check), but this is not recommended.

Code:
[root]# rpm -Uvh samba-3.0.7-2.FC2.i386.rpm samba-client-3.0.7-2.FC2.i386.rpm samba-common-3.0.7-2.FC2.i386.rpm samba-swat-3.0.7-2.FC2.i386.rpm
If there are any more dependency issues, download those additional rpms and add them to the same folder & add their names onto the one installation command.

As an added note: Why not use Fedora Core's visual installation package manager? Mandrake's automatically checks for dependencies and prompts you to install the additional required packages (it will automatically select them, and install them). Fedora core should have something similar (I've used it before, just can't remember what it looks like).

Last edited by student04; 10-25-2004 at 09:40 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove package maurovezz Mandriva 3 07-04-2005 07:57 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
remove package spidna Debian 3 02-26-2005 06:26 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:09 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