LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to remove installed package? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-installed-package-246792/)

dwarf007 10-24-2004 01:51 PM

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....

phil.d.g 10-24-2004 02:04 PM

try
Code:

rpm -Uivh samba-common-3.0.7-2.FC2.i386.rpm

dwarf007 10-24-2004 07:47 PM

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......

dugas 10-24-2004 10:47 PM

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.

dwarf007 10-25-2004 04:33 AM

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.......

student04 10-25-2004 09:37 AM

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).


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