LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RH9 Rpms' uninstall to tgz install... (glib) (https://www.linuxquestions.org/questions/linux-software-2/rh9-rpms-uninstall-to-tgz-install-glib-108032/)

bkeating 10-24-2003 11:58 AM

RH9 Rpms' uninstall to tgz install... (glib)
 
Im having a problem with glib on rh9.

I'd like to install the most recent vrsion of glib (source) and would like to remove the older version, which came with rh9. I know that the rh9 installed' glib is rpm-based but im not sure where to go and what to type to remove it.

I need to remove it because pkg_config keeps finding the older version, rather the new one (it must not of installed over the older version)

So could someone help me out on where to go in the rpm db and what to type to remove the old glib package? Im having one hell of a time trying to figure this out.

wapcaplet 10-24-2003 01:49 PM

Have you already installed the new glib? If your existing one is installed via rpm, it may be tricky trying to remove it and still keep the necessary dependencies intact.

Run 'rpm -qa | grep glib' in a terminal window to see a list of all installed rpms with 'glib' in their name. You can remove an rpm with 'rpm -e glib' and the like, but that'll probably complain about all the things that depend on glib.

If you can get ahold of an rpm for the glib version you want, you can use the rpm upgrade command to upgrade your existing glib. After downloading the rpm for the new version, open up a terminal window and type:

rpm -Uvh glib-new-version.rpm
or
rpmu -Uvh glib-new-version.rpm

However, it's very likely that there are a lot of dependencies that will need to be resolved before the command will actually work. It'll probably give you a list of "xyz is needed by abc" messages. Unless Redhat has officially made the RPMs available so that you can do an upgrade using one of the various graphical RPM interfaces, it could be nasty. You may be better off trying to pin down why pkg-config is seeing the old one.

Also, if you haven't tried it already, check out the program checkinstall. It can build RPMs from source, which you may be able to use for the upgrade process described above. Personally, I'd just suggest finding everything on rpmfind.net, though.

lupin_the_3rd 10-25-2003 12:18 AM

You should just update the older glib by

rpm -Uvh glib

It just freshens the packages for newer files...

I'm pretty sure you could get through apt from the fedora repository but you're going to have to upgrade the dependencies as well as has already been stated here


All times are GMT -5. The time now is 01:13 AM.