LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-10-2012, 04:54 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
how to upgrade an installed binary 'package' to a later version with the source.


Hello, i am running Opensuse 12.1. I installed The Gimp 2.8rc and was very happy with it. I'm devoting to it and upgrading to the full stable release. I've removed the previous packages. I've compiled babl, gegl, and upgraded glib with the tumbleweed repo (i know mixing repos is not recommend, but i've done it before and can manage).
Opensuse 12.1 has GTK+ 2.24.7, and i need 2.24.10. Tumbleweed is also using this version so i am going to have to compile this later version of gtk from source too.

How does one go about upgrading a package installed from an rpm binary, to a later version from the source code.

(I'm fine for the compiling process, it's just going from binary to source that i'm lost on)
Do i have to remove the binaries first and then just to a normal source compile, or is there another method?

Thankyou
 
Old 05-11-2012, 12:37 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If installing from source on an rpm-based system, it would probably be best to remove the rpm before installing from source. The rpm writes files to certain locations as directed by the .spec file which was used to make the .rpm. The source package may not install to the same locations. That would leave stray code lying about that may cause some system confusion.

Further, the rpm database will not reflect the installation from source. Any queries in re gimp would return information on the last rpm that was installed, and not the source installation.

Or, you could learn how to make a binary rpm for yourself. It requires the source package and a .spec file which tells rpm what to do with the source. The resulting binary .rpm can be used to upgrade gimp in the usual manner via yast or zypper.

The hardest part of that route is learning to write a .spec file. You will find a lot of information on the web on that topic.
 
Old 05-12-2012, 07:00 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Once upon a time, there was a program called checkinstall that would create a very crude rpm from a binary (after make but before make-install). I used it for several years to generate rpm files so that I wouldn't have to worry about programs not managed by the the rpm package manager. Searching my misc. rpms folder, I see that the latest version of checkinstall on my hard drive is checkinstall-1.6.2.16-2mdv2011.0.x86_64.rpm. Although it's a Mandriva rpm, it apparently worked fine under whatever version of Fedora I was running at the time.
 
  


Reply



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
[SOLVED] Package requires earlier version of an installed package Doug Hutcheson Linux - Software 3 12-30-2010 09:55 PM
[SOLVED] slackpkg upgrade-all: highlight a package, not showing "currently installed version" GrapefruiTgirl Slackware 17 04-05-2010 12:32 PM
binary kernel package == source package ? narc Ubuntu 4 07-29-2007 09:28 AM
Installed a package via rpm YaST, now overwrite-upgrade to new with source? hgb SUSE / openSUSE 3 11-14-2005 01:13 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

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
Open Source Consulting | Domain Registration