LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2009, 01:11 AM   #1
wagmare
Member
 
Registered: Jan 2009
Posts: 62

Rep: Reputation: 15
Smile how to update gtk version


hi friends,
my current gtk is gtk+-1.2.10-57.fc7
and i want to update to 2... version how can i do?
i try yum update gtk+, gtk, gtk+- but all says No Packages marked for Update/Obsoletion ... please suggest me thing to update my gtk version ..
 
Old 02-09-2009, 01:31 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,069

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Quote:
Originally Posted by wagmare View Post
hi friends,
my current gtk is gtk+-1.2.10-57.fc7
and i want to update to 2... version how can i do?
i try yum update gtk+, gtk, gtk+- but all says No Packages marked for Update/Obsoletion ... please suggest me thing to update my gtk version ..
I can't help with the Fedora part.

But updating gtk+ from 1.x to 2.x is not that trivial. They are essentially different libraries, which means that your gtk+-1.x programs will NOT work with gtk+2.x at all. Let us know what exactly are you trying to do.
 
Old 02-09-2009, 01:51 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by i92guboj View Post
I can't help with the Fedora part.

But updating gtk+ from 1.x to 2.x is not that trivial. They are essentially different libraries, which means that your gtk+-1.x programs will NOT work with gtk+2.x at all. Let us know what exactly are you trying to do.
I'm a bit confused by this: both 1.2 and 2.x exist in Debian's testing (Lenny for the moment) repos. I have both installed and have no difficulty running any of my gtk apps.

I don't know how Fedora works but in Debian you can "pin" given packages from another flavour (in my case unstable) if you need a more up to date version. I don't know if Fedora supports pinning but that would be a solution if it does.
cheers,
jdk
 
Old 02-09-2009, 02:02 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,069

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Quote:
Originally Posted by jdkaye View Post
I'm a bit confused by this: both 1.2 and 2.x exist in Debian's testing (Lenny for the moment) repos. I have both installed and have no difficulty running any of my gtk apps.
Yes. I didn't mean to imply that.

You can have both versions installed without a problem. My main concern is WHY is he trying to upgrade gtk+ itself. I mean: if he's installing a program which needs gtk+-2.x, then it will be pushed as a dependency. Upgrading gtk to 2.x will do no good at all if he's using gtk+-1.x based apps like xmms.

That's also why the term "upgrading" isn't really correct, which is what I was trying to illustrate. Gtk1 and Gtk2 are two different things. They can co-exist, but you can't use a program that has been compiled against gtk+-1.x if you only have gtk+-2.x.

Quote:
I don't know how Fedora works but in Debian you can "pin" given packages from another flavour (in my case unstable) if you need a more up to date version. I don't know if Fedora supports pinning but that would be a solution if it does.
cheers,
jdk
I don't know if it's quite the same thing because I am not a fedora user. But in Gentoo we handle this with "slots".
 
Old 02-09-2009, 02:08 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by i92guboj View Post
I don't know if it's quite the same thing because I am not a fedora user. But in Gentoo we handle this with "slots".
Thanks. So if Fedora has something like slots or pinning that might be the way to go. I could also be that Fedora has both gtk1.2 and 2.x since they are independent and the OP would then not update (as you correctly point out) but install gtk2.0. That shouldn't cause him/her any problems.
Cheers,
jdk

Last edited by jdkaye; 02-09-2009 at 02:09 AM.
 
Old 02-09-2009, 02:13 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,474

Rep: Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229
'gtk2' is already installed.

And that would be something like gtk2-2.10.13-1.fc7 .

To know, what you have installed, please do the
command 'rpm -qa | grep gtk'

To get a complete package list in /home/wagmare/ :
'rpm -qa | sort > my_packages.txt'

Anyway, gtk, be it "gtk1" or gtk2 : they are difficult
to update, because 200..600 other applications depends
on those, and must be updated too.
Fedora 7 was obsoleted and thus unsupported 7 months
ago > > no packages available, update.

Original packages
http://download.fedora.redhat.com/pu...386/os/Fedora/
http://download.fedora.redhat.com/pu...386/os/Fedora/

'Redhat' Fedora > > the long term supported OS is 'Redhat' CentOS.
....

Last edited by knudfl; 02-09-2009 at 06:49 AM.
 
Old 02-10-2009, 12:45 AM   #7
wagmare
Member
 
Registered: Jan 2009
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
I can't help with the Fedora part.

But updating gtk+ from 1.x to 2.x is not that trivial. They are essentially different libraries, which means that your gtk+-1.x programs will NOT work with gtk+2.x at all. Let us know what exactly are you trying to do.


i want to make a gtk programmed application which has --libs gtk+-2.0


but now i got my error ... i use rpm -qa | grep gtk+ instead of rpm -qa | grep gtk which results only gtk+-1.2.10-57.fc7
now i update my gtk2 to gtk2-2.10.14-4.fc7 thanks for all replied

and my current is gtk+-1.2.10 so when i make its giving error .. i done all operation in a seperate system having gtk >= 2 .. so i try to update gtk version

Last edited by wagmare; 02-10-2009 at 12:58 AM.
 
Old 02-10-2009, 03:34 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,069

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
I see. So you need to install the package for gtk2, which should be installable alongside the gtk1 one without problems. Assuming that there are packages for fedora7 (<-- I said I know nothing about fedora, so that phrase is probably a funny one).

Note that you might need to install additional header or source packages (gtk+-2-dev or devel or whatever it's called in fedora), since the regular packages are not shipped with the headers that you will need to compile additional software against that package.
 
Old 02-10-2009, 03:44 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,474

Rep: Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229Reputation: 3229
The Fedora package name is 'gtk2-devel'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i tell which gtk version i have? carlwenrich Linux - Newbie 3 09-08-2006 11:41 PM
removing old version of gtk Matt.Ramos Linux - Newbie 1 07-24-2005 01:21 AM
How to remove old version of GTK? JakeMH Linux - Software 7 05-22-2005 09:49 AM
GTK version troubles gokul Linux - Newbie 2 11-30-2004 11:56 PM
GTK+ outdated version? Netrack Linux - General 4 07-09-2003 01:37 PM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration