LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-23-2005, 04:04 AM   #1
paulr1984
Member
 
Registered: Dec 2003
Posts: 75

Rep: Reputation: 15
upgrading packages


hi! I'm using fedora core 3 and I'm trying to upgrade some packages like atk. I was wondering how to properly upgrade packages. I don't want more than one version installed at the same time. I know that with rpm, you can just use the -U option. Does that remove the old version? What if it doesn't come as an rpm? Instead, you only have the source code. How do you upgrade then?
 
Old 03-23-2005, 04:27 AM   #2
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Rep: Reputation: 30
you gotta install arts first, kdelibs second, kdebase third and then the rest.
Here's an example of how you can install them, but this is in case u have devel packages of the old version installed:
rpm -Uvh --force --nodeps kdelibs-3.4.0-0.fc3.0.i386.rpm kdelibs-devel-3.4.0-0.fc3.0.i386.rpm

basically rpm -Uvh --force --nodeps is what you need. Remember, arts>kdelibs>kdebase>the rest. if accompanied by devel packages, install them too (only if u had devel packages for the old version)
 
Old 03-23-2005, 05:45 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
usually, if you get an rpm for your specific distro, it will install in the correct prefix upgrading the older package. from source, you could remove the old package and install the new, but this method has a couple drawbacks. The other way would be to build your source, create an rpm from your build, and install that. there are a few ways to do this, manually, scripts, there is a program called checkinstall that will build rpm's for you, etc.. The advantages of this method are since it's an rpm, upgrading/removing will be much easier and it also upgrades the rpm database, so if you are trying to install something that depends on what you installed from source, it will help with dependencies.

As a side note, --force and --nodeps shouldn't be used unless you have to. you can install any package with those switches, but unless the dependencies are actually on your system whatever you installed will not work correctly. I assume you want to upgrade atk to upgrade your gtk-2. It's usually a good idea when doing this from source, install these libs back to wherever they were installed by the system ( probably /usr/lib). And don't forget to read the README when you get to pango
 
Old 03-23-2005, 07:16 AM   #4
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
i use YUM to install and upgrade my rpm packages. You can have it check to see if any available uprades are available and install those. I'd recommend getting comfortable with it. man yum in the terminal to learn more or google around.
 
Old 03-23-2005, 07:34 AM   #5
paulr1984
Member
 
Registered: Dec 2003
Posts: 75

Original Poster
Rep: Reputation: 15
I wanted to ask about upgrading in general. Atk was just a sample. Building my own rpm seems to be quite overwhelming considering my limited skills in linux. I think I will have to go with upgrading from source. Here are some things I would like to clarify:

- If the packages I want to upgrade are needed by some applications currently installed, can I simply remove them forcibly and install the newer version?
- After installation(make install), can I just delete the folder containing the source (and compiled stuff) since the necessary libraries are already installed in my system? In this case, how do I uninstall if I want to do so later on?
- If I installed it through source, I cannot do a 'rpm -q SomePackage' on it, right? How do I check if its installed or what version it is?


These are a lot of questions. Pardon my ignorance.
 
Old 03-23-2005, 08:35 AM   #6
paulr1984
Member
 
Registered: Dec 2003
Posts: 75

Original Poster
Rep: Reputation: 15
I checked yum and played with it for a while. But I noticed that it only looked at files in http://fedora-mirror.dkuug.dk/linux/...a/repomd.xml:. But the latest versions are in the home pages of the packages. I guess it seems absurd to think that I expected yum to check all those webpages.
 
Old 03-23-2005, 04:42 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
I believe you can change the repositories for yum so it finds different packages ( don't quote me on this, I haven't used an rpm distro for some time).

I strongly suggest you learn how to use rpm as well as build them from your source builds. If you remove the source directory, unless you install each package into it's own directory and manually alter all of the relevant paths, removal is going to be a pain and will take alot of time. check out checkinstall, it makes rpm's ( and debian and slackware packages too). If you build from source and make an rpm, it upgrades the rpm database so you can use the same commands on it just like any other rpm.

also, make sure you are upgrading for a good reason. In open source, software is released quite often but that doesn't necessarily mean you need to upgrade or that upgrading to a newer version will be beneficial. check and make sure it has something new that you want that isn't in your older version, or a security fix, etc...
 
  


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
Upgrading KDE packages docGonzo2000 Slackware 2 08-10-2007 03:33 AM
Upgrading packages manually arubin Slackware 5 11-02-2005 07:18 AM
packages not upgrading with apt bearwood Linux - Software 4 04-06-2005 05:39 AM
Upgrading packages linuxhippy Slackware 2 03-21-2005 07:18 PM
Upgrading packages using checkinstall jrdioko Linux - Newbie 10 06-28-2004 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 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