LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-20-2003, 06:51 PM   #1
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
RPM installing and upgrading


Hi,

i have two sendmail rpm updates which i wanted to install.

i did a rpm -U and it said it was done fine...

when i do a rpm -qa i see the packages but when i do a rpm -qa package name i see:

[root@custard /]# rpm -q sendmail-*
package sendmail-cf-8.12.8-9.90.i386.rpm is not installed
package sendmail-devel-8.12.8-9.90.i386.rpm is not installed
[root@custard /]#

so i try the command below to install it and get this!

[root@custard /]# rpm -ivh sendmail-cf*
Preparing... ########################################### [100%]
package sendmail-cf-8.12.8-9.90 is already installed
[root@custard /]#

whats the cause? also when u use the -U command to upgrade a package how does linuc know what package you want to upgrade!?

thanks!

G
 
Old 12-20-2003, 07:15 PM   #2
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
ok looks as though the actual rpm i had wasnt right! and therefore there wasnt anything to upgrade! LOL!

um....just wondering though when i have a sendmail package installed and then do a upgrade command how does linux or the rpm package manager know what you want to upgrade...?

G
 
Old 12-20-2003, 07:51 PM   #3
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
man rpm for starters.

rpm -Uvh U stands for Upgrade
rpm -F F is for freshen
rpm -i i is for install

man rpm for starters.
 
Old 12-21-2003, 05:25 AM   #4
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
yep i'm familar with those commands just wondered who rpm knows what package you want to upgrade? as you only specify the new package within the command string....

G
 
Old 12-22-2003, 01:04 AM   #5
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
well, YOU have to specify which package...not rpm...rpm does no thinking, once again, YOU specify which package to upgrade by issuing the command.

I believe, by default, if you don't have a package installed and you do a U, it installs it.
 
Old 12-22-2003, 01:37 AM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by GraemeK
ok looks as though the actual rpm i had wasnt right! and therefore there wasnt anything to upgrade! LOL!

um....just wondering though when i have a sendmail package installed and then do a upgrade command how does linux or the rpm package manager know what you want to upgrade...?

G
1. That's why you use the -v switch. So rpm will tell you what it is or is not doing

2. It knows what you want to upgrade because you specify the packages you trying to upgrade on the command line. Like in your post "sendmail-*" tells rpm your trying to upgrade all packages that begin with sendmail-
 
Old 12-22-2003, 02:08 AM   #7
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Quote:
Originally posted by Technoslave
I believe, by default, if you don't have a package installed and you do a U, it installs it.
Are you sure that the -U switch uninstalls? I think that upgrades... I am thinking that -e uninstalls. Might be wrong though...
 
Old 12-22-2003, 12:44 PM   #8
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
argh i see! so at the mo i have mysql installed on RH9 and the rpm is actually mysql* but the new rpm i have is MySQL* therefore rpm probably wont remove one and replace as their different cases?

G
 
Old 12-22-2003, 12:56 PM   #9
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Quote:
quote:Originally posted by Technoslave
I believe, by default, if you don't have a package installed and you do a U, it installs it.



Are you sure that the -U switch uninstalls? I think that upgrades... I am thinking that -e uninstalls. Might be wrong though...
Pretty sure the word I used was install :-D
 
Old 12-22-2003, 01:45 PM   #10
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Quote:
Originally posted by Technoslave
Pretty sure the word I used was install :-D
Oh man, this will teach me to post so late at night
 
  


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
Best rpm based distro for installing/upgrading software easily? RoaCh Of DisCor Linux - Software 16 01-16-2005 12:53 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 with RPM te_conway Linux - Software 4 08-24-2001 02:09 AM
upgrading RPM Star Child Linux - Newbie 0 07-06-2001 12:14 PM
Upgrading the RPM goochable Linux - General 2 05-05-2001 12:36 PM

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

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