Results 1 to 7 of 7
I'm trying to install a package on Redhat 5. When I try to install this package (unixODBC-devel-2.2.11-7.1.x86_64.rpm), rpm complains that its already installed. However, when I query for this package ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-10-2012 #1Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
RPM is buggy
I'm trying to install a package on Redhat 5. When I try to install this package (unixODBC-devel-2.2.11-7.1.x86_64.rpm), rpm complains that its already installed. However, when I query for this package or even try to uninstall it, its not there. Any ideas?
- 08-11-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,696
Are you on a 32-bit system?
If so, you don't want a 64-bit package.Code:uname -a
If that's not it, try using yum to install the package. It is a package manager that uses rpm behind the scenes, and handles dependencies for you (Sometimes it helps, sometimes it is worse than rpm...)
e.g.:
If it fails, show your exact command, and the exact error.Code:yum install unixODBC-devel-2.2.11-7.1.x86_64.rpm
Also, run this command, to show what is in the RPM database:
Code:rpm -qa|grep unixODBC
- 08-13-2012 #3Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
Yes i'm on 64 bit system. I tried installing the package using yum and got the following message.
does not update installed package.
Nothing to do
[root@localhost packages]# uname -a
Linux localhost.localdomain 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost packages]# rpm -qa | grep unixODBC*
[root@localhost packages]#
[root@localhost packages]# yum install unixODBC-2.2.11-7.1.x86_64.rpm
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Examining unixODBC-2.2.11-7.1.x86_64.rpm: unixODBC-2.2.11-7.1.x86_64
unixODBC-2.2.11-7.1.x86_64.rpm: does not update installed package.
Nothing to do
- 08-14-2012 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,696
Where did you get this file (unixODBC-devel-2.2.11-7.1.x86_64.rpm) from? Do you have a link?
also, what does this show:
and what is the package name:Code:rpm -ivh ./unixODBC-devel-2.2.11-7.1.x86_64.rpm
Code:rpm -qp ./unixODBC-devel-2.2.11-7.1.x86_64.rpm --queryformat='%{NAME}\n'
- 08-14-2012 #5Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
Adding the dot in front of the package worked. Thanks.
rpm -ivh ./package_name
- 08-14-2012 #6
If using yum, you should use
It has the same effect asCode:yum localinstall somepackage.rpm
The difference is that yum will automatically resolve and install any missing dependencies.Code:rpm -Uvh somepackage.rpm
- 08-14-2012 #7Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,696


Reply With Quote

