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 02-25-2002, 12:59 PM   #1
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Rep: Reputation: 30
upgrading redhat 7.1 to 7.2 by rpm


Is it possible to upgrade the distro by just upgrading all of the rpms?

I can't physically access the server, so I need to do it remotely.

Shall I just go into the RPMS directory and type rpm -Uvh *.rpm ?

Any experiences or suggestions?

Thanks,
Justin
 
Old 02-25-2002, 01:09 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
you can update by the packages.. most of the time its the only difference in the distro's, updated packages.
many people who use linux never update the whole distro, but just the packages they need and use to update.

-trickykid
 
Old 02-25-2002, 01:28 PM   #3
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Cool... I am curious though... i use up2date to keep the latest security patches and such on there. What core packages would I need to upgrade to make sure that up2date sees that it is redhat 7.2?

Justin
 
Old 02-26-2002, 08:09 AM   #4
djezzer
LQ Newbie
 
Registered: Feb 2002
Posts: 8

Rep: Reputation: 0
You don't want to do an upgrade, unless you have enough spare time to do a complete reinstall after all. Upgrading some rpm's with newer ones is normal, but when you want a new version you better tar your /home/<user> and the special config files you've made, than reinstall with a new distro.
Mind that you don't have to repartition, just a format will suffice.

Good luck, dJezzer
 
Old 02-26-2002, 09:32 AM   #5
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Yeah... I can't do that. It's a server that I haven't physically seen in 6 months or so. I'm not crazy about upgrading at all, but I'd run into a couple issues that made me feel like I might should try.

Justin
 
Old 02-26-2002, 09:46 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
it's pretty easy just upgrading most of the rpms, seldom anythign to worry abuot, it can just look a bit scary when you have 50 or so rpm's updating no one single command line. be brave tho, as long as you don't do anythign daft.
 
Old 02-26-2002, 09:57 AM   #7
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
as long as you don't do anythign daft.
daft
1 a : SILLY, FOOLISH b : MAD, INSANE
2 Scottish : frivolously gay


Frivolously gay. LOL.
 
Old 02-26-2002, 10:01 AM   #8
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
I must ask... what is the best way of determining what rpms to gather? For instance... I grabbed the php-4.0.6 rpm. Tried to upgrade, and it asked for 8 different libraries. So, grabbed the libraries. Tried to upgrade all at once, and it said that I had about 20 programs that were all dependent on the old libraries... I don't even bother going through all of them because I know this chain could go on for quite a while Is there a simpler way to handle this?

Justin
 
Old 02-26-2002, 10:03 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
not that i'm aware of with redhat. i herar about up2date, but i'm not really sure what it does. Mandrake uses the urpm system, which automatically deals with rpm dependencies, but when i upgraded my system by rpm, i did just do sections at a time and manually sort out deps myself, installing like i said, up to 50 rpms in one line.
 
Old 02-26-2002, 10:06 AM   #10
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
As far as I'm aware of, up2date only grabs files that are official updates to the current distro (in the redhat 7.1 update directory). I could be wrong. Maybe I'll just go and install the redhat 7.2 release package and up2date and see what happens

::sigh:: here goes that chain of dependencies again!

Update: I installed redhat-release, the new up2date, and all of their dependencies. When I ran up2date again, it showed all the new redhat 7.2 packages to be upgraded! Woohoo. We'll see what happens when I update


Justin

UPDATE: I tried this on another rh7.1 machine. All you have to do is download and install redhat-release and then run up2date -uf.

Last edited by JustinHoMi; 02-26-2002 at 03:04 PM.
 
Old 02-26-2002, 12:28 PM   #11
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
Woohoo! It worked.

So for future reference, get the redhat-release package and the up2date package, along with all the corresponding dependencies (there's a few of em ). After you get all the packages from the RPMS directory, it'd be a good idea to go to the corresponding updates directory and download the files that have been updated.

Then run up2date -uf (or rhn_register if you haven't done that yet). And it'll update everything.

Make sure you have pleeenty of space in you /var partition. I actually went into the up2date configuration file and had it store all the temporary rpms in my home directory instead.

Also, my / partition nearly filled up, I haven't figured out yet as to why.

No issues yet, I'll post here if I encounter any.

Justin
 
Old 02-26-2002, 12:40 PM   #12
JustinHoMi
Member
 
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
One question.

df -HT now reports an additional line:

none tmpfs 130M 0 130M 0% /dev/shm

What is this?

Justin
 
  


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
modules problem after upgrading redhat 8.0 kernel with rpm aircom Red Hat 4 09-22-2003 08:20 AM
modules problem after upgrading redhat 8.0 kernel with rpm aircom LinuxQuestions.org Member Success Stories 3 09-16-2003 05:23 PM
modules problem after upgrading redhat 8.0 kernel with rpm aircom Linux - Newbie 1 09-16-2003 04:58 PM
Suggestions requested on upgrading a stock RH rpm with a third-party rpm obarney Linux - Software 5 05-21-2003 05:07 PM
upgrading RPM Star Child Linux - Newbie 0 07-06-2001 12:14 PM

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

All times are GMT -5. The time now is 07:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration