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 |
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. |
how to findout the name of installed glib? ... can i use 'rpm -e' ,even if i have installed it using 'make install'..
|
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). |
should i remove all the files related to glib to uninstall it? is this the only way?
|
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).
|
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. |
Quote:
|
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. |