Results 1 to 4 of 4

Thread: Unable to install local RPM files

  1. #1

    Default Unable to install local RPM files

    Hey guys,

    I've been using zypper to install downloaded RPM files locally on my machine. This has worked for as along as I can remember, but earlier the installation command started failing with a cryptic error message that I can't make sense of. This error happens for any RPM file I have downloaded. Here is the output when I try to install an RPM - any thoughts?

    Code:
    $ zypper in *.rpm
    Error building the cache:
    [|] Failed to cache repo (1).
    Building repository 'Plain RPM files cache' cache ..........................................................................................................................................................[done]
    Error building the cache:
    [|] Failed to cache repo (1).
    Disabling repository 'Plain RPM files cache' because of the above error.

    Thanks!

  2. #2

    Default Re: Unable to install local RPM files

    Try running the command as root (your use of the '$' prompt implies a
    non-root user, so you should prepend the command with 'sudo').

    If that does not work, how about disk space; do you have enough under /var
    to cache everything?

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3

    Default Re: Unable to install local RPM files

    Hi,

    In addition to what ab said, the proper way is to either use an array plus glob or create a plaindir directory repo for your rpm(s).

    Using bash glob and array.

    Code:
    packages=(*.rpm)
    or use an absolute path

    Code:
    packages=(/path/to/foo/*.rpm)
    then install it.

    Code:
    zypper in "${packages[@]}"

    Create a local directory as a repository where your rpm's are located

    Code:
    zypper ar -t plaindir . local
    or use an absolute path

    Code:
    zypper ar -t /path/to/foo local
    Refresh the local repo named local

    Code:
    zypper ref local
    Now search for the packages in that directory using zypper or install it directly since you know the names of the packages.
    Or print the packages on the local repo.

    Code:
    zypper --no-refresh se -t package -r local

    I hope that helps.
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,395
    Blog Entries
    2

    Default Re: Unable to install local RPM files

    Another possibility is that your repo cache is corrupted.

    Simple solution is to purge the repo cache and let it re-build
    Code:
    zypper clean --all && zypper ref
    After the above command, try installing your local rpm again using the same command you've always used.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •