Unix Technical Forum

Upgrade from the source.

This is a discussion on Upgrade from the source. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi guys, I need to upgrade a software from the source-code to an earlyer version. How can I do ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:39 PM
Nuno Paquete
 
Posts: n/a
Default Upgrade from the source.

Hi guys,

I need to upgrade a software from the source-code to an earlyer version.
How can I do it?
I know how to install, the usual:
./configure
make
make install

But, how can I upgrade? Remove and install again?
I think this way I can miss my configurations.
Is there a "make upgrade" command?

Thanks in advance,

Nuno Paquete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:39 PM
Dario Sait
 
Posts: n/a
Default Re: Upgrade from the source.

Hi,

I think you should try to use a program called "checkinstall", with it
you can install programs with:
../configure
make
checkinstall

Checkinstall creates .tgz packages, so you can use upgradepkg and removepkg.

Usually there is nothing like "make upgrade".


Nuno Paquete wrote:
> I need to upgrade a software from the source-code to an earlyer version.
> How can I do it?
> I know how to install, the usual:
> ./configure
> make
> make install
>
> But, how can I upgrade? Remove and install again?
> I think this way I can miss my configurations.
> Is there a "make upgrade" command?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:39 PM
Mad-Eye Moody
 
Posts: n/a
Default Re: Upgrade from the source.

On Sat, 16 Oct 2004 18:50:05 +0100, Nuno Paquete wrote:

> Hi guys,
>
> I need to upgrade a software from the source-code to an earlyer version.
> How can I do it?
> I know how to install, the usual:
> ./configure
> make
> make install


nope. first install checkinstall, i think its on cd 3 or 4, or just
download it... cca 100kb afair.

../configure
make
checkinstall -S

it makes a package and installs it. so you can uninstall it. clean way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:40 PM
Mario Berger
 
Posts: n/a
Default Re: Upgrade from the source.

Nuno Paquete wrote:
> Hi guys,
>
> I need to upgrade a software from the source-code to an earlyer version.
> How can I do it?
> I know how to install, the usual:
> ./configure
> make
> make install
>
> But, how can I upgrade? Remove and install again?
> I think this way I can miss my configurations.
> Is there a "make upgrade" command?


You might be lucky if linuxpackages.net has the older version. They
sometimes keep them for older versions of slackware, they should work on
the newer ones too tho.

~Mik

--
....for in the files of /mnt/doom, another string was made...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:40 PM
Joost Kremers
 
Posts: n/a
Default Re: Upgrade from the source.

Nuno Paquete wrote:
> I need to upgrade a software from the source-code to an earlyer version.


that's called downgrading. ;-)

> How can I do it?
> I know how to install, the usual:
> ./configure
> make
> make install
>
> But, how can I upgrade? Remove and install again?
> I think this way I can miss my configurations.
> Is there a "make upgrade" command?


nope, there isn't. and in your case, using checkinstall may not be a good
option either, because checkinstall runs make install, which may overwrite
your config files. so, your best bet may be to do:

../configure --prefix=/usr
make
make install DESTDIR=/tmp/package

before you do the 'make install', check what it actually does with:

'make -n install DESTDIR=/tmp/package' | less

this should give you a fairly good idea whether the Makefile honours the
DESTDIR variable. (not all of them do.)

alternatively, i realise while writing this, you can use checkinstall, as
long as you don't specify '--prefix=/usr' to ./configure. that way, the
program will be installed to /usr/local, and checkinstall will make a
package for it. it does mean that you have to secure your config files
before uninstalling the existing package, and move them over to wherever
the new version looks for its config files (probably /usr/local/etc, but
almost certainly not in /etc.)

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:40 PM
Greg Heilers
 
Posts: n/a
Default Re: Upgrade from the source.

Nuno Paquete wrote:

> Hi guys,
>
> I need to upgrade a software from the source-code to an earlyer version.
> How can I do it?
> I know how to install, the usual:
> ./configure
> make
> make install
>
> But, how can I upgrade? Remove and install again?
> I think this way I can miss my configurations.
> Is there a "make upgrade" command?
>
> Thanks in advance,
>
> Nuno Paquete


Do you still have the directory from when you untarred the
package? If so (as root), try:

make uninstall

Then untar/configure/make/install the earlier version.

--

Greg Heilers
Registered Linux User #328317 - SlackWare 10.0

.....

That rifle hanging on the wall of the working-class
flat or labourer's cottage is the symbol of democracy.
It is our job to see that it stays there.
--- George Orwell


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com