LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   zypper install of local rpm file failed: package not found (https://www.linuxquestions.org/questions/suse-opensuse-60/zypper-install-of-local-rpm-file-failed-package-not-found-714556/)

openSauce 03-26-2009 06:20 AM

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.

cyprinidae 03-26-2009 08:05 AM

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.

openSauce 03-26-2009 08:56 AM

Quote:

Originally Posted by cyprinidae (Post 3488371)
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.

cyprinidae 03-26-2009 09:34 AM

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 ;))

openSauce 03-26-2009 03:11 PM

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.


All times are GMT -5. The time now is 05:40 PM.