Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Adding repositories without internet

  1. #11

    Default Re: Adding repositories without internet

    Quote Originally Posted by please_try_again View Post
    Put the packages in /var/cache/zypper/RPMS and use

    Code:
    zypper in package_name.rpm
    zypper should install the dependencies from its cache directory.
    Well, here's the issue when I tried your solution.

    I went into "var" and found "cache" but then when I tried looking for "zypper", it didn't exist. The closest thing there was, was "zypp" which I assumed was probably the same thing so I went in and checked it out. However, the only files in there were "raw", "solv" and something else that I can't remember off the top of my head. Point is, none of them were called "RPMS". So, I thought maybe I needed to create the file since I hadn't installed any RPMS prior to, maybe it had not created the folder yet. But when I right clicked I saw that "create a new folder" was greyed out and that I did not have permission.

    I also just tried to move the .rpm file into the "zypp" folder to see what would happen, but I found that permission was denied there as well.

    Got any ideas or ways to fix this? It sucks having opensuse installed and not being able to do anything.

    Thanks!

  2. #12
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,578

    Default Re: Adding repositories without internet

    zypper is a command (as you should have seen from the commands offered you above), thus you do not try to find it, but you execute it by typing the command. Believe me it is there, you can check it with
    Code:
    which zypper
    and that again is a command to type, so do not say you can not find which.

    Of course all those directories are owned by root and a normal user can not go there to move files. You become root by typing
    Code:
    su -
    But be aware, as root you may make no errors! you can bork your system completely.

    I have that directory, see:
    Code:
    boven:/var/cache # ls -l /var/cache/zypper/RPMS/
    total 22460
    -rw-r--r-- 1 root root 22997226 Jun  2 11:47 skype-2.2.0.25-suse.i586.rpm
    boven:/var/cache #
    and it does contain an RPM as you see. When /var/cache/zypper/RPMS/ does not exist, create it. Do so as root:
    Code:
    mkdir -p  /var/cache/zypper/RPMS/
    And then move the RPM file by
    Code:
    mv ......rpm  /var/cache/zypper/RPMS/
    where you fill in the .... of course.
    Henk van Velden

  3. #13

    Default Re: Adding repositories without internet

    Ok, maybe I am a bit of a moron, but I still seem to be having issues, though I am getting closer to resolving the issue.

    I went into terminal and became root user with

    Code:
    su -
    Then, I moved the compat-wireless-kmp-desktop-2.6.38.2_k2.6.37.1_1.2-2.1.i586.rpm file into /var/cache/zypper/RPMS/

    However, when i try to do

    Code:
    zypper in /var/cache/zypper/RPMS/compat-wireless-kmp-desktop-2.6.38.2_k2.6.37.1_1.2-2.1.i586.rpm
    it gives me an error and tells that there was an error with trying to copy the file into its cache, and tells me maybe I am running out of disk space. I don't see how that's possible because I have 94GB of free space. Then it tells me it skipped the command and then its over.

    So, I have the file copied into the correct location I do believe, but I can't seem to install it.

  4. #14
    josephkk NNTP User

    Default Re: Adding repositories without internet

    On Fri, 22 Jul 2011 18:26:02 GMT, ethanftw
    <ethanftw@no-mx.forums.opensuse.org> wrote:

    >
    >please_try_again;2366845 Wrote:
    >> Put the packages in /var/cache/zypper/RPMS and use
    >>
    >> >

    >Code:
    >--------------------
    > > > zypper in package_name.rpm

    >--------------------
    >> >

    >>
    >> zypper should install the dependencies from its cache directory.

    >
    >Well, here's the issue when I tried your solution.
    >
    >I went into "var" and found "cache" but then when I tried looking for
    >"zypper", it didn't exist. The closest thing there was, was "zypp" which
    >I assumed was probably the same thing so I went in and checked it out.
    >However, the only files in there were "raw", "solv" and something else
    >that I can't remember off the top of my head. Point is, none of them
    >were called "RPMS". So, I thought maybe I needed to create the file
    >since I hadn't installed any RPMS prior to, maybe it had not created the
    >folder yet. But when I right clicked I saw that "create a new folder"
    >was greyed out and that I did not have permission.
    >
    >I also just tried to move the .rpm file into the "zypp" folder to see
    >what would happen, but I found that permission was denied there as well.
    >
    >Got any ideas or ways to fix this? It sucks having opensuse installed
    >and not being able to do anything.
    >
    >Thanks!


    There is another way. You need about 150 GB of disk and many hours to
    download the whole bloody repository. Then you will have all the stuff to
    satisfy all the dependencies. Add the now local repo on your disk with
    yast or zypper and install your new kernel.

    Oh, installing from a local disk is much faster as well.

    ?-)

  5. #15

    Default Re: Adding repositories without internet

    You should not install packages directly from cache. Copy the package to /tmp and install it from there.

    Code:
    su -l 
    cp /var/cache/zypper/RPMS/compat-wireless-kmp-desktop-2.6.38.2_k2.6.37.1_1.2-2.1.i586.rpm /tmp
    cd /tmp
    zypper in compat-wireless-kmp-desktop-2.6.38.2_k2.6.37.1_1.2-2.1.i586.rpm

Page 2 of 2 FirstFirst 12

Posting Permissions

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