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 |
try
Code:
rpm -Uivh samba-common-3.0.7-2.FC2.i386.rpm |
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 Thank Yoou...... |
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. |
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 |
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 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. |