Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rpm installed or not?

Status
Not open for further replies.

elconomeno

Technical User
Jun 24, 2004
24
BE
ik try to instal Mysql 4 and PHP 5 on a Fedora Core 3
i followed this procedure :
because it is an old pc i use the i386 packages instead of the recommended packages

i did a full install of the php packages but it doesnt seems to work. so i try to do a new install but this is what i get:

[root@localhost MYSQL]#rpm -Uvh php-mysql-5.0.2-8.i386.rpm
Preparing... ########################################### [100%]
package php-mysql-5.0.2-8 is already installed

[root@localhost MYSQL]# rpm -e php-mysql-5.0.2-8.i386.rpm
error: package php-mysql-5.0.2-8.i386.rpm is not installed

[root@mfilter MYSQL]# rpm -i php-mysql-5.0.2-8.i386.rpm
package php-mysql-5.0.2-8 is already installed


what did i rang, how can i check it and how to prevent such errors?
 
OK i think i have the solution:

for uninstall :
[root@localhost MYSQL]# rpm -e php-mysql

for install
[root@localhost MYSQL]# rpm -i php-mysql-5.0.2-8.i386.rpm
or
[root@localhost MYSQL]# rpm -Uvh php-mysql-5.0.2-8.i386.rpm
 
Be careful with your arguments, there.

You install (and Upgrade) package files. That is, the things you might see when you type [tt]ls[/tt], and which could be named anything (e.g. [tt]flying-monkeys[/tt]) and still work.

You erase package identifiers. That is, the identifiers RPM keeps in its database, and normally the package name, version, and revision, separated by dashes. You can usually leave off the revision or both the version and the revision.


Your initial attempt to Upgrade failed simply because RPM is trying to be smart and keep you from "upgrading" to the same pacakge version. The option to make it allow upgrading to the same version is [tt]--replacepkgs[/tt], I believe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top