pkg-config and glib: Uninstalling Old and Installing New
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
pkg-config and glib: Uninstalling Old and Installing New
Hi,
I'm installing the latest GTK+ version and it's dependencies. I have earlier version of the dependencies and they are conflicting with the new ones when I try to install them (apparent from messages I get during configuration and installation).
These earlier versions would have to be from my Red Hat 9.0 distribution, so I don't know much about them. I could find the directories where they exists, but I'd like to be sure to completely clean them off. There must be a cleaner way of removing them.
How do I locate a particular component (like pkg-config or glib) and completely clean it off so that I can install the new version?
"How do I locate a particular component (like pkg-config or glib) and completely clean it off so that I can install the new version?"
The location of all of the components is stored in the rpm data base. So you completely clean the package by removing the package using rpm:
rpm -e glib
Since you know you will have dependency problems you first test the removal:
rpm --test -e glib
That gives you the dependency errors. Then you test removing the dependencies. Eventually you end up with a tree of everything that needs to be removed in order to remove glib. See:
man rpm
Thanks - Since I'm removing glib to install the newest version, do I really need to worry about the dependency issues?
Along the same lines, would I need to remake all the packages that use the older glib after the new one is installed? There are quite a few and nearly all the dependencies came with my distribution, but I do have the source CD's in addition to the install CD's.
If you're trying to remove gtk-1.2 to install something like 2.6 then don't bother because they are totally different libraries that can happily co exist and you don't need to remove 1.2 before installing a 2.x version.
Well, actually the problem I'm trying to get around is with glib. I can install it just fine, but then when I go to atk (part of gtk) and install it, the atk config haults because it sees that I have glib 2.8.3 and 2.0. The message I get says to remove the older glib (or edit a resource file, which I didn't want to do).
The whole thing started mainly because I simply need gtkcombobox.h and gtkcelllayout.h so that the gtk-meta process can build gtk. My version of glib is old enough to not have these two header files.
I'm open to any suggestions, but I'm trying to keep things as clean and tidy as possible if it doesn't cause too much extra work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.