LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to uninstall the older versions of GLIB? (https://www.linuxquestions.org/questions/linux-software-2/how-to-uninstall-the-older-versions-of-glib-329481/)

gobi_dgm 06-02-2005 04:49 AM

how to uninstall the older versions of GLIB?
 
hi
i have to update the glib to 2.0.0. how to uninstall my older version of Glib? is it possible to use two versions of glib at the same time? pl help me

thanks in advance

__J 06-02-2005 05:04 AM

assuming you are using red hat ( since that's what's in you're profile):

rpm -e glib-2 ( or may be named glib2 or something similar, it's NOT named glibc ( some people get this one confused, do not remove glibc))

when you install your new one, reinstall it to the same place ( on RH it should be /usr) and make a package of your build and install it instead of "make install", or upgrading/removal in the future will be a pain. if you don't know how to make rpm's, look into rpmbuild or checkinstall.

gobi_dgm 06-02-2005 05:09 AM

how to findout the name of installed glib? ... can i use 'rpm -e' ,even if i have installed it using 'make install'..

__J 06-03-2005 05:05 AM

depends on what name you want, do you want the old glib that came with your install's name or the one you just installed?

you cannot do "rpm --xx" with anything you installed from source without making a rpm of the build. rpm keeps it own database, which is upgraded by rpm itself. it has no idea what you installed from source or where you installed it to. ( if you make rpm's of your builds, not only will it make it easier on you for removal/upgrade, it also upgrades the rpm database so it know's what you installed and where it is so the next time you attempt to install an rpm that needs glib-2.x, it know's that dependency is satisfied).

gobi_dgm 06-03-2005 05:57 AM

should i remove all the files related to glib to uninstall it? is this the only way?

__J 06-04-2005 05:22 AM

if you are removing the old one ( the one that came with the system) all you need to do is rpm -e <package name> and it will uninstall it ( you might have to pass the --force option to rpm, as alot of programs depend on glib).

Komakino 06-04-2005 06:43 AM

If the glib you currently use is 1.2 then just keep it on there and install glib-2.0 alongside. They are totally seperate libraries and do not interfere with each other.
So many times on here people give answers that make the job so much more difficult than it has to be.

__J 06-05-2005 02:05 AM

Quote:

Originally posted by __J
assuming you are using red hat ( since that's what's in you're profile):

rpm -e glib-2 ( or may be named glib2 or something similar, it's NOT named glibc ( some people get this one confused, do not remove glibc))

does that make it look like it's more difficult than it has to be? obviously since I specified glib-2.x, I'm not referring to glib-1.2

kira 06-05-2005 08:39 AM

suppose the distro what you are running is redhat.
rpm -qa | grep glib
remove the feedback by rpm -qa with the command rpm -e
you must be ware of that if you removed older glib then any apps based on it will never be available for working.


All times are GMT -5. The time now is 07:03 AM.