LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-26-2009, 06:20 AM   #1
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
zypper install of local rpm file failed: package not found


Hi,

I'm using opensuse 10.3, and trying to install an rpm using zypper (dependencies also need to be installed, hence why I'm not just using rpm -i)

According to this I should be able to just give zypper the path to the rpm, but that's not working, it says it can't find the package.

To ensure there isn't a problem with the rpm file itself, I've downloaded one from the standard opensuse repo here to demo the problem:
http://download.opensuse.org/distrib...s/suse/x86_64/

Code:
:~$ su
Password: 
linux:/home/openSauce # ls agrep-0.7.5-37.x86_64.rpm 
agrep-0.7.5-37.x86_64.rpm
linux:/home/openSauce # zypper in ./agrep-0.7.5-37.x86_64.rpm 
* Reading repository 'non-oss' cache
* Reading repository 'src-non-oss' cache
* Reading repository 'src-oss' cache
* Reading repository 'oss' cache
* Reading installed packages [100%]

package './agrep-0.7.5-37.x86_64.rpm' not found
Nothing to do.
linux:/home/openSauce #
I get the same error when I just use the file name of the rpm with no ./, or when I give the full path to the file.
 
Old 03-26-2009, 08:05 AM   #2
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
Zypper looks for the package in the repositories, so all you need to do is:
Code:
zypper install agrep
or first
Code:
zypper search agrep
without downloading package. It'll do that for you.
 
Old 03-26-2009, 08:56 AM   #3
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by cyprinidae View Post
Zypper looks for the package in the repositories, so all you need to do is:
Code:
zypper install agrep
or first
Code:
zypper search agrep
without downloading package. It'll do that for you.
Thanks, I know about that, but the rpm I actually want to install is not in the suse repositories. It's an old one for checkgmail I found sitting on my hard drive, it originally came from the Fedora repositories. I just used the agrep one to ensure it wasn't a problem with that particular file, i.e. compatibility with suse or a corrupted file. According to the documentation I should be able to install local rpms with the zypper command above, so I'm trying to find out what's going wrong.
 
Old 03-26-2009, 09:34 AM   #4
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
Sorry about that openSauce. Have you already tried to install that file with "rpm -i"? In worst case scenario the installation will fail with unresolved dependencies, which should give you a clue what else do you need. Your version of agrep requires:
rpmlib(PayloadIsBzip2) <= 3.0.5-1
libc.so.6()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
libtre.so.4()(64bit)
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)

Another way is to install that from source, to have dependencies checks during config... (good old days )
 
Old 03-26-2009, 03:11 PM   #5
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Original Poster
Rep: Reputation: 39
Unfortunately it turns out the checkgmail rpm I want to install has some dependencies that are not in the suse repositories, so the whole thing was doomed to fail anyway. It would still be good to know how to attempt to do a local install of an rpm with zypper, if anyone can chime in with that.
 
  


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
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
Public Key error when installing local rpm package Akhran Red Hat 3 04-06-2007 12:15 PM
Failed dependencies /bin/sh, libc.so.6... when installing rpm package Vilenjak Linux - Newbie 4 03-19-2007 06:08 PM
Zypper install package not found Guitarist88 SUSE / openSUSE 1 02-10-2007 09:03 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:08 AM.

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